Prettier Plugin Organize Imports Versions Save

Make Prettier organize your imports using the TypeScript language service API.

v3.0.0

1 year ago

Switched to a different package for Vue support, so if you're using this plugin with Vue, you'll have to install @volar/vue-typescript as a dev dependency now, and you can remove @vue/compiler-sfc/@vue/component-compiler-utils/vue-template-compiler.

Otherwise, no breaking changes.

v2.3.4

2 years ago

Fixed a bug where empty comment lines were inserted into Vue 2 files.

v2.3.3

2 years ago
  • Fixed a bug where default imports were erroneously removed.

v2.3.2

2 years ago
  • Try to use @vue/compiler-sfc (Vue 3.x) first before the@vue/component-compiler-utils and vue-template-compiler combo (which -theoretically is for Vue 2.x but probably also works for 3.x).

v2.3.1

2 years ago

The version published to npm was missing files which has been fixed now.

v2.3.0

2 years ago

Warning: Don't use this version from npm as it was missing files when being published. Please use v2.3.1 instead.

  • Adds logging when the DEBUG env var is set.
  • Fixes Vue.js support.

v2.2.0

2 years ago
  • feat: use cache map for compiler options (closes #19)

Thanks @blidblid for helping debug this performance issue.

v2.1.0

2 years ago

Adds support for Vue.js (.vue) files (see #16 and 474bbcb1202535ba374f340a481c1e3f3b8033a6).

v2.0.0

2 years ago

Now supports JavaScript via the babel parser and also supports TypeScript via the babel-ts parser :tada:

Special thanks to @duniul for the contribution (see #18)!

Both parsers are only available since Prettier v2, therefore the peer dependency has had a major version bump, which led me to release this as a major version as well. There are no breaking changes otherwise, so unless you're still on Prettier v1, you can just upgrade.

(The parser was called babylon in Prettier v1 but had a different signature so it would not have been easy to do a backwards-compatible implementation)

v1.1.1

3 years ago

Added the files list to package.json to reduce the size on npm.