Skip to content

Releases: unjs/mlly

v1.7.3

12 Nov 09:23
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • findExportNames: Do not require space before named exports (#285)

❤️ Contributors

v1.7.2

06 Oct 20:33
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • resolver: Avoid double slashes when joining id with /index (#278)

❤️ Contributors

v1.7.1

05 Jun 11:06
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • interopDefault: Assign props to default function export (#258)

v1.7.0

01 May 08:09
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • isValidNodeImport: Support stripComments option (#236)

🩹 Fixes

  • findExports: Find declaration export with inline object or array (#247)

💅 Refactors

  • interopDefault: Simplify implementation (#243)

📖 Documentation

  • Added jsdocs to exported functions and types (#241)

🏡 Chore

❤️ Contributors

v1.6.1

23 Feb 16:27
@pi0 pi0
83699b6
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • parseStaticImport: Omit empty import names (#232)

❤️ Contributors

  • Patryk Tomczyk

v1.6.0

21 Feb 16:19
@pi0 pi0
Compare
Choose a tag to compare

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)

✅ Tests

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

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Tamago

v1.5.0

11 Jan 22:15
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Strip comment for syntax detection with stripComments option (#196) (#217)
  • findExports: Extract name of default exports (#179)
  • interopDefault: Support preferNamespace (5d23c98)

🩹 Fixes

  • analyze: Ignore comments 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)

✅ Tests

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

❤️ Contributors

v1.4.2

04 Sep 14:01
@pi0 pi0
0686aba
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • findExports: Support generator (#189)

❤️ Contributors

v1.4.1

25 Aug 21:56
@pi0 pi0
cfa04fb
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • isValidNodeImport: Detect invalid cjs modules (#187)

🏡 Chore

🎨 Styles

  • Format with prettier v3 (914493c)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.4.0

20 Jun 19:08
@pi0 pi0
Compare
Choose a tag to compare

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)

✅ Tests

  • Add edge case test for findStaticImports (f0b120b)

❤️ Contributors