Skip to content

Releases: IanVS/prettier-plugin-sort-imports

v4.0.0-alpha.5

16 May 02:28
Compare
Choose a tag to compare
v4.0.0-alpha.5 Pre-release
Pre-release

What's Changed

  • Add some more tests for comments by @IanVS in #77
  • Preserve trailing comments on specifiers by @fbartho in #80
  • Preserve comments and blank lines at top-of-file by @fbartho in #82
  • Improve default sort order by @fbartho in #83

Full Changelog: v4.0.0-alpha.4...v4.0.0-alpha.5

v4.0.0-alpha.4

12 May 20:03
Compare
Choose a tag to compare
v4.0.0-alpha.4 Pre-release
Pre-release

What's Changed

  • Upgrade Babel to 7.21 by @IanVS in #72
  • Update to latest versions of Github Actions by @fbartho in #73
  • Fix behavior around comments embedded in imports by @fbartho in #71
  • Clean-up lodash.clone dep, as it serves no purpose by @fbartho in #74

Full Changelog: v4.0.0-alpha.3...v4.0.0-alpha.4

v4.0.0-alpha.3

25 Apr 18:56
b13e956
Compare
Choose a tag to compare
v4.0.0-alpha.3 Pre-release
Pre-release

What's Changed

  • [Breaking] Remove importOrderMergeDuplicateImports option (always on) by @IanVS in #66
  • [Breaking] Replace importOrderCombineTypeAndValueImports with importOrderTypeScriptVersion by @IanVS in #67

In this release, we will always merge duplicate import statements, and we introduce a new importOrderTypeScriptVersion option which TypeScript users should set to the version of TS they are using in their project. That setting will determine whether value and type imports are combined.

Full Changelog: v4.0.0-alpha.2...v4.0.0-alpha.3

v4.0.0-alpha.2

24 Apr 18:37
Compare
Choose a tag to compare
v4.0.0-alpha.2 Pre-release
Pre-release

What's Changed

  • [Breaking] Remove importOrderCaseInsensitive option by @IanVS in #63
  • [Breaking] Remove importOrderGroupNamespaceSpecifiers option by @IanVS in #64
  • [Breaking] Remove importOrderSortSpecifiers option by @IanVS in #65
  • Feature: drop javascript-natural-sort dep by @fbartho in #28

Full Changelog: v4.0.0-alpha.1...v4.0.0-alpha.2

v4.0.0-alpha.1

24 Apr 14:47
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

This is the first alpha version for 4.0, which has the goal of reducing the number of options for the plugin to be more in line with the opinionated formatting philosophy of prettier. We will make the plugin easier to configure, easier to maintain, and better out-of-the-box, while still giving flexibility in how imports are ordered.

Expect more breaking changes while alpha versions are being released. Beta versions will have no planned breaking changes, but may include them, depending on user feedback.

The general plan for 4.0 is discussed in #22. Feedback and ideas are welcome.

What's Changed

  • [Breaking] Update dependencies, jest -> vitest, build for Node 16+ by @IanVS in #59
  • Check formatting in CI by @IanVS in #61
  • [Breaking] Remove importOrderBuiltinModulesToTop (always true) by @IanVS in #60
  • [Breaking] Remove importOrderSeparation option by @IanVS in #62

Full Changelog: v3.7.2...v4.0.0-alpha.1

v3.7.2

24 Mar 16:41
Compare
Choose a tag to compare

What's Changed

  • Fix importOrderCombineTypeAndValueImports for Flow by @IanVS in #57

Full Changelog: v3.7.1...v3.7.2

v3.7.1

27 Oct 20:07
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.7.0...v3.7.1

v3.7.0

27 Oct 17:45
35266d5
Compare
Choose a tag to compare

What's Changed

Features

  • Support explicit type sorting by @IanVS in #44

If you would like to order type imports differently from value imports, you can use the special <TYPES> string. This example will place third party types at the top, followed by local types, then third party value imports, and lastly local value imports:

"importOrder": ["<TYPES>", "<TYPES>^[./]", "<THIRD_PARTY_MODULES>", "^[./]"],

Dependencies

  • Make vue dependency optional by @IanVS in #45

Full Changelog: v3.6.0...v3.7.0

v3.6.0

26 Oct 15:02
Compare
Choose a tag to compare

What's Changed

Features:

Add this to your prettier config file to get autocompletion and type checking:

// @ts-check

/** @type {import(https://github.com/ianvs/prettier-plugin-sort-imports).PrettierConfig} */
module.exports = { // ... your config

Maintenance:

  • Upgrade development dependencies by @IanVS in #42

Full Changelog: v3.5.2...v3.6.0

v3.5.2

25 Oct 11:16
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.5.1...v3.5.2