diff --git a/CHANGELOG.md b/CHANGELOG.md index 176f38d..d059e1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,128 +4,136 @@ All notable changes to this project will be documented in this auto-generated file. The format is based on [Conventional Commits][1]; this project adheres to [Semantic Versioning][2]. -### [1.5.1][3] (2024-10-29) +### [1.5.2][3] (2024-10-30) #### 🪄 Fixes -- **src:** use proper destructuring for rewrite report ([30352bc][4]) +- **readme:** use proper debug activation syntax, improve structure ([bc746a2][4]) -## [1.5.0][5] (2024-10-28) +### [1.5.1][5] (2024-10-29) + +#### 🪄 Fixes + +- **src:** use proper destructuring for rewrite report ([30352bc][6]) + +## [1.5.0][7] (2024-10-28) #### ✨ Features -- Allow explicitly disabling arbitrary dynamic import support via `injectDynamicRewriter` ([0db9c4c][6]) +- Allow explicitly disabling arbitrary dynamic import support via `injectDynamicRewriter` ([0db9c4c][8]) -## [1.4.0][7] (2024-10-28) +## [1.4.0][9] (2024-10-28) #### ✨ Features -- **src:** add support for `requireLikeFunctions` ([eafe348][8]) +- **src:** add support for `requireLikeFunctions` ([eafe348][10]) #### 🪄 Fixes -- **src:** use more robust specifier scanning for `CallExpression`s ([34eb5f4][9]) +- **src:** use more robust specifier scanning for `CallExpression`s ([34eb5f4][11]) -### [1.3.1][10] (2024-10-27) +### [1.3.1][12] (2024-10-27) #### 🪄 Fixes -- Ensure debug output is consistent and meaningful ([19e1588][11]) +- Ensure debug output is consistent and meaningful ([19e1588][13]) -## [1.3.0][12] (2024-10-27) +## [1.3.0][14] (2024-10-27) #### ✨ Features -- Make `filepath` available in replacer context and add support for `TSImportType` replacements ([0be1eda][13]) +- Make `filepath` available in replacer context and add support for `TSImportType` replacements ([0be1eda][15]) #### ⚙️ Build System -- **husky:** update commit hooks ([5719706][14]) +- **husky:** update commit hooks ([5719706][16]) -## [1.2.0][15] (2023-02-02) +## [1.2.0][17] (2023-02-02) #### ✨ Features -- `appendExtension` and `replaceExtensions` accept callbacks for advanced functionality ([618f4c3][16]) +- `appendExtension` and `replaceExtensions` accept callbacks for advanced functionality ([618f4c3][18]) -## [1.1.0][17] (2023-01-29) +## [1.1.0][19] (2023-01-29) #### ✨ Features -- **src:** use more aesthetically appealing output format ([7390e3a][18]) +- **src:** use more aesthetically appealing output format ([7390e3a][20]) -### [1.0.1][19] (2023-01-28) +### [1.0.1][21] (2023-01-28) #### 🪄 Fixes -- Use console.log for output, retire debug log function, improve type usage ([70e4053][20]) +- Use console.log for output, retire debug log function, improve type usage ([70e4053][22]) #### ⚙️ Build System -- Reorganize output distributables ([cb4346d][21]) +- Reorganize output distributables ([cb4346d][23]) -## [1.0.0][22] (2023-01-27) +## [1.0.0][24] (2023-01-27) #### ✨ Features -- Add drone ci test pipeline ([ae66e28][23]) -- Add github action to lint and test ([dafd93f][24]) -- Add support for exports ([32188ab][25]) -- Add tests and update plugin version ([948baea][26]) -- Automate package publishing ([2fd6c22][27]) -- Handle ../ paths ([470b358][28]) -- Skip type-only imports and exports ([49fdd96][29]) -- Support ExportAllDeclaration ([8a39cf6][30]) +- Add drone ci test pipeline ([ae66e28][25]) +- Add github action to lint and test ([dafd93f][26]) +- Add support for exports ([32188ab][27]) +- Add tests and update plugin version ([948baea][28]) +- Automate package publishing ([2fd6c22][29]) +- Handle ../ paths ([470b358][30]) +- Skip type-only imports and exports ([49fdd96][31]) +- Support ExportAllDeclaration ([8a39cf6][32]) #### 🪄 Fixes -- ✅replace "false" extension value to "undefined" for default value tests ([054921e][31]) -- 🐛replace extension properly ([0609c35][32]) -- Add linter(standardjs) ([db0f337][33]) -- Don't exclude relative paths ([99668ab][34]) -- Make drone use npm ci instead of npm install ([1c2c16f][35]) -- Missing import ([3aa9d12][36]) +- ✅replace "false" extension value to "undefined" for default value tests ([054921e][33]) +- 🐛replace extension properly ([0609c35][34]) +- Add linter(standardjs) ([db0f337][35]) +- Don't exclude relative paths ([99668ab][36]) +- Make drone use npm ci instead of npm install ([1c2c16f][37]) +- Missing import ([3aa9d12][38]) #### ⚙️ Build System -- **readme:** update maintenance badge ([4d47b6e][37]) -- Update tooling ([74a87dd][38]) +- **readme:** update maintenance badge ([4d47b6e][39]) +- Update tooling ([74a87dd][40]) [1]: https://conventionalcommits.org [2]: https://semver.org -[3]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.5.0...v1.5.1 -[4]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/30352bcb473f6670b4d32e875f44ed5a58c989d4 -[5]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.4.0...v1.5.0 -[6]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/0db9c4c9e970eff7f8163f80446cbbfd7a6d287f -[7]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.3.1...v1.4.0 -[8]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/eafe34854380e6d047cf3e785a59a8da7630093a -[9]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/34eb5f476d6ab5e523a705589f6f7579694a233a -[10]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.3.0...v1.3.1 -[11]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/19e1588c04e6526fdd6fd5327755da13326abcaa -[12]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.2.0...v1.3.0 -[13]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/0be1eda4a2b30709c0755c0ffd994f51ba295498 -[14]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/5719706662031be27d19e940d41b502973d329fa -[15]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.1.0...v1.2.0 -[16]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/618f4c3a161b526b09bcb5ba5f0eee81058a75bd -[17]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.0.1...v1.1.0 -[18]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/7390e3adfea60a3ff0dc03b23f01d15467bc0ef2 -[19]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.0.0...v1.0.1 -[20]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/70e405373905799a7cc565d841f585fe87f12a26 -[21]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/cb4346dc02e9df632acf7ac734f85c5c76c6d51d -[22]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/32188ab1317f1936e364d98658ff915f5d4dafd3...v1.0.0 -[23]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/ae66e28d2ff61c1207bfa65c37a6541031c9504d -[24]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/dafd93fd33a5aab03734e64619ec84161ac42d73 -[25]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/32188ab1317f1936e364d98658ff915f5d4dafd3 -[26]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/948baeab189090375faf956397c370b62abc555a -[27]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/2fd6c22cf181baa83e8c6eac2fbdd6653f57b423 -[28]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/470b358a0d749c1cee3ab0f3f5b649d3f05490ed -[29]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/49fdd9684668b8437bd11c4c5f03b40c1af50acd -[30]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/8a39cf60884d430c70be94183e70d11e25bb4ecd -[31]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/054921ee3cacd13a60a1837c4ab302310a5c1422 -[32]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/0609c3524352763f743f9d3994f9e22847c28971 -[33]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/db0f337812e99cfd58c56d5f1fe3a320e60892e7 -[34]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/99668ab304703adcb329b60ff3ef29a88f5d3aad -[35]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/1c2c16f27e37a8376acd50799f07e8ae00e88d73 -[36]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/3aa9d12066bd8469beee641a9d79007bacc1dd41 -[37]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/4d47b6e0b2e9892aa563a525ed61e9a5087c59bf -[38]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/74a87ddcaeb6a3fae6ebeb0376910e1ad4408784 +[3]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.5.1...v1.5.2 +[4]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d +[5]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.5.0...v1.5.1 +[6]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/30352bcb473f6670b4d32e875f44ed5a58c989d4 +[7]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.4.0...v1.5.0 +[8]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/0db9c4c9e970eff7f8163f80446cbbfd7a6d287f +[9]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.3.1...v1.4.0 +[10]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/eafe34854380e6d047cf3e785a59a8da7630093a +[11]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/34eb5f476d6ab5e523a705589f6f7579694a233a +[12]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.3.0...v1.3.1 +[13]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/19e1588c04e6526fdd6fd5327755da13326abcaa +[14]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.2.0...v1.3.0 +[15]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/0be1eda4a2b30709c0755c0ffd994f51ba295498 +[16]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/5719706662031be27d19e940d41b502973d329fa +[17]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.1.0...v1.2.0 +[18]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/618f4c3a161b526b09bcb5ba5f0eee81058a75bd +[19]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.0.1...v1.1.0 +[20]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/7390e3adfea60a3ff0dc03b23f01d15467bc0ef2 +[21]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/v1.0.0...v1.0.1 +[22]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/70e405373905799a7cc565d841f585fe87f12a26 +[23]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/cb4346dc02e9df632acf7ac734f85c5c76c6d51d +[24]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/compare/32188ab1317f1936e364d98658ff915f5d4dafd3...v1.0.0 +[25]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/ae66e28d2ff61c1207bfa65c37a6541031c9504d +[26]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/dafd93fd33a5aab03734e64619ec84161ac42d73 +[27]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/32188ab1317f1936e364d98658ff915f5d4dafd3 +[28]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/948baeab189090375faf956397c370b62abc555a +[29]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/2fd6c22cf181baa83e8c6eac2fbdd6653f57b423 +[30]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/470b358a0d749c1cee3ab0f3f5b649d3f05490ed +[31]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/49fdd9684668b8437bd11c4c5f03b40c1af50acd +[32]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/8a39cf60884d430c70be94183e70d11e25bb4ecd +[33]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/054921ee3cacd13a60a1837c4ab302310a5c1422 +[34]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/0609c3524352763f743f9d3994f9e22847c28971 +[35]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/db0f337812e99cfd58c56d5f1fe3a320e60892e7 +[36]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/99668ab304703adcb329b60ff3ef29a88f5d3aad +[37]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/1c2c16f27e37a8376acd50799f07e8ae00e88d73 +[38]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/3aa9d12066bd8469beee641a9d79007bacc1dd41 +[39]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/4d47b6e0b2e9892aa563a525ed61e9a5087c59bf +[40]: https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/commit/74a87ddcaeb6a3fae6ebeb0376910e1ad4408784 diff --git a/docs/functions/default.md b/docs/functions/default.md index 9ac535e..6f21806 100644 --- a/docs/functions/default.md +++ b/docs/functions/default.md @@ -16,4 +16,4 @@ A babel plugin that reliably rewrites import (and export) specifiers. ## Defined in -[index.ts:137](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/40f2b2bf6fa6d5f4f6faf3e8004138265cb3ed3d/src/index.ts#L137) +[index.ts:137](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d/src/index.ts#L137) diff --git a/docs/type-aliases/Callback.md b/docs/type-aliases/Callback.md index f02c419..39bd2ce 100644 --- a/docs/type-aliases/Callback.md +++ b/docs/type-aliases/Callback.md @@ -39,4 +39,4 @@ The import/export specifier being evaluated by Babel. ## Defined in -[index.ts:44](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/40f2b2bf6fa6d5f4f6faf3e8004138265cb3ed3d/src/index.ts#L44) +[index.ts:44](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d/src/index.ts#L44) diff --git a/docs/type-aliases/Options.md b/docs/type-aliases/Options.md index e50743a..d567796 100644 --- a/docs/type-aliases/Options.md +++ b/docs/type-aliases/Options.md @@ -108,4 +108,4 @@ false ## Defined in -[index.ts:64](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/40f2b2bf6fa6d5f4f6faf3e8004138265cb3ed3d/src/index.ts#L64) +[index.ts:64](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d/src/index.ts#L64) diff --git a/docs/type-aliases/State.md b/docs/type-aliases/State.md index 7afc8d2..7c0108c 100644 --- a/docs/type-aliases/State.md +++ b/docs/type-aliases/State.md @@ -18,4 +18,4 @@ The shape of the internal state of the Babel plugin itself. ## Defined in -[index.ts:38](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/40f2b2bf6fa6d5f4f6faf3e8004138265cb3ed3d/src/index.ts#L38) +[index.ts:38](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d/src/index.ts#L38) diff --git a/docs/variables/defaultRecognizedExtensions.md b/docs/variables/defaultRecognizedExtensions.md index 10413c4..fa6cdfa 100644 --- a/docs/variables/defaultRecognizedExtensions.md +++ b/docs/variables/defaultRecognizedExtensions.md @@ -12,4 +12,4 @@ The default value of `Options.recognizedExtensions`. ## Defined in -[index.ts:126](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/40f2b2bf6fa6d5f4f6faf3e8004138265cb3ed3d/src/index.ts#L126) +[index.ts:126](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d/src/index.ts#L126) diff --git a/docs/variables/defaultRequireLikeFunctions.md b/docs/variables/defaultRequireLikeFunctions.md index 4459924..c8856c5 100644 --- a/docs/variables/defaultRequireLikeFunctions.md +++ b/docs/variables/defaultRequireLikeFunctions.md @@ -10,4 +10,4 @@ ## Defined in -[index.ts:14](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/40f2b2bf6fa6d5f4f6faf3e8004138265cb3ed3d/src/index.ts#L14) +[index.ts:14](https://github.com/Xunnamius/babel-plugin-transform-rewrite-imports/blob/bc746a21e0690faa47b9d98ed4abf9ff41a1b71d/src/index.ts#L14) diff --git a/package-lock.json b/package-lock.json index c6977bf..af8046e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "babel-plugin-transform-rewrite-imports", - "version": "1.5.1", + "version": "1.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "babel-plugin-transform-rewrite-imports", - "version": "1.5.1", + "version": "1.5.2", "license": "MIT", "dependencies": { "@babel/template": "^7.25.9", diff --git a/package.json b/package.json index 20198d7..9a6628c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-transform-rewrite-imports", - "version": "1.5.1", + "version": "1.5.2", "description": "Add an extension to import specifiers that do not already have one, replace the extensions of those that do, or even rewrite specifiers entirely.", "keywords": [ "babel",