Skip to content

Upgrade svgo to version 2.4.0#894

Closed
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/npm/svgo-2.4.0
Closed

Upgrade svgo to version 2.4.0#894
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/npm/svgo-2.4.0

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Aug 14, 2021

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.4.0) · Repo · Changelog

Release Notes

2.4.0

Hey everybody!

In this release I happy to introduce the new plugin "preset-default" which allows to declaratively setup and customize default set of plugins. Previous solution extendDefaultPlugins utility prevented parcel users from using cachable json config, svgo-loader and svgo-jsx required svgo to be installed locally. "preset-default" plugin is just another builtin plugi.

module.exports = {
  plugins: [
    {
      name: 'preset-default',
      params: {
        overrides: {
          // customize options
          builtinPluginName: {
            optionName: 'optionValue',
          },
          // or disable plugins
          anotherBuiltinPlugin: false,
        },
      },
    },
  ],
};

We also fixed a few bugs

  • performance is improved by ~37% for svg with styles (#1456)
  • reset cursor after "closeto" command when applying transformation (9e578b5)
  • fixed usage of removed internal methods (#1479)
  • chalk is replaced with smaller colorette (#1511)
  • test files are excluded from published package (#1458)
  • remove more spaces around flag in arc command #1484

Thanks to @TrySound, @ydaniv, @ludofischer, @XhmikosR and @joseprio

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

Commits

See the full diff on Github. The new version differs by 18 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 Aug 14, 2021
@depfu depfu bot mentioned this pull request Aug 14, 2021
@depfu
Copy link
Contributor Author

depfu bot commented Aug 29, 2021

Closed in favor of #900.

@depfu depfu bot closed this Aug 29, 2021
@depfu depfu bot deleted the depfu/update/npm/svgo-2.4.0 branch August 29, 2021 12:40
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.

0 participants