jiti
2.7.0 · 5 May 2026MIT267.2M / weekRepositoryHomepagenpmAtom feed
2.7.0 is the newest release of 2.x.
In short
1 deprecated2 new1 faster2 fixed1 internal
- Deprecated
Deprecate commonjs api
Release note
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
interopDefaultby defaultSupport
import.meta.dirnameandimport.meta.filename
Performance
cli: Enable node 22 compile cache (%17 faster)
Fixes
Make
TransformOptionstype strict to allow auto-completeProperly 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.