Releases: IanVS/prettier-plugin-sort-imports
v4.4.1
What's Changed
- fix: catch babel parse errors by @michaelfaith in #198
New Contributors
- @michaelfaith made their first contribution in #198
Full Changelog: v4.4.0...v4.4.1
v4.4.0
What's Changed
Enhancements
- Re-add
importOrderCaseSensitive
option for case-sensitive sorting by @acnebs in #184 - Throw an error when no matching sortOrder group by @IanVS in #192
Maintenance
- Switch from yarn to pnpm by @IanVS in #178
- Remove unused @babel/core, update babel deps by @IanVS in #191
New Contributors
Full Changelog: v4.3.1...v4.4.0
v4.3.1
v4.3.0
What's Changed
Features
This release adds support for experimental import attributes / assertions. There have been a number of styles proposed by TC-39 over the years, but the latest is to use import x from 'x' with { type: 'json' };
, which is called an "import attribute". There is also an older "import assertion" form, which uses assert
instead of with
.
Note: You may need to add "importAttributes"
to your "importOrderParserPlugins"
option in order to support this. And if you are using the older assertion style, you'll need to add it as '[\"importAttributes\", {\"deprecatedAssertSyntax\": true}]'
.
This plugin will also convert the older assertion style to import attributes.
Bugfixes
TypeScript
- Augment Prettier
Options
types with internalPluginConfig
by @jeremy-code in #172
You can now type your prettier config as simply /** @type {import("prettier").Config} */
, and you'll also get the types for the options this plugin adds, automatically.
Docs
New Contributors
- @ADTC made their first contribution in #165
- @jeremy-code made their first contribution in #172
Full Changelog: v4.2.1...v4.3.0
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