Skip to content

Releases: IanVS/prettier-plugin-sort-imports

v4.4.1

13 Jan 14:22
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.4.0...v4.4.1

v4.4.0

06 Nov 20:09
Compare
Choose a tag to compare

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

12 Jul 15:01
Compare
Choose a tag to compare

What's Changed

  • fixes readme with correct BUILTIN_MODULES setting name by @tusharf5 in #177
  • Add support for return in Astro component script by @IanVS in #176

New Contributors

Full Changelog: v4.3.0...v4.3.1

v4.3.0

26 Jun 13:53
Compare
Choose a tag to compare

What's Changed

Features

  • Add support for import attributes by @IanVS in #174

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 internal PluginConfig 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

  • Update README to show more options for disabling and overrides by @ADTC in #165

New Contributors

Full Changelog: v4.2.1...v4.3.0

v4.2.1

17 Mar 00:31
Compare
Choose a tag to compare

What's Changed

Bugfixes

  • Detect Vue 2.7 / 3 more reliably by @IanVS in #160
  • Setting importOrder to [] should disable plugin by @IanVS in #161

Full Changelog: v4.2.0...v4.2.1

v4.2.0

13 Mar 13:24
Compare
Choose a tag to compare

What's Changed

Features

Bug fixes

Dependencies

Docs

  • Add example of sorting for built-in node types by @IanVS in #155

New Contributors

Full Changelog: v4.1.1...v4.2.0

v4.1.1

12 Oct 12:03
Compare
Choose a tag to compare

What's Changed

Fixes

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

New Contributors

Full Changelog: v4.1.0...v4.1.1

v4.1.0

14 Jul 16:10
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.2...v4.1.0

v4.0.2

01 Jun 17:36
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.1...v4.0.2

v4.0.1

30 May 19:58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.0...v4.0.1