All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- parseStaticImport: Omit empty import names (#232)
- Patryk Tomczyk
- resolver: Stat absolute paths once in fast path (#229)
- resolver: Remove intermediate
pcall
util (#230) - resolve: Enable fast path for file urls (#231)
- resolver: Strictly check input (778bd73)
- resolver: Add test for node bultins (58407dd)
- fileURLToPath, pathToFileURL: Add windows specific tests (bfa2bbe)
- Update scripts (48acc8d)
- Make
stripComments
optional for syntax detection (#217) - findExports: Extract name of default exports (#179)
- interopDefault: Support
preferNamespace
(5d23c98)
- Strip comment for syntax detection (#196)
- analyze: Ignore conmments for imports detection (#155)
- lookupNodeModuleSubpath: Handle conditions and nested exports (#210)
- analyze: Allow
import
statement after}
(#166) - interopDefault: Skip nullish values for
default
and explicitly return non-objects as-is (14eb72d) - findExports: Support multiple variables in single export (#211)
- fileURLToPath: Accept url as input (34f6026)
- Update deps and lockfile (7c8af63)
- Add
defaultName
type toESMExport
(4acaeaf) - Update
import-meta-resolve
to v4 (#215) - Add badges (78d052b)
- Pooya Parsa (@pi0)
- Mehmet hi@productdevbook.com
- Máté Nagy (@mateenagy)
- Lishaobos
- Julien Huang (@huang-julien)
- findExports: Support generator (#189)
- Update lockfile (ad68cb7)
- Pooya Parsa (@pi0)
- Anthony Fu anthonyfu117@hotmail.com
- isValidNodeImport: Detect invalid cjs modules (#187)
- Format with prettier v3 (914493c)
- Pooya Parsa (@pi0)
findTypeImports
for finding type imports (#163)- Add
parseNodeModulePath
andlookupNodeModuleSubpath
utils (#89)
- Fix
resolvePath
return type (#172) - findStaticImports: Support special chars in import specifiers (#169)
- Add edge case test for
findStaticImports
(f0b120b)
- Pooya Parsa (@pi0)
- Daniel Roe daniel@roe.dev
- Lsh
- Aaron Bassett arbassett4@outlook.com
- Update
import-meta-url
to v3 (208b323)
- Remove deprecated notice from sync resolve utils (5223f5a)
- Mention
resolveSync
andresolvePathSync
utils (02a5efe)
- Update dependencies (8bf8dcd)
- Pooya Parsa (@pi0)
- findStaticImports: Allow accents in import names (#170)
- Correct import name (#167)
- Pooya Parsa (@pi0)
- Daniel Roe daniel@roe.dev
- Mastercuber e4d33vb85@mozmail.com
findTypeExports
for finding type exports (#156)
- Daniel Roe daniel@roe.dev
- Add types field to exports (190a5ec)
- Update snapshot (3f2b36a)
- Pooya Parsa pooya@pi0.io
1.1.0 (2023-01-09)
- ignore
type
imports and exports (#124) (1523bbc) - resolve: stop searching when module is resolved (#135) (f10e797)
- sanitizeFilePath: remove query string (#141) (203676a)
- sanitizeURIComponent: sanitize url escaping (#137) (f91da0d)
1.0.0 (2022-11-14)
0.5.17 (2022-11-14)
0.5.16 (2022-09-20)
- isValidNodeImport: mark unknown
/es/
path as invalid without depending on syntax detection (resolves #23) (70e2141)
0.5.15 (2022-09-19)
- findExports: extract multi line named exports (#75) (e22ead6)
- isValidNodeImport: check
type: module
before other detections (8e866c3)
0.5.14 (2022-08-22)
0.5.13 (2022-08-18)
0.5.12 (2022-08-12)
- normalizeid: encode file uri after normalizing slashes (4569fa0)
0.5.11 (2022-08-12)
0.5.10 (2022-08-11)
0.5.9 (2022-08-10)
- resolve: properly resolve relative to file urls (2099c28)
0.5.8 (2022-08-10)
- resolveModuleExportNames: resolve recursive star exports (50991e4)
- resolveModuleExportNames: filter out star exports (dd63a31)
0.5.7 (2022-08-03)
0.5.6 (2022-08-03)
resolveModuleExportNames
andfindExportNames
(#63) (a699573)- findExports: use acorn tokenizer to filter false positive exports (#56) (7039f54)
0.5.5 (2022-07-20)
0.5.4 (2022-06-29)
- detectSyntax: detect
export class
as esm syntax (896c8a7) - findExports: filtering for named exports (#55) (df908fd)
0.5.3 (2022-06-16)
- don't throw if module subpath not found (#46) (37d5bcc)
- make
url
optional in resolver created withcreateResolve
(#44) (7c1bda4)
0.5.2 (2022-04-13)
0.5.1 (2022-03-25)
- inline import-meta-resolve (2c0a147)
0.5.0 (2022-03-24)
- pkg: avoid inlining dependencies
-
improve regexp for multiple imports on same line (#41) (bc64246)
-
pkg: avoid inlining dependencies (0c28f44)
0.4.3 (2022-02-11)
0.4.2 (2022-02-07)
0.4.1 (2022-01-25)
- resolve: ensure absolute id exists and resolved (f505b7c)
0.4.0 (2022-01-25)
- code-gen utils moved to https://github.com/unjs/knitwork
0.3.19 (2022-01-17)
0.3.18 (2022-01-17)
0.3.17 (2022-01-07)
0.3.16 (2021-12-17)
0.3.15 (2021-11-29)
- initial code generation utils (5fdb9f2)
0.3.14 (2021-11-29)
- findExports: detect
async function
(9fcc555)
0.3.13 (2021-11-11)
- findExports: normalize named exports (b82d27b)
0.3.12 (2021-11-03)
0.3.11 (2021-11-02)
0.3.10 (2021-10-28)
0.3.9 (2021-10-28)
0.3.8 (2021-10-27)
0.3.7 (2021-10-27)
0.3.6 (2021-10-27)
- resolve: automatically add
node_modules
to search path (7b03715)
0.3.5 (2021-10-27)
0.3.4 (2021-10-27)
- resolve: resolve absolute paths as-is (c6e4f9f)
0.3.3 (2021-10-27)
- correct
ResolveOptions.url
type (e432175)
0.3.2 (2021-10-27)
- resolve: support resolving from multiple paths or urls (8d51348)
0.3.1 (2021-10-22)
0.3.0 (2021-10-20)
- rewrite with typescript
- rewrite with typescript (b085827)
- pkg: inline
import-meta-resolve
(50f13b1)
0.2.10 (2021-10-18)
- interopDefault: handle non-object inputs (0d73a44)
0.2.9 (2021-10-18)
0.2.8 (2021-10-15)
0.2.7 (2021-10-14)
0.2.6 (2021-10-12)
0.2.5 (2021-10-05)
0.2.4 (2021-10-01)
- add types for import analyzes (b9ca4af)
0.2.3 (2021-10-01)
0.2.2 (2021-09-20)
- add missing require to cjs interface (9bdffc3)
0.2.1 (2021-09-20)
- createResolve: make url optional (40de473)
0.2.0 (2021-07-23)
- directly use a url to create cjs context
0.1.7 (2021-07-23)
0.1.6 (2021-07-23)
- json support (81c12af)
- resolve bug fixes (e5946df)
0.1.5 (2021-07-22)
0.1.4 (2021-07-22)
- normalizeid and use it to support
from
as path (14af3d1)
- skip fileURLToPath when id is not file: protocol (c40b810)
0.1.3 (2021-07-22)
0.1.2 (2021-07-22)
- expose resolveImports and improve docs (074ef52)