Skip to content

Upgrade svgo to version 2.7.0 #910

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

Closed
wants to merge 1 commit into from
Closed

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Sep 25, 2021

👉 This PR is queued up to get rebased by Depfu

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ svgo (^1.0.5 → ^2.7.0) · Repo · Changelog

Release Notes

2.7.0

If you enjoy SVGO and would like to support our work, consider sponsoring us directly via our OpenCollective.

Join us in our discord

ES Modules support

This release adds support for es modules in svgo.config.js when package.json type field is "module".
For projects with mixed cjs and esm svgo.config.mjs and svgo.config.cjs are also supported as fallback.

See #1583

export default {
  plugins: [
    'preset-default'
  ]
}

Fixes

  • added validation to removeAttrs plugin (#1582)

Refactorings

Follwing plugins are migrated to the new visitor plugin api and covered with tsdoc

Other internal changes

  • covered svg parser with tsdoc (#1584)
  • avoided parentNode in style manager which makes us one step closer to releasing new plugin api publicly (#1576)
  • replaced colorette with nanocolors (#1586)

Thanks to @renatorib, @matheus1lva, @omgovich, @deepsweet, @ai, @samouss and @TrySound

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 10 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Sep 25, 2021
@depfu depfu bot mentioned this pull request Sep 25, 2021
@papandreou
Copy link
Member

@depfu rebase

@depfu depfu bot force-pushed the depfu/update/npm/svgo-2.7.0 branch from 253179b to 6086ee8 Compare October 23, 2021 08:34
@depfu
Copy link
Contributor Author

depfu bot commented Nov 3, 2021

Closed in favor of #937.

@depfu depfu bot closed this Nov 3, 2021
@depfu depfu bot deleted the depfu/update/npm/svgo-2.7.0 branch November 3, 2021 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant