Packages

jiti

2.7.0 · 5 May 2026MIT267.2M / weekRepositoryHomepagenpmAtom feed

Your version

2.1.0

1 Oct 2024Where it was published

2.7.0 is the newest release of 2.x.

In short

1 deprecated2 new1 faster2 fixed1 internal

  • Deprecated

    Deprecate commonjs api

Release note

compare changes

Important

To enhance compatibility, jiti >=2.1 enabled interopdefault using a new Proxy method. If you migrated to 2.0.0 earlier, this might have caused behavior changes. In case of any issues during the upgrade, please report so we can investigate to solve them. 🙏🏼

Enhancements

  • Enable interopDefault by default

  • Support import.meta.dirname and import.meta.filename

Performance

  • cli: Enable node 22 compile cache (%17 faster)

Fixes

  • Make TransformOptions type strict to allow auto-complete

  • Properly handle tsx

Refactors

  • Deprecated

    Deprecate commonjs api

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.