Skip to content

Releases: unjs/jiti

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)

v2.1.2

03 Oct 14:34
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🌊 Types

  • Use local NodeModule type (718bea2)

v2.1.1

03 Oct 07:49
@pi0 pi0
Compare
Choose a tag to compare

compare changes

  • types: Add standalone types for node require (#316)
  • Update babel to 7.25.7

v2.1.0

30 Sep 14:27
@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

  • Enable interopDefault by default (#310)
  • Support import.meta.dirname and import.meta.filename (#308)

πŸ”₯ Performance

  • cli: Enable node 22 compile cache (%17 faster) (#312)

🩹 Fixes

  • Make TransformOptions type strict to allow auto-complete (#305)
  • Properly handle tsx (#311)

πŸ’… Refactors

  • Deprecate commonjs api (#313)

πŸ“¦ Build

  • Fix /register and /native subpath types for Node10 module resolution (#304)

❀️ Contributors