Skip to content

Releases: unjs/jiti

v2.6.1

01 Oct 07:34
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • interop: Only passthrough default if it is not a promise (#408)

📦 Build

  • Revert to terser-webpack-plugin (#407)

❤️ Contributors

v2.6.0

22 Sep 12:28
@pi0 pi0

Choose a tag to compare

compare changes

🌟 What is new?

This release fixes minor issues, migrates to Rspack for dist, and lazily imports the Babel transformer only when needed, which should noticeably improve startup times.

  • Install size reduced from 2.03MB to 1.67MB
  • Loading times improved 150ms => 22ms (full transform: 180ms => 115ms)

🔥 Performance

  • Lazy load transformer (#405)

🩹 Fixes

  • cjs-interop: Handle function default exports (#396)
  • Always use native require/import for node: specifiers (#392)

📦 Build

  • Migrate to rspack (#404)
  • Updated bundled dependencies (diff)

✅ Tests

  • Update deno and bun native test coverage (df844f8)

❤️ Contributors

v2.5.1

24 Jul 15:51
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • interop: Passthrough module if it is a promise (#389)

v2.5.0

23 Jul 16:52
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Use sha256 for cache entries in FIPS mode (#375)
  • Support rebuildFsCache ( JITI_REBUILD_FS_CACHE) (#379)

🩹 Fixes

  • Interop modules with null/undefined default export (#377)
  • Handle require(<json>) in register mode (#374)

📦 Dependencies

📖 Docs

  • Add defaults in JSDocs (#365)

✅ Tests

  • Only include src for coverage report (#372)

❤️ Contributors

v2.4.2

17 Dec 21:23
@pi0 pi0

Choose a tag to compare

compare changes (📦 bundled dependencies updated)

🩹 Fixes

  • cache: Add +map suffix to fs entries when sourceMaps enabled (#352)
  • Use native require cache of loaded entries only for Node.js 22.12.+ compatibility (#348)

v1.21.7

17 Dec 21:22
@pi0 pi0

Choose a tag to compare

compare changes (📦 bundled dependencies updated)

🩹 Fixes

  • Use native require cache of loaded entries only Node.js 22.12.+ compatibility (#349)

v2.4.1

29 Nov 10:15
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Interop modules with primitive default export (#343)

v2.4.0

01 Nov 11:09
@pi0 pi0

Choose a tag to compare

compare changes

🚀 Enhancements

  • Support generic type for jiti.import<T> (#331)

🩹 Fixes

  • Try to resolve .ts files with .js extension from js files (#337)

🏡 Chore

  • Update deps and lockfile (5dfb0ec)

❤️ Contributors

v2.3.3

07 Oct 17:13
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • eval: Return fallback value (#326)

💅 Refactors

  • Remove some unused exports with Knip (#327)

❤️ Contributors

v2.3.2

07 Oct 11:45
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • eval: Fallback in async mode (#325)