Skip to content

Releases: scriptex/svgo-add-viewbox

Add abiulity to preserve existing viewBox

22 Apr 06:14
Compare
Choose a tag to compare

This release introduces usage of SVGO plugin params.
The first supported "param" is the overwrite which defaults totrue.
If set to false, svgoAddViewbox will not overwrite any existing viewBox attribute on your input SVGs.
Usage:

plugins: [
  // ... more plugins
  {
    ...addViewBox,
    params: {
      overwrite: false
    }
  }
  // ... more plugins
];

Latest SVGO support + type: module

14 Aug 10:50
Compare
Choose a tag to compare

This release introduces several breaking changes:

  1. The plugin is incompatible with older versions of SVGO. Only SVGO v3 and above are supported
  2. The package is now pure ES module. It should be used in a module context
  3. The minimum supported NodeJS version has been updated to LTS/* (18 at the time of release)

Fix the URL to the documentation

07 Nov 08:31
Compare
Choose a tag to compare
2.0.1

Fix the URL to the documentation

Add support for SVGO v3

28 Oct 13:36
f0a9d9c
Compare
Choose a tag to compare

This release adds support for SVGO v3 which introduces breaking changes in handling the dimensions of the SVG files.

svgo-add-viewbox v1.x.x still works with SVGO v2.

Updated metadata

29 Sep 13:39
Compare
Choose a tag to compare

This release does not introduce any code changes.
This release updates the repository and package metadata.

Initial release

11 Jun 05:49
Compare
Choose a tag to compare
1.0.0

Remove all dependencies