Packages

jiti

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

Upgrading jiti From 1.21.1 to 2.7.0

24 releases in betweennotes for 23

Other targets from 1.21.1Newest 1.x1.21.7
  1. 1.21.1yours
  2. 6 releases
  3. 2.0.0major
  4. 16 releases
  5. 2.7.0target
1+
change to make
0
advisories fixed
30+
new
38+
fixes

Counted from 23 of 24 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated2.1.0

Release by release

  1. 2.7.0

    5 May 20265 new · 3 fixes
    • New

      Add explicit resource management (using/await using) support

    • New

      Support opt-in tsconfigPaths

    • New

      Support virtual modules

    • New

      Add jiti/static subpath

  2. 2.6.1

    1 Oct 20251 fix
    • Fixed

      interop: Only passthrough default if it is not a promise

  3. 2.6.0

    22 Sep 20253 new · 2 fixes
    • New

      Install size reduced from 2.03MB to 1.67MB

    • New

      Loading times improved 150ms => 22ms (full transform: 180ms => 115ms)

    • New

      Lazy load transformer

    • Fixed

      cjs-interop: Handle function default exports

    • Fixed

      Always use native require/import for node: specifiers

  4. 2.5.1

    24 Jul 20251 fix
    • Fixed

      interop: Passthrough module if it is a promise

  5. 2.5.0

    23 Jul 20252 new · 2 fixes
    • New

      Use sha256 for cache entries in FIPS mode

    • New

      Support rebuildFsCache ( JITI_REBUILD_FS_CACHE)

    • Fixed

      Interop modules with null/undefined default export

    • Fixed

      Handle require(<json>) in register mode

  6. 2.4.2

    17 Dec 20241 new · 1 fix
    • New

      cache: Add +map suffix to fs entries when sourceMaps enabled

    • Fixed

      Use native require cache of loaded entries only for Node.js 22.12.+ compatibility

  7. 2.4.1

    29 Nov 20241 fix
    • Fixed

      Interop modules with primitive default export

  8. 2.4.0

    1 Nov 20241 new · 1 fix
    • New

      Support generic type for jiti.import<T>

    • Fixed

      Try to resolve .ts files with .js extension from js files

2 other lines we could not sort, mostly version bumps
  • Use local NodeModule type

    2.1.2
  • Update deps

    1.21.5

32 internal lines (docs, tests, tooling) left out.

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.