Skip to content

Releases: unjs/jiti

v2.4.2

17 Dec 21:23
@pi0 pi0
Compare
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
Compare
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
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Interop modules with primitive default export (#343)

v2.4.0

01 Nov 11:09
@pi0 pi0
Compare
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
Compare
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
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • eval: Fallback in async mode (#325)

v2.3.1

05 Oct 11:07
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Conditional access to mod.default (8c30a94)

v2.3.0

05 Oct 10:50
@pi0 pi0
Compare
Choose a tag to compare

compare changes

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

  • Support jiti.import(id, {default: true}) (#323)

🩹 Fixes

  • interopDefault: Avoid in operator for primitive inputs (#321)
  • interopDefault: Simplify logic for default export checks (#322)

❀️ Contributors

v2.2.1

04 Oct 17:15
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

v2.2.0

04 Oct 16:47
@pi0 pi0
Compare
Choose a tag to compare

compare changes

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

  • Use smarter proxy for interopDefault (#318)