Releases: IanVS/prettier-plugin-sort-imports
v4.2.1
v4.2.0
What's Changed
Features
Bug fixes
- Fix:
node:test
not grouped with<BUILTIN_MODULES>
by @IsaiahByDayah in #143
Dependencies
- chore(deps): bump @babel/traverse to avoid audit warning by @pauliesnug in #137
- Update Babel to 7.24 by @IanVS in #154
Docs
New Contributors
- @pauliesnug made their first contribution in #137
- @IsaiahByDayah made their first contribution in #143
Full Changelog: v4.1.1...v4.2.0
v4.1.1
What's Changed
Fixes
- Fix type import specifier dupe by @AlexJDG in #125
- Fix vue preprocessor may replace wrong code by @Tanimodori in #135
Docs
- Add
plugins
config to README by @IanVS in #114 - recommend using ^react$ for sorting react to the top. by @willhoney7 in #126
Maintenance and Dependencies
- Update semver by @useafterfree in #123
- Fix test script on windows by @Tanimodori in #134
- Upgrade development dependencies by @IanVS in #128
- Improve CI by @IanVS in #136
- Regenerate lockfile by @IanVS in #129
New Contributors
- @useafterfree made their first contribution in #123
- @willhoney7 made their first contribution in #126
- @AlexJDG made their first contribution in #125
- @Tanimodori made their first contribution in #134
Full Changelog: v4.1.0...v4.1.1
v4.1.0
What's Changed
- Add Prettier v3 to Peer dependencies by @Sparticuz in #111
- Upgrade to Prettier 3 in devDependencies by @fbartho in #75
New Contributors
- @Sparticuz made their first contribution in #111
Full Changelog: v4.0.2...v4.1.0
v4.0.2
v4.0.1
What's Changed
- Fix cli in Install section by @torn4dom4n in #99
- Fix dollar sign ($) issue in Vue SFC by @istiak-tridip in #101
New Contributors
- @torn4dom4n made their first contribution in #99
- @istiak-tridip made their first contribution in #101
Full Changelog: v4.0.0...v4.0.1
v4.0.0
What's Changed
This new release focuses on simplifying the plugin options, shipping more useful defaults, handling comments around import statements more reliably, and improving Vue and TypeScript compatibility. We also are targeting Node 16 syntax with our build, though older versions may continue to work (untested). See the full migration guide for details of the breaking changes.
⬆️ Breaking Changes
- Build for Node 16+ (#59)
- Remove
importOrderBuiltinModulesToTop
(always true) (#60) - Remove
importOrderSeparation
option (#62) - Remove
importOrderCaseInsensitive
option (#63) - Remove
importOrderGroupNamespaceSpecifiers
option (#64) - Remove
importOrderSortSpecifiers
option (#65) - Remove
importOrderMergeDuplicateImports
option (always on) (#66) - Replace
importOrderCombineTypeAndValueImports
withimportOrderTypeScriptVersion
(#67) - Improve default sort order (#83)
🐛 Bug Fixes
- Fix behavior around comments embedded in imports (#71)
- Preserve trailing comments on specifiers (#80)
- Preserve comments and blank lines at top-of-file (in #82)
- Prevent comment gap when re-arranging first import (#85)
- Fix: Top-of-file Comments get duplicated when moving runtime code (#88)
- Vue: Sort both script and setup script (#90)
- Vue and TypeScript: Use correct parser plugins (#91)
⚡️ Features
- Add
<BUILTIN_MODULES>
Special Word (#86) - Allow Explicit Separator after Top-of-file-comments (#92)
- Support babel-ts parser (#97)
🛠️ Repo Maintenance
- Update dependencies, jest -> vitest (#59)
- Check formatting in CI (#61)
- Update to latest versions of Github Actions (#73)
- Add some more tests for comments (#77)
🧳 Dependencies
- Drop javascript-natural-sort dependency (#28)
- Drop lodash.clone dependency (#74)
- Upgrade Babel to 7.21 (#72)
Full Changelog: v3.7.2...v4.0.0
v4.0.0-beta.0
What's Changed since 3.7.2
This new release focuses on simplifying the plugin options, shipping more useful defaults, handling comments around import statements more reliably, and improving Vue and TypeScript compatibility. We also are targeting Node 16 syntax with our build, though older versions may continue to work (untested). See the full migration guide for details of the breaking changes.
⬆️ Breaking Changes
- Build for Node 16+ (#59)
- Remove
importOrderBuiltinModulesToTop
(always true) (#60) - Remove
importOrderSeparation
option (#62) - Remove
importOrderCaseInsensitive
option (#63) - Remove
importOrderGroupNamespaceSpecifiers
option (#64) - Remove
importOrderSortSpecifiers
option (#65) - Remove
importOrderMergeDuplicateImports
option (always on) (#66) - Replace
importOrderCombineTypeAndValueImports
withimportOrderTypeScriptVersion
(#67) - Improve default sort order (#83)
🐛 Bug Fixes
- Fix behavior around comments embedded in imports (#71)
- Preserve trailing comments on specifiers (#80)
- Preserve comments and blank lines at top-of-file (in #82)
- Prevent comment gap when re-arranging first import (#85)
- Fix: Top-of-file Comments get duplicated when moving runtime code (#88)
- Vue: Sort both script and setup script (#90)
- Vue and TypeScript: Use correct parser plugins (#91)
⚡️ Features
- Add
<BUILTIN_MODULES>
Special Word (#86) - Allow Explicit Separator after Top-of-file-comments (#92)
- Support babel-ts parser (#97)
🛠️ Repo Maintenance
- Update dependencies, jest -> vitest (#59)
- Check formatting in CI (#61)
- Update to latest versions of Github Actions (#73)
- Add some more tests for comments (#77)
🧳 Dependencies
- Drop javascript-natural-sort dependency (#28)
- Drop lodash.clone dependency (#74)
- Upgrade Babel to 7.21 (#72)
What's Changed since 4.0.0-alpha.7
- Mention
<BUILTIN_MODULES>
in MIGRATION.md by @IanVS in #94 - Feature: Allow Explicit Separator after Top-of-file-comments by @fbartho in #92
- Support babel-ts parser by @IanVS in #97
Full Changelog: v4.0.0-alpha.7...v4.0.0-beta.0
v4.0.0-alpha.7
What's Changed
- Fix: Top-of-file Comments get duplicated when moving runtime code #87 by @fbartho in #88
- Vue: Sort both script and setup script by @IanVS in #90
- Feature: Add
<BUILTIN_MODULES>
Special Word by @fbartho in #86 - Use correct parser plugins for TS and Vue by @IanVS in #91
Full Changelog: v4.0.0-alpha.6...v4.0.0-alpha.7
v4.0.0-alpha.6
What's Changed
Full Changelog: v4.0.0-alpha.5...v4.0.0-alpha.6