Compare Versions - jiti
β
v2.7.0
π Enhancements
- Add explicit resource management (using/await using) support (#422)
- Support opt-in
tsconfigPaths(#427) - Support virtual modules option (#428)
- Add
jiti/staticexport (#430)
π₯ Performance
- interopDefault: Add caching to reduce proxy overhead by ~2x (#421)
π©Ή Fixes
- require: Passthrough resolve options (#412)
- ci: Skip
--coverageflag for node 18 (fe264b4) - require: Fallback to transpilation when
tryNativefails (#413) - Fallback for
ENAMETOOLONGwhen evaluating esm (#429)
π¦ Build
π‘ Chore
- Fix lint issues (4045c7a)
- Update deps (e88ac44)
- Update deps (498e8d7)
- Add missing prettier dep (650bc48)
- Lint (058d91a)
- Init agents.md (c49c54e)
- Update agents.md (4deba16)
- Update deps (08fc868)
- Update tsconfig (8c7822e)
- Update release script (27fe3f2)
β Tests
π€ CI
- Update node test matrix (0abda72)
β€οΈ Contributors
v2.5.1
π©Ή Fixes
- interop: Passthrough module if it is a promise (#389)
β€οΈ Contributors
- Pooya Parsa pyapar@gmail.com
v2.5.0
π Enhancements
π©Ή Fixes
π‘ Chore
- Update ci (6b7fe8b)
- Update deps (fb2b903)
- Add defaults in JSDocs (#365)
- Update deps (35a6a61)
- Lint (dde7c82)
- Update snapshot (c567a37)
β Tests
β€οΈ Contributors
- Kricsleo (@kricsleo)
- Pooya Parsa (@pi0)
- Kanon (@ysknsid25)
- Arya Emami (@aryaemami59)
v2.3.0
π Enhancements
- Support
jiti.import(id, {default: true})(#323)
π©Ή Fixes
- interopDefault: Avoid
inoperator for primitive inputs (#321)
π Refactors
- interopDefault: Simplify logic for default export checks (#322)
π Documentation
- Fix format (#320)
- Update interopDefault description and reference (61891a0)
- Add note about interop default (537fa39)
π‘ Chore
- Update lockfile (c1325e9)
β€οΈ Contributors
v2.1.0
π Enhancements
π₯ Performance
- cli: Enable node 22 compile cache (#312)
π©Ή Fixes
π Refactors
- Deprecate commonjs api (#313)
π¦ Build
- Fix
/registerand/nativesubpath types forNode10module resolution (#304)
π‘ Chore
- Remove ext for consistency (e4a9bae)
- Add jsx field (6a4e13a)
- Update dependencies (ee90eca)
- Lint (85d7c41)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Arya Emami (@aryaemami59)
v2.0.0
π Enhancements
- Handle
data:imports (non-native only) (#299) - Support jsx (#200)
- Eval esm modules with fallback loader (#300)
- Support
import.meta.resolve(#301)
π©Ή Fixes
- Handle global url instance mismatch (#298)
- Optional access to
Reflect.metadata(#165) - Add only
pathsoption to nativerequire.resolve(50e4280)
π Refactors
- Make
jiti.esmResolveconsistent withimport.meta.resolve(#303)
π Documentation
- Add example for inline
JITI_ALIAS(a53715a)
π‘ Chore
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Vlad Sirenko (@sirenkovladd)
- Ethan (@yuusheng)
- Jakub BohΓ‘Δek gh-noreply@bohacek.dev
- Daniel Roe (@danielroe)
v2.0.0-rc.1
π Enhancements
π Refactors
- Improve internal babel types (#271)
- Always use native impl for
jiti/native(#293) - Rename
experimentalBuntotryNative(#295)
π¦ Build
- Fix type resolution issue (#269)
π‘ Chore
- Stricter typechecks (64dda9f)
- Fix build (e78daeb)
- Update dependencies (05b7bd4)
- Replace exec logic in test fixtures (#286)
- Add storybook to used by list (#284)
- Update jiti-native (8b76742)
- Update lockfile (3b8222b)
- Prepare for rc (ed32e11)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Norbert De Langen ndelangen@me.com
- James Garbutt (@43081j)
- Arya Emami (@aryaemami59)
v2.0.0-beta.3
π Enhancements
- Allow
tryand other resolve options forimport/esmResolve(#268) - Allow set
interopDefaultusingJITI_INTEROP_DEFAULTenv (1c080a1)
π₯ Performance
- Use native
createRequire(69da3c5)
π©Ή Fixes
- cache: Prefer
node_modules/.cacheif exists (832f206) - Use native esm import for built-ins (54d6b4a)
- Respect
interopDefaultin babel transform (485b4e9) - Split cache based on
interopDefault(f820a15) - Remove ext from cache path (50b1b3a)
- Proprly resolve
.mts/.ctswith.mjs/.cjsimports (a5aefad) - resolve: Make sure parentURL is a dir (d224e84)
π Refactors
- Improve debug logging (463a8a3)
- Rename
importResolve toesmResolve` (aac88e6) - Improve env handling (ee4489d)
- Use imporr/require in debug logs (934a5bb)
π‘ Chore
β Tests
- Update snapshot (3298489)
β€οΈ Contributors
- Pooya Parsa (@pi0)
v2.0.0-beta.2
π Enhancements
- Add experimental esm loader support (#266)
π₯ Performance
- Reduce overhead of sub jiti instances (#265)
π©Ή Fixes
- Resolve with esm conditions in async context (#264)
π Refactors
π¦ Build
π‘ Chore
π€ CI
- Enable loader test (#267)
β€οΈ Contributors
- Pooya Parsa (@pi0)
v2.0.0-beta.1
π Enhancements
π©Ή Fixes
- Use distinct cache paths for async mode (6e8ec7a)
π Refactors
- Split option normalization (#172)
- Split logic (#240)
- Remove legacy node syntax polyfills (#260)
- 3rd arg to createJiti is optional (60a23e3)
- Upgrade cache version to
8(99224ae)
π Documentation
- Update bundlephobia link (#179)
π‘ Chore
- Add v2 banner (61a49a9)
- Add
v1to renovate branches (38c38d2) - Update dependencies (bd6b14b)
- Update to eslint v9 (3c7740f)
- Update deps and lockfile (18fd99a)
- Fix readme (7746080)
- Update docs (73b29bb)
- Update docs (a1049a1)
- Update docs (0e0c70e)
- Update release script prepare for v2 (cdd61d9)
- Update package.json (420f1fb)
- Add webpack bundle analyzer (a05dcdc)
- Fix type issue (9a36d0e)
π€ CI
- Enable nightly channel (bfd4f46)
β€οΈ Contributors
v1.21.0
π Enhancements
- Add
jiti.importfunction for async import (#170) - Add forward compatible (stub) types for
jiti.import(#175)
π‘ Chore
- Enable ci for
v1branch (0200f63) - Add banner about v1 (cc742cb)
- Add
v1to renovate branches (2358645) - Update dependencies (fe8b267)
- Fix eslint warning (c5c7220)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Anthony Fu anthonyfu117@hotmail.com
v1.19.2
π©Ή Fixes
- Pass custom extensions to esm resolver (#152)
- Support
import.meta.envandimport.meta.env?.prop(#159)
π‘ Chore
- Update dependencies (09c1e7d)
- Add autofix ci (670c1f2)
- Update dependencies (2325b70)
- Upgrade dependencies (f18508c)
β Tests
- typescript: Remove type-only namespace access (de73bd9)
π¨ Styles
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Anhao
v1.19.0
π Enhancements
- Expose
jiti.evalModule(#146)
π©Ή Fixes
π Documentation
- Update badges (6124894)
π‘ Chore
- Lint code (fbd46e4)
- Update snapshots for node 18 (c51f049)
- Update dependencies (9aedf07)
- Update destr import (5b1c1ca)
- Fix vitest (c6798c6)
- Speficy env types (37e0692)
- Lint (37b6b7a)
- Fix development in windows (#135)
β Tests
- Mask node version in snapshots (64cf136)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- JoaquΓn SΓ‘nchez (@userquin)
- SΓ©bastien Chopin seb@nuxtjs.com
v1.18.2
π Enhancements
π₯ Performance
- Use extension resolutions only for parent typescript files (27a9888)
π©Ή Fixes
- Handle parretns with
c ([mtsextension too](https://github.com/unjs/jiti/commit/mts` extension too))
π‘ Chore
- Update lockfile (e91d3a1)
β€οΈ Contributors
v1.17.2
π©Ή Fixes
- Add support to emit decorator metadata (#119)
- Use inline require cache to avoid circular dependencies (#125)
- Workaround for pnpm and
TMPDIR(#123)
π‘ Chore
β Tests
- Add typescript satisfies fixture (#107)
π¨ Styles
- Format with prettier (42669e5)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Jonas Thelemann (@dargmuesli)
- Sabin Marcu (@sabinmarcu)
- Peter peter.placzek1996@gmail.com
v1.17.1
π©Ή Fixes
- Prefer
requirecondition first in esm resolve mode (#117)
π Refactors
- Use
mkdirSyncfromnode:fsinstead ofmkdirp(413d3c3)
π‘ Chore
- Update dependencies (f532c57)
- Add missing semi (a9c2876)
- Switch to changelogen for releases (bd4bd8c)
β€οΈ Contributors
- Pooya Parsa pooya@pi0.io
1.6.3 (2021-03-06)
Bug Fixes
- disable transform cache if no filename provided (69113bc), closes unjsio/mkdist#3
1.6.1 (2021-03-05)
Bug Fixes
- stub @babel/helper-compilation-targets to ignore browserslist in package.json (af8fedc), closes nuxt/nuxt.js#8916
1.5.0 (2021-03-03)
Features
extensionsoption (fixes mjs handling) (3804b3c)
Bug Fixes
- don't cache errors (8a7f881), closes nuxt/nuxt.js#8916
- fix issues with dynamic import (e318cf5)