Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump prettier-plugin-organize-imports from 2.3.4 to 3.2.1 #157

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 28, 2022

Bumps prettier-plugin-organize-imports from 2.3.4 to 3.2.1.

Release notes

Sourced from prettier-plugin-organize-imports's releases.

v3.2.1

This version fixes the implementation of the language service host's getCurrentDirectory method to return the directory containing the tsconfig, rather than using ts.sys.getCurrentDirectory (which returns process.cwd()). This should prevent issues with resolving compiler plugins with Volar (which is used for Vue support).

Hopefully it doesn't break anything else 🤞 I don't think the tsconfig location is always the project root because of nested/extended tsconfigs, but it should be good enough for module resolution. If someone knows a better way of finding a project's root via the TypeScript API please let me know 🙏

v3.2.0

This version adds and fixes support for pug templates in Vue files (via @volar/vue-language-plugin-pug). Please be aware that you'll need to update your version of the @volar/vue-typescript peer dependency from 0.x to 1.x.

v3.1.1

  • fix: path comparison on Windows
  • fix: bump @volar/vue-typescript peer dependency to higher version which fixes removal of imports used in the template only

3.1.0

New Feature: Skip Destructive Code Actions

If you don't want destructive code actions (like removing unused imports), you can enable the option organizeImportsSkipDestructiveCodeActions via your Prettier config.

// prettierrc.js
module.exports = {
// ...
organizeImportsSkipDestructiveCodeActions: true,
};

3.0.3

Fixes a performance regression that was introduced in 3.0.2.

3.0.2

This version fixes a regression introduced by adding some file-system related methods (fileExists and readFile) to the language service host (to fix #63), which revealed that the implementation of getScriptSnapshot was incorrect.

3.0.1

  • @volar/vue-typescript is now an optional peer dependency and requires version 0.39.0 or later. This should fix a couple of issues, e.g. not removing imports anymore when a component was used in the template via kebab-case.
  • The language service host now implements fileExists and readFile which should fix some issues with NodeNext module resolution.

3.0.0

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.

Commits
  • 3cceaf4 3.2.1
  • 060e742 docs: update changelog
  • 46c142a chore: run tests on preversion instead of prepublishOnly
  • b4a4da2 fix: LS host's getCurrentDirectory implementation returns project root base...
  • 93b2ff2 refactor: move findTsconfig helper into separate module
  • 6d453f6 test: refactor test files and add test for volar language plugins
  • 5062c87 3.2.0
  • 05eab33 docs: fix comment
  • 290a1fd feat: support pug templates in Vue files (#79)
  • a521e09 docs: update comments
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 28, 2022
@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2022

⚠️ No Changeset found

Latest commit: 735dfe5

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.

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

Bumps [prettier-plugin-organize-imports](https://github.com/simonhaenisch/prettier-plugin-organize-imports) from 2.3.4 to 3.2.1.
- [Release notes](https://github.com/simonhaenisch/prettier-plugin-organize-imports/releases)
- [Commits](simonhaenisch/prettier-plugin-organize-imports@v2.3.4...v3.2.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-organize-imports
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/prettier-plugin-organize-imports-3.2.1 branch from 4dd8aa5 to a99830f Compare December 22, 2022 23:02
@vercel
Copy link

vercel bot commented Dec 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
styled-icons 🔄 Building (Inspect) Dec 22, 2022 at 11:02PM (UTC)

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 16, 2023

Superseded by #174.

@dependabot dependabot bot closed this Jan 16, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/prettier-plugin-organize-imports-3.2.1 branch January 16, 2023 13:09
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.

0 participants