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 @svgr/cli from 5.5.0 to 6.1.2, remove @svgr/rollup #1307

Merged
merged 14 commits into from
Dec 28, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 13, 2021

Bumps @svgr/rollup from 5.5.0 to 6.1.2.

Release notes

Sourced from @​svgr/rollup's releases.

v6.1.2

Bug Fixes

  • specify valid peer deps (45a76ed)
  • rollup: missing dep & missing map return (#652) (12627fc)

v6.1.1

Bug Fixes

v6.1.0

Bug Fixes

Features

  • native: automatically convert inline style in native (138c493), closes #588

Performance Improvements

  • remove useless loader-utils package (387bc72), closes #631

v6.0.0

SVGR v6 uses SVGO v2 under the hood and includes tons of improvement. It also contains small breaking changes. In most cases you will have nothing to change. But be sure to check the migration guide.

Bug Fixes

  • fix XML entities in generated JavaScript (#553) (b3998eb)
  • formatExportName for single names (#548) (5decc94)
  • template: make it possible to use type in template (#619) (5966714), closes #556
  • webpack: fix webpack 5 behaviour with url-loader (1a8cc98)

Features

  • add option to explicitly use named export (#584) (f18ea80)
  • add TypeScript declarations to [@svgr](https://github.com/svgr)/core (#555) (681303a)
  • add webpack typescript preset configuration (#573) (16072d4)
  • upgrade to svgo v2 (1f107af)
  • typescript: types everything (#611) (1666432)

... (truncated)

Changelog

Sourced from @​svgr/rollup's changelog.

6.1.2 (2021-12-12)

Bug Fixes

  • rollup: missing dep & missing map return (#652) (12627fc)
  • specify valid peer deps (45a76ed)

6.1.1 (2021-12-04)

Bug Fixes

6.1.0 (2021-12-01)

Bug Fixes

Features

  • native: automatically convert inline style in native (138c493), closes #588

Performance Improvements

  • remove useless loader-utils package (387bc72), closes #631
Commits

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 the dependencies Pull requests that update a dependency file label Dec 13, 2021
@snags88 snags88 temporarily deployed to curology-rad-dependabot-dcz6y6 December 13, 2021 15:06 Inactive
Copy link
Contributor

@michaeljaltamirano michaeljaltamirano left a comment

Choose a reason for hiding this comment

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

Need to update @svgr in tandem

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/svgr/rollup-6.1.2 branch from 8af0fe2 to fb15869 Compare December 14, 2021 20:21
@snags88 snags88 temporarily deployed to curology-rad-dependabot-dcz6y6 December 14, 2021 20:21 Inactive
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/svgr/rollup-6.1.2 branch from fb15869 to 3777533 Compare December 14, 2021 20:28
@snags88 snags88 temporarily deployed to curology-rad-dependabot-dcz6y6 December 14, 2021 20:28 Inactive
Bumps [@svgr/rollup](https://github.com/gregberge/svgr) from 5.5.0 to 6.1.2.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](gregberge/svgr@v5.5.0...v6.1.2)

---
updated-dependencies:
- dependency-name: "@svgr/rollup"
  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/svgr/rollup-6.1.2 branch from 3777533 to 534c68a Compare December 15, 2021 22:13
@snags88 snags88 temporarily deployed to curology-rad-dependabot-dcz6y6 December 15, 2021 22:13 Inactive
@michaeljaltamirano michaeljaltamirano changed the title Bump @svgr/rollup from 5.5.0 to 6.1.2 Bump @svgr/cli from 5.5.0 to 6.1.2, remove @svgr/rollup Dec 27, 2021
Copy link
Contributor

@michaeljaltamirano michaeljaltamirano left a comment

Choose a reason for hiding this comment

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

When we originally added svgr we were also using @svgr/webpack and importing svg as React component directly. We no longer do that, so this PR removes @svgr/rollup in favor of the cli-only approach.

Other changes:

  1. Renames src/svgs/glyphs/flag-u-k-glyph.svg → src/svgs/glyphs/flag-uk-glyph.svg and src/svgs/glyphs/flag-u-s-a-glyph.svg → src/svgs/glyphs/flag-usa-glyph.svg to reflect the casing of the icons as they exist in our component library
  2. SVG component output includes <title> now (part of the large snapshot diff).

<path
fillRule="evenodd"
clipRule="evenodd"
d="M28.086 3l-2.267 2.809.972.785 2.268-2.809L28.086 3zm-8.643.789l.973-.785 2.266 2.81-.973.785-2.266-2.81zM12.786 19.04l3.552-2.204.659 1.062-3.552 2.204-.66-1.063zm17.47-1.14l.66-1.062 3.552 2.205-.66 1.062-3.551-2.205zm1.104 6.235a1.18 1.18 0 100-2.36 1.18 1.18 0 000 2.36zm-13.31-1.18a1.18 1.18 0 11-2.36 0 1.18 1.18 0 012.36 0zm6.2 6.8c-1.63 0-2.91-.9-2.91-2.04 0-1.14 1.28-2.04 2.91-2.04 1.63 0 2.91.9 2.91 2.04 0 1.14-1.28 2.04-2.91 2.04zm0-3.08c-1.13 0-1.91.55-1.91 1.04s.78 1.04 1.91 1.04 1.91-.55 1.91-1.04-.78-1.04-1.91-1.04zm14.5-2.68c0-8.132-6.62-14.753-14.75-14.753-8.13 0-14.75 6.621-14.75 14.753S15.87 38.75 24 38.75c8.13 0 14.75-6.622 14.75-14.754zm-30.75 0c0-8.842 7.16-16.004 16-16.004s16 7.172 16 16.004C40 32.838 32.84 40 24 40S8 32.838 8 23.996z"
d="m28.086 3-2.267 2.809.972.785 2.268-2.809L28.086 3Zm-8.643.789.973-.785 2.266 2.81-.973.785-2.266-2.81ZM12.786 19.04l3.552-2.204.659 1.062-3.552 2.204-.66-1.063Zm17.47-1.14.66-1.062 3.552 2.205-.66 1.062-3.551-2.205Zm1.104 6.235a1.18 1.18 0 1 0 0-2.36 1.18 1.18 0 0 0 0 2.36Zm-13.31-1.18a1.18 1.18 0 1 1-2.36 0 1.18 1.18 0 0 1 2.36 0Zm6.2 6.8c-1.63 0-2.91-.9-2.91-2.04 0-1.14 1.28-2.04 2.91-2.04 1.63 0 2.91.9 2.91 2.04 0 1.14-1.28 2.04-2.91 2.04Zm0-3.08c-1.13 0-1.91.55-1.91 1.04s.78 1.04 1.91 1.04 1.91-.55 1.91-1.04-.78-1.04-1.91-1.04Zm14.5-2.68c0-8.132-6.62-14.753-14.75-14.753-8.13 0-14.75 6.621-14.75 14.753S15.87 38.75 24 38.75c8.13 0 14.75-6.622 14.75-14.754Zm-30.75 0c0-8.842 7.16-16.004 16-16.004s16 7.172 16 16.004C40 32.838 32.84 40 24 40S8 32.838 8 23.996Z"
Copy link
Contributor

Choose a reason for hiding this comment

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

We are deferring to whatever svgr/svgo is outputting as best practice / optimized. For reference, the original svg is ~2kb:

<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  <title>Anxious Emoji</title>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M28.086 3L25.8186 5.80894L26.7912 6.59407L29.0586 3.78513L28.086 3ZM19.4433 3.78889L20.4164 3.00439L22.6821 5.81478L21.7089 6.59928L19.4433 3.78889ZM12.7859 19.0405L16.3376 16.8368L16.9966 17.8989L13.4449 20.1026L12.7859 19.0405ZM30.2568 17.9012L30.9162 16.8392L34.4675 19.0442L33.8082 20.1062L30.2568 17.9012ZM31.3599 24.1359C32.0116 24.1359 32.5399 23.6076 32.5399 22.9559C32.5399 22.3042 32.0116 21.7759 31.3599 21.7759C30.7082 21.7759 30.1799 22.3042 30.1799 22.9559C30.1799 23.6076 30.7082 24.1359 31.3599 24.1359ZM18.0499 22.9559C18.0499 23.6076 17.5216 24.1359 16.8699 24.1359C16.2183 24.1359 15.6899 23.6076 15.6899 22.9559C15.6899 22.3042 16.2183 21.7759 16.8699 21.7759C17.5216 21.7759 18.0499 22.3042 18.0499 22.9559ZM24.25 29.7568C22.62 29.7568 21.34 28.8568 21.34 27.7168C21.34 26.5768 22.62 25.6768 24.25 25.6768C25.88 25.6768 27.16 26.5768 27.16 27.7168C27.16 28.8568 25.88 29.7568 24.25 29.7568ZM24.25 26.6768C23.12 26.6768 22.34 27.2268 22.34 27.7168C22.34 28.2068 23.12 28.7568 24.25 28.7568C25.38 28.7568 26.16 28.2068 26.16 27.7168C26.16 27.2268 25.38 26.6768 24.25 26.6768ZM38.75 23.9962C38.75 15.8643 32.13 9.24269 24 9.24269C15.87 9.24269 9.25 15.8643 9.25 23.9962C9.25 32.1281 15.87 38.7497 24 38.7497C32.13 38.7497 38.75 32.1281 38.75 23.9962ZM8 23.9962C8 15.1541 15.16 7.9924 24 7.9924C32.84 7.9924 40 15.1641 40 23.9962C40 32.8383 32.84 40 24 40C15.16 40 8 32.8383 8 23.9962Z" fill="currentColor"/>
</svg>

The prev diff is 974kb:

<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  <title>Anxious Emoji</title>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M28.086 3l-2.267 2.809.972.785 2.268-2.809L28.086 3zm-8.643.789l.973-.785 2.266 2.81-.973.785-2.266-2.81zM12.786 19.04l3.552-2.204.659 1.062-3.552 2.204-.66-1.063zm17.47-1.14l.66-1.062 3.552 2.205-.66 1.062-3.551-2.205zm1.104 6.235a1.18 1.18 0 100-2.36 1.18 1.18 0 000 2.36zm-13.31-1.18a1.18 1.18 0 11-2.36 0 1.18 1.18 0 012.36 0zm6.2 6.8c-1.63 0-2.91-.9-2.91-2.04 0-1.14 1.28-2.04 2.91-2.04 1.63 0 2.91.9 2.91 2.04 0 1.14-1.28 2.04-2.91 2.04zm0-3.08c-1.13 0-1.91.55-1.91 1.04s.78 1.04 1.91 1.04 1.91-.55 1.91-1.04-.78-1.04-1.91-1.04zm14.5-2.68c0-8.132-6.62-14.753-14.75-14.753-8.13 0-14.75 6.621-14.75 14.753S15.87 38.75 24 38.75c8.13 0 14.75-6.622 14.75-14.754zm-30.75 0c0-8.842 7.16-16.004 16-16.004s16 7.172 16 16.004C40 32.838 32.84 40 24 40S8 32.838 8 23.996z" fill="currentColor"/>
</svg>

And the new one is 978kb:

<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  <title>Anxious Emoji</title>
  <path fill-rule="evenodd" clip-rule="evenodd" d="m28.086 3-2.267 2.809.972.785 2.268-2.809L28.086 3Zm-8.643.789.973-.785 2.266 2.81-.973.785-2.266-2.81ZM12.786 19.04l3.552-2.204.659 1.062-3.552 2.204-.66-1.063Zm17.47-1.14.66-1.062 3.552 2.205-.66 1.062-3.551-2.205Zm1.104 6.235a1.18 1.18 0 1 0 0-2.36 1.18 1.18 0 0 0 0 2.36Zm-13.31-1.18a1.18 1.18 0 1 1-2.36 0 1.18 1.18 0 0 1 2.36 0Zm6.2 6.8c-1.63 0-2.91-.9-2.91-2.04 0-1.14 1.28-2.04 2.91-2.04 1.63 0 2.91.9 2.91 2.04 0 1.14-1.28 2.04-2.91 2.04Zm0-3.08c-1.13 0-1.91.55-1.91 1.04s.78 1.04 1.91 1.04 1.91-.55 1.91-1.04-.78-1.04-1.91-1.04Zm14.5-2.68c0-8.132-6.62-14.753-14.75-14.753-8.13 0-14.75 6.621-14.75 14.753S15.87 38.75 24 38.75c8.13 0 14.75-6.622 14.75-14.754Zm-30.75 0c0-8.842 7.16-16.004 16-16.004s16 7.172 16 16.004C40 32.838 32.84 40 24 40S8 32.838 8 23.996Z" fill="currentColor"/>
</svg>

Copy link
Contributor

Choose a reason for hiding this comment

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

They're identical to the eye (Github won't let me attach them), and I imagine the same applies to the majority of this diff.

@michaeljaltamirano michaeljaltamirano temporarily deployed to curology-rad-dependabot-r5rc7v December 28, 2021 02:50 Inactive
@michaeljaltamirano michaeljaltamirano merged commit b89a7ea into master Dec 28, 2021
@michaeljaltamirano michaeljaltamirano deleted the dependabot/npm_and_yarn/svgr/rollup-6.1.2 branch December 28, 2021 02:56
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants