npm / @ianvs/prettier-plugin-sort-imports
@ianvs/prettier-plugin-sort-imports
What changed in @ianvs/prettier-plugin-sort-imports 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
9 breaking3 new APIs and options1 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ianvs/prettier-plugin-sort-imports 419 changes
Breaking changes 9
The default import sort order is improved.
This option is removed because the behavior is always enabled.
This configuration option is removed.
This option is replaced by
importOrderTypeScriptVersion.This configuration option is removed.
This configuration option is removed.
This configuration option is removed.
This option replaces
importOrderCombineTypeAndValueImports.The plugin is built for Node 16+; older versions may continue to work but are untested.
New APIs and options 3
The babel-ts parser is supported.
This special word is available for use in import ordering.
An explicit separator can be placed after top-of-file comments.
Behavior and default changes 1
Both the Vue script and setup script are sorted.
Fixes and other changes 6
Rearranging the first import no longer leaves a comment gap.
Behavior around comments embedded in imports is fixed.
Top-of-file comments are no longer duplicated when runtime code is moved.
Comments and blank lines at the top of a file are preserved.
Trailing comments on import specifiers are preserved.
Vue and TypeScript use the correct parser plugins.