unstale

npm / jiti

jiti

What changed in jiti 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

3 breaking13 new APIs and options2 performance3 behavior and defaults3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.3 on npm

jiti 224 changes

Breaking changes 3

  • Use the named export instead of the default export when importing createJiti.

    2.0.0release notes

  • Resolves modules with ESM resolution; it accepts try and other resolve options and is consistent with import.meta.resolve.

    2.0.0release notes

  • Imports modules through the native ESM path, supporting top-level await and native importing of ES-only modules.

    2.0.0release notes

New APIs and options 13

  • Adds support for using and await using.

    2.7.0release notes

  • Adds the jiti/static subpath.

    2.7.0release notes

  • Adds opt-in support for tsconfigPaths.

    2.7.0release notes

  • Adds support for virtual modules.

    2.7.0release notes

  • Enables inspection of jiti internals; the output is more readable and uses colors to help find slow imports.

    2.0.0release notes

  • ESM modules can be evaluated with a fallback loader.

    2.0.0release notes

  • Support was added for import.meta.resolve.

    2.0.0release notes

  • Enables debug output with JITI_DEBUG=1.

    2.0.0release notes

  • Configures interopDefault through an environment variable.

    2.0.0release notes

  • Provides the jiti API while depending only on runtime import.meta.resolve and dynamic import() support.

    2.0.0release notes

  • Registers jiti globally using experimental Node.js global hooks, either with node --import or a programmatic import.

    2.0.0release notes

  • Enables direct importing of .jsx and .tsx files when set to true; JSX support is opt-in.

    2.0.0release notes

  • Supported through native ESM importing.

    2.0.0release notes

Performance 2

Behavior and default changes 3

  • jiti handles data: imports.

    2.0.0release notes

  • The package exports are available in both ESM and CJS formats for importing jiti in ESM contexts.

    2.0.0release notes

  • When node_modules exists, jiti stores caches there instead of using a temp directory, making them easier to inspect locally.

    2.0.0release notes

Fixes and other changes 3

  • Adds a fallback for ENAMETOOLONG when evaluating ESM.

    2.7.0release notes

  • Passes resolve options through require.

    2.7.0release notes

  • Falls back to transpilation when tryNative fails.

    2.7.0release notes