Back to Explore

Borewit/load-esm

GitHub
1 watchersOpen source

Last release:

load-esm is a small utility for dynamically importing pure ESM packages from CommonJS TypeScript projects at runtime. It helps avoid common interop errors like ERR_REQUIRE_ESM and missing exports entries, without using hacks such as eval. It provides a loadEsm function that returns a Promise of the imported module namespace.

Project status

  • Maintenance status: The repo has had some upstream activity (last push on 2026-01-01), but the published updates shown are mostly metadata, documentation, and test/CI tweaks, with no recent version update close to today (2026-08-12). Overall, it looks quiet/dormant-ish rather than actively iterating.
  • Update cadence: Tags observed are v1.0.1 (2024-12-18), v1.0.2 (2025-02-28), v1.0.3 (2025-08-24), and then nothing tagged after Aug 2025, despite an upstream push in Jan 2026. This suggests irregular cadence with a long gap since the last tagged update.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.0.3

    v1.0.3 is presented primarily as a documentation and NPM metadata update. The diff, however, includes a package.json change (adding an explicit module type) and CI coverage updates (adding Node 24), which are not called out in the release notes.

  • v1.0.2

    v1.0.2 appears to be a documentation-only release. The changes update the README to mention the common CommonJS symptom ERR_REQUIRE_ESM and expand the documentation context, with no functional code changes observed in the provided diff.

  • v1.0.1

    v1.0.1 adds a test harness (TypeScript test compilation, Mocha config) and a GitHub Actions workflow to run tests on multiple Node.js versions. The release notes claim there is no functional change in distribution, but the package metadata and published entry point files were modified.

    Features
  • v1.0.0

    Release v1.0.0 primarily performs an API rename, changing the exported CommonJS function from loadModule to loadEsm. The repository also updates README examples and TypeScript typings to match the new function name.

    Breaking
  • v0.1.1

    Release v0.1.1 is presented as a documentation-only update. The diff shows changes limited to the README and package.json metadata (version and keywords), with no underlying runtime or API code changes visible.

  • v0.1.0

    v0.1.0 is the initial release of the load-esm package. Release notes do not describe any features, fixes, or changes beyond publishing version 0.1.0 on npm.