All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- Support generic type for
jiti.import<T>
(#331)
- Try to resolve
.ts
files with.js
extension from js files (#337)
- Deno v2 compat (f4d0062)
- Pooya Parsa (@pi0)
- Lars Kappert (@webpro)
- Alexander a.hywax@gmail.com
- eval: Return fallback value (#326)
- Remove some unused exports (#327)
- Lars Kappert (@webpro)
- eval: Fallback in async mode (#325)
- Update lockfile (3627a56)
- Pooya Parsa (@pi0)
- Conditional access to
mod.default
(8c30a94)
- Update note (f67ed60)
- Pooya Parsa (@pi0)
- Support
jiti.import(id, {default: true})
(#323)
- interopDefault: Avoid
in
operator for primitive inputs (#321)
- interopDefault: Simplify logic for default export checks (#322)
- Fix format (#320)
- Update interopDefault description and reference (61891a0)
- Add note about interop default (537fa39)
- Update lockfile (c1325e9)
- Bump cache version (3acd097)
- Pooya Parsa (@pi0)
- Use smarter proxy for
interopDefault
(#318)
- Inline interopDefault from mlly (8826047)
- Pooya Parsa (@pi0)
- Use local
NodeModule
type (718bea2)
- Pooya Parsa (@pi0)
- types: Add standalone types for node require (#316)
- Updarte deps (5998e3c)
- Pooya Parsa (@pi0)
- cli: Enable node 22 compile cache (#312)
- Deprecate commonjs api (#313)
- Fix
/register
and/native
subpath types forNode10
module resolution (#304)
- Remove ext for consistency (e4a9bae)
- Add jsx field (6a4e13a)
- Update dependencies (ee90eca)
- Lint (85d7c41)
- Pooya Parsa (@pi0)
- Arya Emami (@aryaemami59)
- Handle
data:
imports (non-native only) (#299) - Support jsx (#200)
- Eval esm modules with fallback loader (#300)
- Support
import.meta.resolve
(#301)
- Handle global url instance mismatch (#298)
- Optional access to
Reflect.metadata
(#165) - Add only
paths
option to nativerequire.resolve
(50e4280)
- Make
jiti.esmResolve
consistent withimport.meta.resolve
(#303)
- Add example for inline
JITI_ALIAS
(a53715a)
- Pooya Parsa (@pi0)
- Vlad Sirenko (@sirenkovladd)
- Ethan (@yuusheng)
- Jakub Boháček gh-noreply@bohacek.dev
- Daniel Roe (@danielroe)
- Improve internal babel types (#271)
- Always use native impl for
jiti/native
(#293) - Rename
experimentalBun
totryNative
(#295)
- Fix type resolution issue (#269)
- 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)
- Pooya Parsa (@pi0)
- Norbert De Langen ndelangen@me.com
- James Garbutt (@43081j)
- Arya Emami (@aryaemami59)
- Allow
try
and other resolve options forimport
/esmResolve
(#268) - Allow set
interopDefault
usingJITI_INTEROP_DEFAULT
env (1c080a1)
- Use native
createRequire
(69da3c5)
- cache: Prefer
node_modules/.cache
if exists (832f206) - Use native esm import for built-ins (54d6b4a)
- Respect
interopDefault
in babel transform (485b4e9) - Split cache based on
interopDefault
(f820a15) - Remove ext from cache path (50b1b3a)
- Proprly resolve
.mts
/.cts
with.mjs
/.cjs
imports (a5aefad) - resolve: Make sure parentURL is a dir (d224e84)
- Improve debug logging (463a8a3)
- Rename
importResolve to
esmResolve` (aac88e6) - Improve env handling (ee4489d)
- Use imporr/require in debug logs (934a5bb)
- Update snapshot (3298489)
- Pooya Parsa (@pi0)
- Add experimental esm loader support (#266)
- Reduce overhead of sub jiti instances (#265)
- Resolve with esm conditions in async context (#264)
- Enable loader test (#267)
- Pooya Parsa (@pi0)
- Use distinct cache paths for async mode (6e8ec7a)
- 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)
- Update bundlephobia link (#179)
- Add v2 banner (61a49a9)
- Add
v1
to 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)
- Enable nightly channel (bfd4f46)
- Update mlly to ^1.7.1 (9adbcb3)
- Pooya Parsa (@pi0)
- Pin mlly to 1.4.2 (#237)
- Pooya Parsa (@pi0)
- Update dependencies (0bd991b)
- Update dependencies (cfb106c)
- Update to eslint v9 (c11d953)
- Update deps and lockfile (95aa249)
- Run ci against 18 and 22 (65b4067)
- Lint (6f3bd76)
- Skip extra checks (8fe6417)
- Pooya Parsa (@pi0)
- Add
jiti.import
function for async import (#170) - Add forward compatible (stub) types for
jiti.import
(#175)
- Enable ci for
v1
branch (0200f63) - Add banner about v1 (cc742cb)
- Add
v1
to renovate branches (2358645) - Update dependencies (fe8b267)
- Fix eslint warning (c5c7220)
- Pooya Parsa (@pi0)
- Anthony Fu anthonyfu117@hotmail.com
- Experimental native bun support (#156)
- Replace proposal babel plugins with ecmascript transforms (1fb4d8c)
- Pooya Parsa (@pi0)
- Only replace
import.meta.env
(c6895d6)
- Pooya Parsa (@pi0)
- Pass custom extensions to esm resolver (#152)
- Support
import.meta.env
andimport.meta.env?.prop
(#159)
- Update dependencies (09c1e7d)
- Add autofix ci (670c1f2)
- Update dependencies (2325b70)
- Upgrade dependencies (f18508c)
- typescript: Remove type-only namespace access (de73bd9)
- Pooya Parsa (@pi0)
- Anhao
- Read cache from
evalOptions
(2c1765e)
- Pooya Parsa (@pi0)
- Expose
jiti.evalModule
(#146)
- Update badges (6124894)
- 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)
- Mask node version in snapshots (64cf136)
- Pooya Parsa (@pi0)
- Joaquín Sánchez (@userquin)
- Sébastien Chopin seb@nuxtjs.com
- Use extension resolutions only for parent typescript files (27a9888)
- Handle parretns with
c ([mts
extension too](https://github.com/unjs/jiti/commit/mts` extension too))
- Update lockfile (e91d3a1)
- Add support to emit decorator metadata (#119)
- Use inline require cache to avoid circular dependencies (#125)
- Workaround for pnpm and
TMPDIR
(#123)
- Add typescript satisfies fixture (#107)
- Format with prettier (42669e5)
- Pooya Parsa (@pi0)
- Jonas Thelemann (@dargmuesli)
- Sabin Marcu (@sabinmarcu)
- Peter peter.placzek1996@gmail.com
- Prefer
require
condition first in esm resolve mode (#117)
- Use
mkdirSync
fromnode:fs
instead ofmkdirp
(413d3c3)
- Update dependencies (f532c57)
- Add missing semi (a9c2876)
- Switch to changelogen for releases (bd4bd8c)
- Pooya Parsa pooya@pi0.io
1.17.0 (2023-02-08)
- add support for
.mts
(#112) (94ab3f2) - support import assertions and
.json
imports with.default
property (#114) (08a9a47)
1.16.2 (2023-01-10)
1.16.1 (2023-01-03)
1.16.0 (2022-09-19)
- deps: update pathe (6231320)
1.15.0 (2022-09-06)
- basic alias support (resolves #37) (cab50cc)
- options for
nativeModules
andtransformModules
(64151af)
- manually exclude
typescript
from transpilation (dbd3f22) - use pathe for path resolution (000c6ad), closes #74
1.14.0 (2022-06-20)
1.13.0 (2022-02-18)
- use backslash to make import maps working in windows (e8696c7)
1.12.15 (2022-01-28)
1.12.14 (2022-01-26)
- move esm resolve behind a flag (60e094c)
1.12.13 (2022-01-25)
1.12.12 (2022-01-25)
- ensure resolve esm id exists (2d44274)
1.12.11 (2022-01-25)
1.12.10 (2022-01-25)
1.12.9 (2021-10-18)
1.12.8 (2021-10-18)
- update mlly to latest (cf178ce)
1.12.7 (2021-10-12)
1.12.6 (2021-10-02)
- avoid detecting dynamic import as esm syntax (0b904a9)
1.12.5 (2021-09-29)
- remove dynamicImport from options (ad42dd1)
1.12.4 (2021-09-29)
- remove v8-compile-cache integration (a9fe3a0)
1.12.3 (2021-09-21)
- interopDefault: allow recursive default (55e0f62)
1.12.2 (2021-09-21)
- interopDefault: handle cjs cache (1f3e4c3)
1.12.1 (2021-09-21)
- interopDefault: support mixed CJS + default (4392c6a)
1.12.0 (2021-09-13)
1.11.0 (2021-07-26)
1.10.1 (2021-05-28)
- babel: properly pass plugin-transform-typescript options (7a1ae3b)
1.10.0 (2021-05-28)
1.9.2 (2021-05-11)
1.9.1 (2021-04-09)
1.9.0 (2021-04-09)
- interopDefault option (opt-in) (5203145)
1.8.0 (2021-04-09)
1.7.0 (2021-04-09)
- support legacy decorators for typescript (#28) (801b798), closes #27
- support legacy parameter decorators for typescript (#29) (6586a1c)
1.6.4 (2021-03-11)
- exclude
.pnp.js
from transpiling (resolves #24) (0280b58) - skip unknown guard if input has not ext (resolves #17) (afe6706)
- babel: always add class syntax plugin (c0098fe), closes #23
- update require cache children (ce3b084), closes nuxt/nuxt.js#8976
1.6.3 (2021-03-06)
- disable transform cache if no filename provided (69113bc), closes unjsio/mkdist#3
1.6.2 (2021-03-05)
- support class property syntax for esm (64b1636)
1.6.1 (2021-03-05)
- stub @babel/helper-compilation-targets to ignore browserslist in package.json (af8fedc), closes nuxt/nuxt.js#8916
1.6.0 (2021-03-03)
1.5.0 (2021-03-03)
extensions
option (fixes mjs handling) (3804b3c)
- don't cache errors (8a7f881), closes nuxt/nuxt.js#8916
- fix issues with dynamic import (e318cf5)
1.4.0 (2021-03-01)
- transpile nullish-coalescing-operator and optional-chaining for node<14 (6011ef5)
1.3.0 (2021-01-21)
1.2.1 (2021-01-20)
- improve extension handling for unknown formats (a2a797d)
- use dynamic import => cjs only if native dynamic import is not possible (5323175)
1.2.0 (2021-01-14)
- expose transform (6b1ab5e)
1.1.0 (2021-01-13)
- support mixed sytax via esm fallback (1e642e4)
- consistantly use tmpdir as cache dir (e49a791)
1.0.0 (2021-01-12)
0.1.20 (2021-01-12)
- resolve with index.{ts,mjs} (2fe1846)
0.1.19 (2020-12-30)
- improved parse and runtime error stack trace (9d94ca1)
0.1.18 (2020-12-22)
- use native require for resolving (f7e1a56)
0.1.17 (2020-11-27)
- cli: resolve relative to cwd (52a4c12)
0.1.16 (2020-11-23)
- fallback to tmpdir and then disable if cache dir is not writable (398fe08)
- support JITI_DEBUG ands JITI_CACHE environment variables (eed965d)
0.1.15 (2020-11-22)
- basic support for dynamic imports (9494452)
0.1.14 (2020-11-21)
- cli: import main wrapper (25bceb1)
0.1.13 (2020-11-21)
- basic cli (b028046)
0.1.12 (2020-11-01)
- directly call wrapper to fix require.resolve issue (63c0a5c)
0.1.11 (2020-06-19)
- interopDefault (44117ef)
0.1.10 (2020-06-19)
- always ensure isDir for filename (6b343a4)
0.1.9 (2020-06-12)
0.1.8 (2020-06-12)
- use fake file for default _filename (05d721f)
- types: allow passing undefined filename (#2) (9136f15)
0.1.7 (2020-06-11)
- pkg: add repository field (639c02f)
0.1.6 (2020-06-11)
- cache support (65c2de2)
0.1.5 (2020-06-11)
- allow passign debug as jiti options (8da2310)
- build and stack-trace improvements (71780ab)
- improve babel transpile and debug (f3042dc)
0.1.4 (2020-06-11)
- improve babel options (ae4dc58)
- multiline syntax detection (46f830b)
0.1.3 (2020-06-07)
0.1.2 (2020-06-07)
- improve build system and stability (5c3ee63)