Skip to content

Latest commit

 

History

History
748 lines (361 loc) · 26.5 KB

CHANGELOG.md

File metadata and controls

748 lines (361 loc) · 26.5 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

v1.6.1

compare changes

🩹 Fixes

  • parseStaticImport: Omit empty import names (#232)

❤️ Contributors

  • Patryk Tomczyk

v1.6.0

compare changes

🚀 Enhancements

  • Add declaration type in ESMExport (#227)
  • utils: Add pathToFileURL (cdcbcb7)

🔥 Performance

  • resolver: Stat absolute paths once in fast path (#229)
  • resolver: Remove intermediate pcall util (#230)
  • resolve: Enable fast path for file urls (#231)

🩹 Fixes

  • resolver: Strictly check input (778bd73)

💅 Refactors

  • resolver: Use pathToFileURL from mlly (982a7a9)
  • Strict type checks (77ebe50)

🏡 Chore

✅ Tests

  • resolver: Add test for node bultins (58407dd)
  • fileURLToPath, pathToFileURL: Add windows specific tests (bfa2bbe)

🤖 CI

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Pooya (@pi0)
  • Tamago

v1.5.0

compare changes

🚀 Enhancements

  • Make stripComments optional for syntax detection (#217)
  • findExports: Extract name of default exports (#179)
  • interopDefault: Support preferNamespace (5d23c98)

🩹 Fixes

  • 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)

🌊 Types

  • fileURLToPath: Accept url as input (34f6026)

🏡 Chore

  • Update deps and lockfile (7c8af63)
  • Add defaultName type to ESMExport (4acaeaf)
  • Update import-meta-resolve to v4 (#215)
  • Add badges (78d052b)

✅ Tests

  • Add tests for resolve (8c1bead)
  • Add more tests for resolve (#15)

❤️ Contributors

v1.4.2

compare changes

🩹 Fixes

  • findExports: Support generator (#189)

🏡 Chore

❤️ Contributors

v1.4.1

compare changes

🩹 Fixes

  • isValidNodeImport: Detect invalid cjs modules (#187)

🏡 Chore

🎨 Styles

  • Format with prettier v3 (914493c)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.4.0

compare changes

🚀 Enhancements

  • findTypeImports for finding type imports (#163)
  • Add parseNodeModulePath and lookupNodeModuleSubpath utils (#89)

🩹 Fixes

  • Fix resolvePath return type (#172)
  • findStaticImports: Support special chars in import specifiers (#169)

🏡 Chore

✅ Tests

  • Add edge case test for findStaticImports (f0b120b)

❤️ Contributors

v1.3.0

compare changes

🚀 Enhancements

  • Update import-meta-url to v3 (208b323)

💅 Refactors

  • Remove deprecated notice from sync resolve utils (5223f5a)

📖 Documentation

  • Mention resolveSync and resolvePathSync utils (02a5efe)

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.2.1

compare changes

🩹 Fixes

  • findStaticImports: Allow accents in import names (#170)

📖 Documentation

  • Correct import name (#167)

🏡 Chore

❤️ Contributors

v1.2.0

compare changes

🚀 Enhancements

  • findTypeExports for finding type exports (#156)

❤️ Contributors

v1.1.1

compare changes

📦 Build

  • Add types field to exports (190a5ec)

🏡 Chore

✅ Tests

❤️ Contributors

1.1.0 (2023-01-09)

Features

  • findExports: support for exports destructuring (#133) (7e877b6)

Bug Fixes

  • 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)

Features

  • isValidNodeImport: mark unknown /es/ path as invalid without depending on syntax detection (resolves #23) (70e2141)

Bug Fixes

  • findExports: correctly dedup named exports (#86) (6b5df10)

0.5.15 (2022-09-19)

Bug Fixes

  • findExports: extract multi line named exports (#75) (e22ead6)
  • isValidNodeImport: check type: module before other detections (8e866c3)

0.5.14 (2022-08-22)

Bug Fixes

  • findExports: support multiple exports terminated with ; (#72) (e7a8de3)

0.5.13 (2022-08-18)

Features

  • findExports: support typescript enum exports (#69) (ac7c37c)

0.5.12 (2022-08-12)

Bug Fixes

  • normalizeid: encode file uri after normalizing slashes (4569fa0)

0.5.11 (2022-08-12)

Bug Fixes

  • encode uri when constructing file:// url (#68) (26c02d5)

0.5.10 (2022-08-11)

Bug Fixes

  • resolve: always try to resolve url as dir too (#67) (dd14c01)

0.5.9 (2022-08-10)

Bug Fixes

  • resolve: properly resolve relative to file urls (2099c28)

0.5.8 (2022-08-10)

Features

  • resolveModuleExportNames: resolve recursive star exports (50991e4)

Bug Fixes

  • resolveModuleExportNames: filter out star exports (dd63a31)

0.5.7 (2022-08-03)

Bug Fixes

  • findExports: disable tokenizer if parsing fails (resolves #64) (4ed5c61)

0.5.6 (2022-08-03)

Features

  • resolveModuleExportNames and findExportNames (#63) (a699573)
  • findExports: use acorn tokenizer to filter false positive exports (#56) (7039f54)

Bug Fixes

  • findExports: get exports with trailing comma (#61) (79a3ceb)

0.5.5 (2022-07-20)

Bug Fixes

  • findExports: export with trailing comma (#59) (51c81b8)

0.5.4 (2022-06-29)

Bug Fixes

  • detectSyntax: detect export class as esm syntax (896c8a7)
  • findExports: filtering for named exports (#55) (df908fd)

0.5.3 (2022-06-16)

Features

Bug Fixes

  • don't throw if module subpath not found (#46) (37d5bcc)
  • make url optional in resolver created with createResolve (#44) (7c1bda4)

0.5.2 (2022-04-13)

Bug Fixes

  • fix lookbefore in front of import (#43) (fbc9b5a)

0.5.1 (2022-03-25)

Bug Fixes

  • inline import-meta-resolve (2c0a147)

0.5.0 (2022-03-24)

⚠ BREAKING CHANGES

  • pkg: avoid inlining dependencies

Bug Fixes

  • improve regexp for multiple imports on same line (#41) (bc64246)

  • pkg: avoid inlining dependencies (0c28f44)

0.4.3 (2022-02-11)

Bug Fixes

  • test for name after normalisation (#40) (5fd933b)

0.4.2 (2022-02-07)

Bug Fixes

  • prevent multiple exports of multiple signatures (#39) (d492116)

0.4.1 (2022-01-25)

Bug Fixes

  • resolve: ensure absolute id exists and resolved (f505b7c)

0.4.0 (2022-01-25)

⚠ BREAKING CHANGES

Features

  • drop code-gen utils (genImport and genDynamicImport) (42583e1)
  • export star (#33) (3f4e844)

0.3.19 (2022-01-17)

Bug Fixes

  • add specifer to NamedExport type (#31) (1ca4d30)

0.3.18 (2022-01-17)

Features

  • add specifier matcher for findExports (#30) (5ddeba1)

0.3.17 (2022-01-07)

Bug Fixes

  • get actual protocol for windows instead of protocol + drive (#28) (15140cc)

0.3.16 (2021-12-17)

Bug Fixes

  • improve esm detection with export declartion (#27) (0511a93)

0.3.15 (2021-11-29)

Features

  • initial code generation utils (5fdb9f2)

0.3.14 (2021-11-29)

Bug Fixes

  • findExports: detect async function (9fcc555)

0.3.13 (2021-11-11)

Bug Fixes

  • findExports: normalize named exports (b82d27b)

0.3.12 (2021-11-03)

Features

  • add sanitizeURIComponent and sanitizeFilePath helpers (#22) (9ddeab8)

0.3.11 (2021-11-02)

Bug Fixes

  • exclude windows drive letters from protocols (#21) (94d3506)

0.3.10 (2021-10-28)

Features

  • support protocols for isValidNodeImport (#20) (0cfa4d9)

0.3.9 (2021-10-28)

Bug Fixes

  • prevent more false positives on cjs (#19) (8ac4b74)

0.3.8 (2021-10-27)

Bug Fixes

0.3.7 (2021-10-27)

Features

0.3.6 (2021-10-27)

Features

  • resolve: automatically add node_modules to search path (7b03715)

0.3.5 (2021-10-27)

Features

Bug Fixes

  • resolve: don't normalize falsy urls (9fdf8f6)
  • types: make options optional (9240f07)

0.3.4 (2021-10-27)

Bug Fixes

  • resolve: resolve absolute paths as-is (c6e4f9f)

0.3.3 (2021-10-27)

Bug Fixes

  • correct ResolveOptions.url type (e432175)

0.3.2 (2021-10-27)

Features

  • resolve: support resolving from multiple paths or urls (8d51348)

0.3.1 (2021-10-22)

Bug Fixes

  • add missing name and names to ESMExport interface (#13) (c5eacfb)

0.3.0 (2021-10-20)

⚠ BREAKING CHANGES

  • rewrite with typescript

Features

  • rewrite with typescript (b085827)

Bug Fixes

  • pkg: inline import-meta-resolve (50f13b1)

0.2.10 (2021-10-18)

Bug Fixes

  • interopDefault: handle non-object inputs (0d73a44)

0.2.9 (2021-10-18)

Bug Fixes

0.2.8 (2021-10-15)

Bug Fixes

  • types: types for findExports (#9) (68b7c39)

0.2.7 (2021-10-14)

Features

  • export analyzes with findExports (#8) (2eebbd5)

0.2.6 (2021-10-12)

Bug Fixes

  • interopDefault: do not override existing props (#7) (9429606)

0.2.5 (2021-10-05)

Features

0.2.4 (2021-10-01)

Features

  • add types for import analyzes (b9ca4af)

0.2.3 (2021-10-01)

Features

  • static import analyzes tools (#3) (8193226)

0.2.2 (2021-09-20)

Bug Fixes

  • add missing require to cjs interface (9bdffc3)

0.2.1 (2021-09-20)

Bug Fixes

  • createResolve: make url optional (40de473)

0.2.0 (2021-07-23)

⚠ BREAKING CHANGES

  • directly use a url to create cjs context

Features

  • rewrite error stack for inline scripts (7357aeb)

  • directly use a url to create cjs context (e7012fb)

0.1.7 (2021-07-23)

0.1.6 (2021-07-23)

Features

Bug Fixes

0.1.5 (2021-07-22)

Features

  • support extensions and index resolution (8f4c080)
  • support url option for evaluation (0a78f45)

0.1.4 (2021-07-22)

Features

  • normalizeid and use it to support from as path (14af3d1)

Bug Fixes

  • skip fileURLToPath when id is not file: protocol (c40b810)

0.1.3 (2021-07-22)

0.1.2 (2021-07-22)

Features

  • expose resolveImports and improve docs (074ef52)

0.1.1 (2021-07-22)

Features

  • add eval utils and other improvements (1fe0b69)
  • add resolve utils (1d1a3ac)