Skip to content

Releases: unjs/jiti

v2.7.0

Choose a tag to compare

@pi0 pi0 released this 05 May 21:12

compare changes

🚀 Enhancements

  • Add explicit resource management (using/await using) support (#422)
  • Support opt-in tsconfigPaths (#427)
  • Support virtual modules (#428)
  • Add jiti/static subpath (#430)

🔥 Performance

  • interopDefault: Add caching to reduce proxy overhead by ~2x (#421)

🩹 Fixes

  • require: Passthrough resolve options (#412)
  • require: Fallback to transpilation when tryNative fails (#413)
  • Fallback for ENAMETOOLONG when evaluating esm (#429)

📦 Build

  • Upgrade rspack to v2 (55194fb)
  • Experimental rolldown config (8c0243f)

✅ Tests

  • Ignore jsx test for bun/cjs (3a744ca)

❤️ Contributors

v2.6.1

Choose a tag to compare

@pi0 pi0 released this 01 Oct 07:34

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

Choose a tag to compare

@pi0 pi0 released this 22 Sep 12:28

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

Choose a tag to compare

@pi0 pi0 released this 24 Jul 15:51

compare changes

🩹 Fixes

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

v2.5.0

Choose a tag to compare

@pi0 pi0 released this 23 Jul 16:52

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

Choose a tag to compare

@pi0 pi0 released this 17 Dec 21:23

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

Choose a tag to compare

@pi0 pi0 released this 17 Dec 21:22

compare changes (📦 bundled dependencies updated)

🩹 Fixes

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

v2.4.1

Choose a tag to compare

@pi0 pi0 released this 29 Nov 10:15

compare changes

🩹 Fixes

  • Interop modules with primitive default export (#343)

v2.4.0

Choose a tag to compare

@pi0 pi0 released this 01 Nov 11:09

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

Choose a tag to compare

@pi0 pi0 released this 07 Oct 17:13

compare changes

🩹 Fixes

  • eval: Return fallback value (#326)

💅 Refactors

  • Remove some unused exports with Knip (#327)

❤️ Contributors