Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 10, 2025

Bumps @trivago/prettier-plugin-sort-imports from 5.2.2 to 6.0.0.

Release notes

Sourced from @​trivago/prettier-plugin-sort-imports's releases.

v6.0.0

What's Changed

Full Changelog: trivago/prettier-plugin-sort-imports@v5.2.2...v6.0.0

Changelog

Sourced from @​trivago/prettier-plugin-sort-imports's changelog.

6.0.0

Breaking Changes

New features

  • Ember.js gjs/gts support #377 by @​NullVoxPopuli and @​RobbieTheWagner - Add support for Ember.js gjs/gts file formats with namespace and named type imports
  • <BUILTIN_MODULES> placeholder #381 by @​sdotson - Add support for sorting Node.js builtin modules to a specific position using <BUILTIN_MODULES> placeholder in importOrder
  • <SEPARATOR> placeholder #339 - Add <SEPARATOR> keyword for fine-grained control over import group separation when importOrderSeparation is enabled
  • Sort by length option #224 by @​KLewin23 - Add option to sort imports by import statement length
  • importOrderExclude option #384 by @​RyderKishan - Add support for excluding specific files from import sorting using glob patterns
  • Expand sort-imports-ignore detection #358 by @​ckwalsh - Improved detection of sort-imports-ignore comments throughout the file, not just at line 1

Performance improvements

  • Improve removeNodesFromOriginalCode() performance #356 by @​ckwalsh - Replace RegExp logic with string slices for better performance

Refactoring

  • Stop rerendering directives #357 by @​ckwalsh - Inject imports instead of re-rendering directives to better preserve whitespace and reduce formatting conflicts
  • Stop ignoring exceptions in snapshot tests #355 by @​ckwalsh - Improve test reliability by properly handling exceptions

Chores

  • Add pnpm install command to README #361 - Document pnpm installation option
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [@trivago/prettier-plugin-sort-imports](https://github.com/trivago/prettier-plugin-sort-imports) from 5.2.2 to 6.0.0.
- [Release notes](https://github.com/trivago/prettier-plugin-sort-imports/releases)
- [Changelog](https://github.com/trivago/prettier-plugin-sort-imports/blob/main/CHANGELOG.md)
- [Commits](trivago/prettier-plugin-sort-imports@v5.2.2...v6.0.0)

---
updated-dependencies:
- dependency-name: "@trivago/prettier-plugin-sort-imports"
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 10, 2025
@dependabot dependabot bot requested a review from a team as a code owner November 10, 2025 02:13
@dependabot dependabot bot requested review from connorlindsey and thomaswhyyou and removed request for a team November 10, 2025 02:13
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 10, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2025

⚠️ No Changeset found

Latest commit: becc551

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
javascript-ms-teams-connect-example Ready Ready Preview Comment Nov 10, 2025 2:15am
javascript-nextjs-example Ready Ready Preview Comment Nov 10, 2025 2:15am
javascript-slack-connect-example Ready Ready Preview Comment Nov 10, 2025 2:15am
javascript-slack-kit-example Ready Ready Preview Comment Nov 10, 2025 2:15am

],
"dependencies": {
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Module Format Mismatch Breaks Plugin Loading

Upgrading to @trivago/prettier-plugin-sort-imports v6.0.0 introduces a breaking change where the plugin switched from CommonJS to ESM. The prettier-config.js file uses CommonJS (module.exports), but the package exports configuration specifies it for both ESM import and CommonJS require. This creates a module format mismatch that will cause runtime errors when consumers try to use ESM imports, as the ESM-only plugin cannot be loaded from a CommonJS configuration file.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant