unstale

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

@unstale/cli on npm

@ianvs/prettier-plugin-sort-imports 419 changes

Breaking changes 9

  • The default import sort order is improved.

    4.0.0release notes

  • This option is removed because the behavior is always enabled.

    4.0.0release notes

  • This configuration option is removed.

    4.0.0release notes

  • This option is replaced by importOrderTypeScriptVersion.

    4.0.0release notes

  • This configuration option is removed.

    4.0.0release notes

  • This configuration option is removed.

    4.0.0release notes

  • This configuration option is removed.

    4.0.0release notes

  • This option replaces importOrderCombineTypeAndValueImports.

    4.0.0release notes

  • The plugin is built for Node 16+; older versions may continue to work but are untested.

    4.0.0release notes

New APIs and options 3

  • The babel-ts parser is supported.

    4.0.0release notes

  • This special word is available for use in import ordering.

    4.0.0release notes

  • An explicit separator can be placed after top-of-file comments.

    4.0.0release notes

Behavior and default changes 1

  • Both the Vue script and setup script are sorted.

    4.0.0release notes

Fixes and other changes 6

  • Rearranging the first import no longer leaves a comment gap.

    4.0.0release notes

  • Behavior around comments embedded in imports is fixed.

    4.0.0release notes

  • Top-of-file comments are no longer duplicated when runtime code is moved.

    4.0.0release notes

  • Comments and blank lines at the top of a file are preserved.

    4.0.0release notes

  • Trailing comments on import specifiers are preserved.

    4.0.0release notes

  • Vue and TypeScript use the correct parser plugins.

    4.0.0release notes