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)