Skip to content

Update dependency svg-sprite to v2

This MR contains the following updates:

Package Type Update Change
svg-sprite devDependencies major ^1.5.0 -> ^2.0.2

MR created with the help of gitlab-org/frontend/renovate-gitlab-bot


Release Notes

svg-sprite/svg-sprite

v2.0.2

Compare Source

v2.0.1

Compare Source

v2.0.0

Compare Source

Breaking changes

  • Drop Node.js < 12 support
  • Update svgo to v2.x

Changes

  • Add namespaceIDPrefix option
  • Add rel="noopener noreferrer" to all links in generated HTML pages.
  • Add compileAsync method
  • Add support for disabling root viewBox attribute in stack mode
  • Add ID references substitution in href attributes (earlier worked with xlink:href only)
  • Drop Node.js < 12 support
  • Remove the deprecated config.transform option
  • Add milliseconds in logger's output
  • Change SVG dimensions calculation from PhantomJS to resvg-js, drop PhantomJ direct dependency (replaced with resvg-js)
  • Fix a rare issue with valid SVG files marked as invalid
  • Fix a rare bug with checking if passed config.log option is an instance of winston.Logger
  • Fix missing shape names when adding input files with a relative path
  • Replace cssmin with csso
  • Reduce lodash and other direct dependencies; switch to native JS alternatives

Dev updates

  • Update all devDepedencies
  • Switch to xo for linting
  • Replace mocha, should and c8 with jest
  • Replace PhantomJS and image-diff with playwright and pixelmatch for regression tests
  • A lot of docs tweaks
  • A lot of code refactoring
    • Switch to ES6+ syntax and methods
    • Switch to async methods whenever possible
    • Switch to ES6 classes whenever possible
    • Fix JSDoc documentation
  • Massively improve tests
    • Add regression tests for SVGs without dimensions
    • Add regression tests for all modes
    • Add tests and coverage reports to CI (Linux, Windows support)

Full Changelog: https://github.com/svg-sprite/svg-sprite/compare/v1.5.4...v2.0.0?w=1

v1.5.4

Compare Source

  • Update patch dependencies
  • Fix doc badges

v1.5.3

Compare Source

  • Fix lodash cloneDeep usage (#​431)
  • Replace the deprecated image-diff with looks-same
  • Replace node-sass with sass. (#​453)
  • CI: add Node.js 16
  • Update dependencies

v1.5.2

Compare Source

  • logger: add milliseconds too
  • Update patch dependencies and regenerate package-lock.json
  • Backport #​321: test: replace the zebra with a simple gene image
  • Update to @​xmldom/xmldom 0.7.2

v1.5.1

Compare Source

  • Move mocha and should to devDependencies
  • bin/svg-sprite.js: use _.merge instead of the custom function (#​442)
  • fix(logger): use Winston v3 format configuration
  • refactor(logger): remove dateformat dependency
  • Links with "target=_blank" should prevent phishing attacks
  • Remove lodash.pluck dependency and use _.map (#​388)
  • Switch to Buffer.from (#​389)
  • Switch to GitHub Actions
  • Update minor and patch dependencies and regenerate package-lock.json
  • test: add a separate css.packed.12.png file for Node.js > 10
  • Remove the unused vinyl-fs and mocha-lcov-reporter devDependencies
  • Update dependencies
  • Drop Node.js 6.x support from CI.
  • Remove pretest script
  • CI: run example too
  • Rename LICENSE and fix links to repo

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports