diff --git a/CHANGELOG.md b/CHANGELOG.md index 67871747..3e2417e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,792 @@ +## [3.1.3](https://github.com/unjs/unimport/compare/v3.1.2...v3.1.3) (2023-08-03) + + +### Bug Fixes + +* do not remove side-effects on transform ([e7b3677](https://github.com/unjs/unimport/commit/e7b367748078179a8ab55eda492ed1c0843e4c24)) + + + +## [3.1.2](https://github.com/unjs/unimport/compare/v3.1.1...v3.1.2) (2023-08-02) + + +### Bug Fixes + +* virtual importing uses stripped code ([988f20d](https://github.com/unjs/unimport/commit/988f20d98a32e57bfa26f5d0d74c73d88e4c3872)) + + + +## [3.1.1](https://github.com/unjs/unimport/compare/v3.1.0...v3.1.1) (2023-08-02) + + +### Bug Fixes + +* edge case when backtick in regexp ([ce760a7](https://github.com/unjs/unimport/commit/ce760a7d8bb777822dd2b0f15c82badbb866d992)) + + + +# [3.1.0](https://github.com/unjs/unimport/compare/v3.0.14...v3.1.0) (2023-07-20) + + +### Features + +* add rxjs to preset ([#256](https://github.com/unjs/unimport/issues/256)) ([2458d18](https://github.com/unjs/unimport/commit/2458d18dac48297290fde483b28b7f7a806ae3d5)) +* add version in context ([5342993](https://github.com/unjs/unimport/commit/5342993cc16d57ba66c236a560a73e9cdc63c481)) +* expose code and id to `injectImportsStringified` hook ([3fecc3f](https://github.com/unjs/unimport/commit/3fecc3f93273c2e08d5bad730d121d25ae962061)) + + + +## [3.0.14](https://github.com/unjs/unimport/compare/v3.0.13...v3.0.14) (2023-07-04) + + +### Bug Fixes + +* **vue-template:** respect hooks from other addons ([ab31293](https://github.com/unjs/unimport/commit/ab31293bb8e2e3af84277229e3cfdd19b7ccd531)) + + + +## [3.0.13](https://github.com/unjs/unimport/compare/v3.0.12...v3.0.13) (2023-07-04) + + +### Features + +* add two injection hooks for addons ([3204262](https://github.com/unjs/unimport/commit/320426201ea7577f1e4dc289f0dcf7f6242aae9a)) + + + +## [3.0.12](https://github.com/unjs/unimport/compare/v3.0.11...v3.0.12) (2023-07-03) + + +### Features + +* allow addons to extend the imports ([35a5726](https://github.com/unjs/unimport/commit/35a572601dc5c7603f1c1cea472a32414ad7c1b8)) + + + +## [3.0.11](https://github.com/unjs/unimport/compare/v3.0.10...v3.0.11) (2023-06-28) + + +### Bug Fixes + +* regex detect for multiple line declaration ([cdb8466](https://github.com/unjs/unimport/commit/cdb846636667662293facfbf2189181a45698020)), closes [#250](https://github.com/unjs/unimport/issues/250) + + + +## [3.0.10](https://github.com/unjs/unimport/compare/v3.0.9...v3.0.10) (2023-06-26) + + +### Bug Fixes + +* multivariable declaration parsing error ([#250](https://github.com/unjs/unimport/issues/250)) ([8f50633](https://github.com/unjs/unimport/commit/8f50633c38dc80e38d24c4ff82758a7a385ffb9f)) +* skip parsing import in comments ([#249](https://github.com/unjs/unimport/issues/249)) ([44f38cf](https://github.com/unjs/unimport/commit/44f38cf57f2631c391212f5815b5044adae6f2d5)) + + + +## [3.0.9](https://github.com/unjs/unimport/compare/v3.0.8...v3.0.9) (2023-06-26) + + +### Features + +* `toExports` supports exporting types ([5e2f288](https://github.com/unjs/unimport/commit/5e2f2884abd13c2434edee0c1b992ed4f13b0f5f)) + + + +## [3.0.8](https://github.com/unjs/unimport/compare/v3.0.7...v3.0.8) (2023-06-09) + + +### Features + +* **unplugin:** support disabling autoImport option ([c8c0fcc](https://github.com/unjs/unimport/commit/c8c0fcc7fbdc464093c09841d1ec9cacf54db82c)) + + + +## [3.0.7](https://github.com/unjs/unimport/compare/v3.0.6...v3.0.7) (2023-05-20) + + +### Bug Fixes + +* **presets:** add the new toValue method in vue 3 ([#241](https://github.com/unjs/unimport/issues/241)) ([64d0f95](https://github.com/unjs/unimport/commit/64d0f9503891232dcb5b57e7baba6adcbf000233)) +* workaround for Vue 3.3 template auto import ([88b9e34](https://github.com/unjs/unimport/commit/88b9e3424db15507e7b9e28b0cdb9a5f4d9a0880)) + + + +## [3.0.6](https://github.com/unjs/unimport/compare/v3.0.5...v3.0.6) (2023-04-05) + + +### Bug Fixes + +* do not generate types in `.toExports()`, close https://github.com/nuxt/nuxt/issues/19920 ([7032de3](https://github.com/unjs/unimport/commit/7032de30f7383a934729750657c06427c10cc77c)) + + + +## [3.0.5](https://github.com/unjs/unimport/compare/v3.0.4...v3.0.5) (2023-04-04) + + +### Bug Fixes + +* expose getImportMap ([#237](https://github.com/unjs/unimport/issues/237)) ([4bd5ee0](https://github.com/unjs/unimport/commit/4bd5ee09a4b2cf99370448b3aef48ed9db2598eb)) +* only camel-case default exports if they're transformable ([#234](https://github.com/unjs/unimport/issues/234)) ([96146d4](https://github.com/unjs/unimport/commit/96146d4b32015925554149c7d6ffa4687954d502)) + + + +## [3.0.4](https://github.com/unjs/unimport/compare/v3.0.3...v3.0.4) (2023-03-24) + + +### Bug Fixes + +* regexp matching imports/exports ([#232](https://github.com/unjs/unimport/issues/232)) ([661c153](https://github.com/unjs/unimport/commit/661c15366fa346ffa9d1d9cbae30bfeda4cef4f0)) + + + +## [3.0.3](https://github.com/unjs/unimport/compare/v3.0.2...v3.0.3) (2023-03-16) + + +### Bug Fixes + +* **scan-dir:** handle re-export from folder index ([#229](https://github.com/unjs/unimport/issues/229)) ([7d0c4e2](https://github.com/unjs/unimport/commit/7d0c4e27532b86481a1405eb33b2881b31168e2e)) + + +### Features + +* **presets:** add missing vue-router api ([#224](https://github.com/unjs/unimport/issues/224)) ([1be4b7b](https://github.com/unjs/unimport/commit/1be4b7baba7af772ea863f2bfe529daa2830bc12)) + + + +## [3.0.2](https://github.com/unjs/unimport/compare/v3.0.1...v3.0.2) (2023-02-24) + + +### Bug Fixes + +* **dts:** always remove `.ts` extension in dts ([03288a9](https://github.com/unjs/unimport/commit/03288a976d8f51da1e8bb22e58cde2df6184bd3f)) + + + +## [3.0.1](https://github.com/unjs/unimport/compare/v3.0.0...v3.0.1) (2023-02-23) + + +### Bug Fixes + +* do not resolve named namespace exports ([8bf58b8](https://github.com/unjs/unimport/commit/8bf58b8905588a54130e418354f952de916a6a0b)) + + + +# [3.0.0](https://github.com/unjs/unimport/compare/v2.2.4...v3.0.0) (2023-02-23) + + +### Features + +* **scan:** support scanning star imports ([#216](https://github.com/unjs/unimport/issues/216)) ([ae31dba](https://github.com/unjs/unimport/commit/ae31dbab17f763a11bcf7d3459baab676736e5ec)) + + + +## [2.2.4](https://github.com/unjs/unimport/compare/v2.2.3...v2.2.4) (2023-02-07) + + +### Bug Fixes + +* do not generate type only exports in vue template ([9146e97](https://github.com/unjs/unimport/commit/9146e97c0a49056075433bcff1aa981f19bd5ad1)) +* improve type export compatibility ([8ee5a1d](https://github.com/unjs/unimport/commit/8ee5a1d8411d3f3a9c2cbc2e6e04c4cc9c8425c8)) + + + +## [2.2.3](https://github.com/unjs/unimport/compare/v2.2.2...v2.2.3) (2023-02-07) + + +### Bug Fixes + +* add missing vue exports ([05ee56c](https://github.com/unjs/unimport/commit/05ee56cd788f9a259f621cb1997765318e2f1db2)) + + + +## [2.2.2](https://github.com/unjs/unimport/compare/v2.2.1...v2.2.2) (2023-02-07) + + +### Features + +* expose `getInternalContext` ([17bb37f](https://github.com/unjs/unimport/commit/17bb37fea35a90d34a5fd8e2cf74e18bb18117b3)) + + + +## [2.2.1](https://github.com/unjs/unimport/compare/v2.2.0...v2.2.1) (2023-02-07) + + +### Features + +* add vue-router composables preset ([5a6f36f](https://github.com/unjs/unimport/commit/5a6f36ff41d4b319284a08caae7e42b363fbd96c)) +* expose `replaceImports` method ([6ae3952](https://github.com/unjs/unimport/commit/6ae3952c26b8621f9554ce0dc66dbf040ee1b2e8)) + + + +# [2.2.0](https://github.com/unjs/unimport/compare/v2.1.0...v2.2.0) (2023-02-07) + + +### Features + +* types auto import ([#218](https://github.com/unjs/unimport/issues/218)) ([f33f085](https://github.com/unjs/unimport/commit/f33f085ae02052a12c17261e94480094db12ce9a)) + + + +# [2.1.0](https://github.com/unjs/unimport/compare/v2.0.1...v2.1.0) (2023-01-29) + + +### Features + +* support `injectAtLast` option ([6b1ba91](https://github.com/unjs/unimport/commit/6b1ba9149f519742ffafe91497bc3feec905b1b7)) + + + +## [2.0.1](https://github.com/unjs/unimport/compare/v2.0.0...v2.0.1) (2023-01-24) + + +### Bug Fixes + +* expose imports from `scanImportsFromDir` ([e09252a](https://github.com/unjs/unimport/commit/e09252a4deb3d8abc0ff9ee91e1375377f2819b4)) +* **vue-template:** stable transform across multiple pass ([46f314f](https://github.com/unjs/unimport/commit/46f314f2b0844ebf9e8613cd4d35e4ddb1c4dd16)) + + + +# [2.0.0](https://github.com/unjs/unimport/compare/v1.3.0...v2.0.0) (2023-01-24) + + +### Features + +* integrate `dirs` option to core, close [#213](https://github.com/unjs/unimport/issues/213) ([6716a97](https://github.com/unjs/unimport/commit/6716a975c05e8d9a29f8c4f5455adc1a30823e83)) + + + +# [1.3.0](https://github.com/unjs/unimport/compare/v1.2.0...v1.3.0) (2023-01-20) + + +### Features + +* custom metadata for imports ([#211](https://github.com/unjs/unimport/issues/211)) ([050d0d7](https://github.com/unjs/unimport/commit/050d0d72a2d451867cb2ad4d304b529ea7db800f)) + + + +# [1.2.0](https://github.com/unjs/unimport/compare/v1.1.0...v1.2.0) (2023-01-06) + + +### Features + +* support metadata collecting ([3429ff5](https://github.com/unjs/unimport/commit/3429ff5f609c6410d3fad967c26514214a4f8e54)) + + + +# [1.1.0](https://github.com/unjs/unimport/compare/v1.0.2...v1.1.0) (2022-12-20) + + +### Bug Fixes + +* do not auto import referencing to self ([de820c3](https://github.com/unjs/unimport/commit/de820c3fddc79e1ed1f611079df511a4a1988fe0)) + + +### Features + +* `commentsDebug` option ([0d8b023](https://github.com/unjs/unimport/commit/0d8b02390a7e85b4b0668f4113f9f89dc0b12f65)) +* opt-out auto import by magic comments, [#176](https://github.com/unjs/unimport/issues/176) ([#184](https://github.com/unjs/unimport/issues/184)) ([9848faf](https://github.com/unjs/unimport/commit/9848faf9f2c2ed833738f9ac146b320339bacf92)) + + + +## [1.0.2](https://github.com/unjs/unimport/compare/v1.0.1...v1.0.2) (2022-12-12) + + + +## [1.0.1](https://github.com/unjs/unimport/compare/v1.0.0...v1.0.1) (2022-11-16) + + +### Bug Fixes + +* **scan:** glob construction ([6d93244](https://github.com/unjs/unimport/commit/6d932449f469ed48b3166cc3a62a81ed58701fcc)) + + + +# [1.0.0](https://github.com/unjs/unimport/compare/v0.7.1...v1.0.0) (2022-11-15) + + + +## [0.7.1](https://github.com/unjs/unimport/compare/v0.7.0...v0.7.1) (2022-11-15) + + +### Bug Fixes + +* **presets:** path resolveModule on vueuse preset ([#138](https://github.com/unjs/unimport/issues/138)) ([d1e0c4b](https://github.com/unjs/unimport/commit/d1e0c4b84b5c5a28e78b2e5454049cfabad2bdc0)) + + +### Features + +* scanDirs respects input dirs order ([#148](https://github.com/unjs/unimport/issues/148)) ([25543d5](https://github.com/unjs/unimport/commit/25543d518900fb56709bd28a1746c2b8e0fb7d43)) + + + +# [0.7.0](https://github.com/unjs/unimport/compare/v0.6.8...v0.7.0) (2022-10-26) + + +### Bug Fixes + +* ternary match ([5a62a5d](https://github.com/unjs/unimport/commit/5a62a5d0190f7f7a6acee3c342a2c5d3f8fc0a7f)) +* vue template ComponentCustomProperties interface ([#126](https://github.com/unjs/unimport/issues/126)) ([726d12c](https://github.com/unjs/unimport/commit/726d12ce723fd98d82d1935b4f364d1028b79adb)) + + +### Features + +* new `installGlobalAutoImports` util ([#135](https://github.com/unjs/unimport/issues/135)) ([fc4ad9d](https://github.com/unjs/unimport/commit/fc4ad9d91bda989929f1958c9f72977af1a21274)) + + + +## [0.6.8](https://github.com/unjs/unimport/compare/v0.6.7...v0.6.8) (2022-09-30) + + +### Bug Fixes + +* improve exsiting identifier detection ([#123](https://github.com/unjs/unimport/issues/123)) ([3fb5274](https://github.com/unjs/unimport/commit/3fb5274d8d7e4fc1a9204ac2dfb23cc34851b62b)) + + + +## [0.6.7](https://github.com/unjs/unimport/compare/v0.6.6...v0.6.7) (2022-08-10) + + +### Performance Improvements + +* decrease processing time for exclude regexp ([#107](https://github.com/unjs/unimport/issues/107)) ([aa75ae2](https://github.com/unjs/unimport/commit/aa75ae2ac1eb1b1d0f2f895e900117ad217d06de)) + + + +## [0.6.6](https://github.com/unjs/unimport/compare/v0.6.5...v0.6.6) (2022-08-10) + + +### Bug Fixes + +* rename `transformVirtualImoports` to `transformVirtualImports` ([#106](https://github.com/unjs/unimport/issues/106)) ([9e72ffc](https://github.com/unjs/unimport/commit/9e72ffcb8ea2254104bf837b8b21bea1165cab07)) + + + +## [0.6.5](https://github.com/unjs/unimport/compare/v0.6.4...v0.6.5) (2022-08-04) + + +### Bug Fixes + +* supports more syntaxes ([#102](https://github.com/unjs/unimport/issues/102)) ([05648f5](https://github.com/unjs/unimport/commit/05648f5fa49c7325d0c313a05000d9f2c5ba5615)) + + + +## [0.6.4](https://github.com/unjs/unimport/compare/v0.6.3...v0.6.4) (2022-07-27) + + + +## [0.6.3](https://github.com/unjs/unimport/compare/v0.6.2...v0.6.3) (2022-07-24) + + +### Bug Fixes + +* normalize path for windows ([4849f77](https://github.com/unjs/unimport/commit/4849f77a14f50d2afbebdd264166ee5efaf0aade)) +* **scan:** normlaize directories ([aa5a354](https://github.com/unjs/unimport/commit/aa5a354f918707368e82f8f54a5836c2d7d4d7fb)) + + + +## [0.6.2](https://github.com/unjs/unimport/compare/v0.6.1...v0.6.2) (2022-07-22) + + +### Features + +* `toExports` support relative path ([c34f027](https://github.com/unjs/unimport/commit/c34f027b32d5efd0bc0270783c59b13c813d7a44)) + + + +## [0.6.1](https://github.com/unjs/unimport/compare/v0.6.0...v0.6.1) (2022-07-21) + + +### Bug Fixes + +* **scan:** sort glob for stable result ([5fd42aa](https://github.com/unjs/unimport/commit/5fd42aadfc63337ce3a737fb2450b3a5a2640459)) + + + +# [0.6.0](https://github.com/unjs/unimport/compare/v0.5.0...v0.6.0) (2022-07-21) + + + +# [0.5.0](https://github.com/unjs/unimport/compare/v0.4.7...v0.5.0) (2022-07-21) + + + +## [0.4.7](https://github.com/unjs/unimport/compare/v0.4.6...v0.4.7) (2022-07-21) + + + +## [0.4.6](https://github.com/unjs/unimport/compare/v0.4.5...v0.4.6) (2022-07-21) + + + +## [0.4.5](https://github.com/unjs/unimport/compare/v0.4.4...v0.4.5) (2022-07-14) + + + +## [0.4.4](https://github.com/unjs/unimport/compare/v0.4.3...v0.4.4) (2022-07-08) + + +### Bug Fixes + +* **unplugin:** use default includes when `include` is provide as an empty array ([78e8d74](https://github.com/unjs/unimport/commit/78e8d7416b2ea723167777cc3a1175109e850358)), closes [/github.com/unjs/nitro/pull/295#issuecomment-1156519293](https://github.com//github.com/unjs/nitro/pull/295/issues/issuecomment-1156519293) + + + +## [0.4.3](https://github.com/unjs/unimport/compare/v0.4.2...v0.4.3) (2022-07-07) + + +### Bug Fixes + +* don't auto-import for exports from other modules ([#87](https://github.com/unjs/unimport/issues/87)) ([4c345a4](https://github.com/unjs/unimport/commit/4c345a4fbff161828bd0e7330e14e3504ab62a35)) + + +### Features + +* transform virtual imports ([#85](https://github.com/unjs/unimport/issues/85)) ([07277e6](https://github.com/unjs/unimport/commit/07277e6536db1c8c58bb6cb345ab0b3b4af6e1ad)) + + + +## [0.4.2](https://github.com/unjs/unimport/compare/v0.4.1...v0.4.2) (2022-07-06) + + +### Bug Fixes + +* regex replacement false-negative ([1f9e35d](https://github.com/unjs/unimport/commit/1f9e35d94df19461941decd05160b8aded2809c9)) + + + +## [0.4.1](https://github.com/unjs/unimport/compare/v0.4.0...v0.4.1) (2022-07-01) + + +### Bug Fixes + +* improve switch detection ([2fb10ef](https://github.com/unjs/unimport/commit/2fb10ef9404db713ad68bab60732ff72072cd0dd)) + + + +# [0.4.0](https://github.com/unjs/unimport/compare/v0.3.0...v0.4.0) (2022-06-24) + + +### Bug Fixes + +* spelling of declaration ([#81](https://github.com/unjs/unimport/issues/81)) ([f371b9b](https://github.com/unjs/unimport/commit/f371b9b109c65b9c813be5917a820701cba9379b)) +* **vue-template:** augmente types with `@vue/runtime-core` ([#80](https://github.com/unjs/unimport/issues/80)) ([7c83d44](https://github.com/unjs/unimport/commit/7c83d4460807ffe8d1108440f27c032c25824840)) + + + +# [0.3.0](https://github.com/unjs/unimport/compare/v0.2.10...v0.3.0) (2022-06-22) + + + +## [0.2.10](https://github.com/unjs/unimport/compare/v0.2.9...v0.2.10) (2022-06-22) + + +### Bug Fixes + +* improve match re, close [#79](https://github.com/unjs/unimport/issues/79) ([36403af](https://github.com/unjs/unimport/commit/36403af1ced8e5514121c80f3566785aa0f1e264)) + + +### Features + +* new `resolveId` options ([#73](https://github.com/unjs/unimport/issues/73)) ([6f83408](https://github.com/unjs/unimport/commit/6f83408e78591ed4792ff8487953af17c9327958)) + + + +## [0.2.9](https://github.com/unjs/unimport/compare/v0.2.8...v0.2.9) (2022-06-14) + + +### Bug Fixes + +* keep `ctx.map` up-to-date, close [#71](https://github.com/unjs/unimport/issues/71) ([6a31073](https://github.com/unjs/unimport/commit/6a310730a34f5c3f875acd61a19b440b3df988da)) + + + +## [0.2.8](https://github.com/unjs/unimport/compare/v0.2.7...v0.2.8) (2022-06-13) + + +### Bug Fixes + +* use regex as fallback of `strip-literal` ([c43ffe3](https://github.com/unjs/unimport/commit/c43ffe3efa3fcff3c94528eb4eff301923c6b57f)) + + + +## [0.2.7](https://github.com/unjs/unimport/compare/v0.2.6...v0.2.7) (2022-06-10) + + +### Bug Fixes + +* strict cjs syntax detection ([efd81c7](https://github.com/unjs/unimport/commit/efd81c75ce8abf4f7c14be7058b4638c662341b7)) + + + +## [0.2.6](https://github.com/unjs/unimport/compare/v0.2.5...v0.2.6) (2022-05-31) + + +### Bug Fixes + +* nested quotes in template string, multiline template string ([#49](https://github.com/unjs/unimport/issues/49)) ([#58](https://github.com/unjs/unimport/issues/58)) ([d5921ae](https://github.com/unjs/unimport/commit/d5921ae69553ad4a3092223e43df038d5c715505)) +* use `strip-literal` for more correct comments removal ([#60](https://github.com/unjs/unimport/issues/60)) ([087407e](https://github.com/unjs/unimport/commit/087407e0d7a6f88bdce3be3c15dd4236c4368ca9)) + + + +## [0.2.5](https://github.com/unjs/unimport/compare/v0.2.4...v0.2.5) (2022-05-29) + + +### Bug Fixes + +* no space in comment ([#56](https://github.com/unjs/unimport/issues/56)) ([720d164](https://github.com/unjs/unimport/commit/720d164ee90e564a2a9441a2381540391c33b525)) +* slash in regex ([#52](https://github.com/unjs/unimport/issues/52)) ([685c320](https://github.com/unjs/unimport/commit/685c32093a37195f3844048f1f69494eb06f7c69)) +* space in template literal ([#55](https://github.com/unjs/unimport/issues/55)) ([55bcb46](https://github.com/unjs/unimport/commit/55bcb46e392067d683d44efeb8bb6c7cf11f3d62)) + + + +## [0.2.4](https://github.com/unjs/unimport/compare/v0.2.3...v0.2.4) (2022-05-25) + + +### Bug Fixes + +* exclude existing class define ([94c3a7d](https://github.com/unjs/unimport/commit/94c3a7dfa9cbe8ac392322fecf34f03cf707c58d)) +* regexes break with unbalanced backticks ([#51](https://github.com/unjs/unimport/issues/51)) ([c6764ba](https://github.com/unjs/unimport/commit/c6764bafc0b800459167944fdf4ac782a03bd341)) + + + +## [0.2.3](https://github.com/unjs/unimport/compare/v0.2.2...v0.2.3) (2022-05-24) + + +### Bug Fixes + +* **types:** redirect sub module types ([5314d44](https://github.com/unjs/unimport/commit/5314d44c19f66d5df8c46f1687222a594a98c642)) + + + +## [0.2.2](https://github.com/unjs/unimport/compare/v0.2.1...v0.2.2) (2022-05-24) + + +### Bug Fixes + +* don't match identifiers starts with `.` ([6cddef4](https://github.com/unjs/unimport/commit/6cddef49d93346069f112ebeae9f1fd93d01c125)) +* improve match regex ([0e68fd7](https://github.com/unjs/unimport/commit/0e68fd72c18af7bf8c1c9402a06d5742978f1776)) +* sort dts entries ([3d71eef](https://github.com/unjs/unimport/commit/3d71eef9f43cbb0d34c55a6d915d57b2d29146b6)) + + +### Features + +* allow `modifyDynamicImports` to replace array ([abcb52c](https://github.com/unjs/unimport/commit/abcb52cc12524e264e7d0c9ed985373b50ce8728)) +* expose addons ([a954785](https://github.com/unjs/unimport/commit/a9547851f78775a266f1718a50a14ff956698684)) +* improve addons API ([bd92eac](https://github.com/unjs/unimport/commit/bd92eac74566148a7f0c525dfc938d61372d7245)) +* improve coverage ([37d39a0](https://github.com/unjs/unimport/commit/37d39a030741bf443152caa402741e72ef32036e)) +* support importing side-effects ([0d2da20](https://github.com/unjs/unimport/commit/0d2da20ea08e727c3bf9a9a98b29afc8b7f5f506)) + + + +## [0.2.1](https://github.com/unjs/unimport/compare/v0.1.9...v0.2.1) (2022-05-10) + + +### Bug Fixes + +* **vue-template:** webpack compatibility ([ffc71dc](https://github.com/unjs/unimport/commit/ffc71dc33793d7b73007a85dd747d95d42975c71)) + + +### Features + +* auto import for Vue template ([#15](https://github.com/unjs/unimport/issues/15)) ([136fb32](https://github.com/unjs/unimport/commit/136fb322f46be47cc5cc318111cf2ea5728afa07)) + + + +## [0.1.9](https://github.com/unjs/unimport/compare/v0.1.8...v0.1.9) (2022-05-09) + + +### Bug Fixes + +* detect function argument ends with comma ([29365cd](https://github.com/unjs/unimport/commit/29365cddf34d972232f2dbfd6194244c34a1a277)) + + +### Performance Improvements + +* use static regex ([#23](https://github.com/unjs/unimport/issues/23)) ([c4fbb3d](https://github.com/unjs/unimport/commit/c4fbb3d8e0d14f594f0558d8467e9815b3ca3881)) + + + +## [0.1.8](https://github.com/unjs/unimport/compare/v0.1.7...v0.1.8) (2022-04-28) + + +### Bug Fixes + +* correctly dedupe ([08f5282](https://github.com/unjs/unimport/commit/08f528200b773a5b5be1cc168c40779098b04cce)) + + + +## [0.1.7](https://github.com/unjs/unimport/compare/v0.1.6...v0.1.7) (2022-04-26) + + +### Bug Fixes + +* dedupe imports from same source ([7faa56f](https://github.com/unjs/unimport/commit/7faa56f71bde9f89767da6cd74fd624445915014)) + + +### Features + +* expose `clearDynamicImports` to context ([2f82f0a](https://github.com/unjs/unimport/commit/2f82f0a761b7c10bfea0cbc94edb6c0f7c7b421c)) + + + +## [0.1.6](https://github.com/unjs/unimport/compare/v0.1.5...v0.1.6) (2022-04-20) + + +### Bug Fixes + +* support ts generic ([c085469](https://github.com/unjs/unimport/commit/c08546972432b9a9fcf20d42dc41124d2e6f66c6)) + + + +## [0.1.5](https://github.com/unjs/unimport/compare/v0.1.4...v0.1.5) (2022-04-13) + + +### Bug Fixes + +* support template tag ([a1ab167](https://github.com/unjs/unimport/commit/a1ab1674543c7493cb01e2ad638537739414c4ee)) + + + +## [0.1.4](https://github.com/unjs/unimport/compare/v0.1.3...v0.1.4) (2022-04-05) + + +### Bug Fixes + +* template literal detection ([3ea56ff](https://github.com/unjs/unimport/commit/3ea56fffb02d4efb7760526023601196a721a718)) + + + +## [0.1.3](https://github.com/unjs/unimport/compare/v0.1.2...v0.1.3) (2022-03-24) + + +### Bug Fixes + +* remove disabled imports before deduplicating ([#14](https://github.com/unjs/unimport/issues/14)) ([d17b29d](https://github.com/unjs/unimport/commit/d17b29d3f96b2e64bde0f59463b0b313ee10f548)) + + + +## [0.1.2](https://github.com/unjs/unimport/compare/v0.1.1...v0.1.2) (2022-03-23) + + +### Features + +* supports `disabled` flag on `Import` ([#13](https://github.com/unjs/unimport/issues/13)) ([2cf781d](https://github.com/unjs/unimport/commit/2cf781d23cc1881c67e2c8c725bfabca2ffb7dba)) + + + +## [0.1.1](https://github.com/unjs/unimport/compare/v0.1.0...v0.1.1) (2022-03-19) + + +### Bug Fixes + +* improve dection for object props ([736111a](https://github.com/unjs/unimport/commit/736111afcd468600e4c9250b500bb6cc65986ff2)) + + + +# [0.1.0](https://github.com/unjs/unimport/compare/v0.0.8...v0.1.0) (2022-03-15) + + +### Bug Fixes + +* dts export {} ([0c7adb6](https://github.com/unjs/unimport/commit/0c7adb6dccb21b0ba063f43b24b94a5f63510d58)) +* regexRE escaping ([61993e3](https://github.com/unjs/unimport/commit/61993e37f7223482b5a6c2159373a6f9c92a28e5)) +* strip file extensions for exports ([#11](https://github.com/unjs/unimport/issues/11)) ([5e183a8](https://github.com/unjs/unimport/commit/5e183a8ca41fe79995de39a77f485818916d5df4)) +* strip regex ([578d9b1](https://github.com/unjs/unimport/commit/578d9b138a1ef9ed0ecad95d5cb4e4bd0b71c119)) + + +### Features + +* `scanDirExports` utils, close [#9](https://github.com/unjs/unimport/issues/9) ([#10](https://github.com/unjs/unimport/issues/10)) ([e6f7c71](https://github.com/unjs/unimport/commit/e6f7c711c2f9f69f3390049b09637e7d28296be5)) +* resolve priority from presets ([2353807](https://github.com/unjs/unimport/commit/2353807f8187cda87c99ad3184e0f1a332a9f9fa)) + + + +## [0.0.8](https://github.com/unjs/unimport/compare/v0.0.7...v0.0.8) (2022-03-09) + + +### Bug Fixes + +* ship dts files ([7fe9a32](https://github.com/unjs/unimport/commit/7fe9a32c8063d922ad8cf6aa4d82ab4b85974e14)) + + + +## [0.0.7](https://github.com/unjs/unimport/compare/v0.0.6...v0.0.7) (2022-03-09) + + +### Bug Fixes + +* types ([5fdc506](https://github.com/unjs/unimport/commit/5fdc50692d0c1ee1680f2fb9817a91430dc20a04)) + + + +## [0.0.6](https://github.com/unjs/unimport/compare/v0.0.5...v0.0.6) (2022-03-09) + + +### Bug Fixes + +* types ([0b4364d](https://github.com/unjs/unimport/commit/0b4364dbf5a562064118257e437bb4a2a71a46f0)) + + + +## [0.0.5](https://github.com/unjs/unimport/compare/v0.0.4...v0.0.5) (2022-03-03) + + + +## [0.0.4](https://github.com/unjs/unimport/compare/v0.0.3...v0.0.4) (2022-02-25) + + +### Features + +* path resolver for dts generation ([14598a5](https://github.com/unjs/unimport/commit/14598a523cd3aba0044986b68d3e166ca0565d5e)) + + + +## [0.0.3](https://github.com/unjs/unimport/compare/v0.0.2...v0.0.3) (2022-02-25) + + +### Bug Fixes + +* clear internal map ([8232a44](https://github.com/unjs/unimport/commit/8232a44a97b0d05f7ea1c63c2f1c8008efabe3c0)) +* **unplugin:** async transform support ([efc2a66](https://github.com/unjs/unimport/commit/efc2a6633590b27f1018146868cd8bffcb2da3ae)) + + +### Features + +* `getImports` function ([84e6564](https://github.com/unjs/unimport/commit/84e6564a20e577b62ebd38609bbda98e2d49ffa9)) +* `modifyDynamicImports` function ([8a15b6a](https://github.com/unjs/unimport/commit/8a15b6abebddd4b6f74e280b7960dddaa803f1fb)) +* dynamic imports ([4964f9b](https://github.com/unjs/unimport/commit/4964f9b52c8a3c5a10f266c3b9740b02d6427ada)) +* toExports ([b2baa8a](https://github.com/unjs/unimport/commit/b2baa8ac201c1210bc3ee17225955d96ae3b4f19)) + + + +## [0.0.2](https://github.com/unjs/unimport/compare/v0.0.1...v0.0.2) (2022-02-25) + + +### Bug Fixes + +* expose utils ([0e74e2a](https://github.com/unjs/unimport/commit/0e74e2ac147af7aefa5c7bebeb4265b8d6da2f6b)) + + + +## [0.0.1](https://github.com/unjs/unimport/compare/2e7cf4093b6aac91fe2fe211fc16005cd8f6efa2...v0.0.1) (2022-02-25) + + +### Bug Fixes + +* **unplugin:** enfore `post` ([3edf518](https://github.com/unjs/unimport/commit/3edf5186653a7232c732c97ac89b101e48c2d89e)) + + +### Features + +* add built-in presets from unplugin-auto-import ([d3e5830](https://github.com/unjs/unimport/commit/d3e5830dce55e8918c18f7df36bde63326f7aab3)) +* dts generation ([96b44b6](https://github.com/unjs/unimport/commit/96b44b66b476c8e7df44b73a199a08399e058a2d)) +* imports priority and dedupe ([6036220](https://github.com/unjs/unimport/commit/60362205ce60030d7bf11228ef21000a2874531b)) +* merging with an existing import declaration, close [#7](https://github.com/unjs/unimport/issues/7) ([b42ad88](https://github.com/unjs/unimport/commit/b42ad882a25a70f7524d0527c6950238e7560eb1)) +* support default and import all syntax ([#3](https://github.com/unjs/unimport/issues/3)) ([2e7cf40](https://github.com/unjs/unimport/commit/2e7cf4093b6aac91fe2fe211fc16005cd8f6efa2)) +* **unplugin:** `include` / `exclude` option ([5da4e16](https://github.com/unjs/unimport/commit/5da4e16e4fab719c5473bb6a00375aa3beffc769)) +* **unplugin:** dts generation ([a03f6c7](https://github.com/unjs/unimport/commit/a03f6c75db526d26fc9d641099bde319170927b7)) + + + ## [3.1.2](https://github.com/unjs/unimport/compare/v3.1.1...v3.1.2) (2023-08-02) diff --git a/package.json b/package.json index 8143a1e6..a97638ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unimport", - "version": "3.1.2", + "version": "3.1.3", "description": "Unified utils for auto importing APIs in modules", "repository": "unjs/unimport", "license": "MIT",