Skip to content

Releases: scriptex/svgo-viewbox

Type: Module

14 Aug 11:50

Choose a tag to compare

This release:

  • makes the package pure ES module (BREAKING change)
  • makes sure that the addViewBox plugin is always present regardless of the supplied SVGO config (BREAKING change)

Correctly load custom SVGO config

08 Aug 10:49
f645679

Choose a tag to compare

This release takes care of incorrectly loaded custom SVGO configuration file.

Add support for optional and variadic arguments

25 Apr 08:53
e5cba1a

Choose a tag to compare

This release adds support for optional and variadic arguments.
This new feature makes it possible to integrate svgo-viewbox with code quality tools such as lint-staged.

It is now possible to provide flexible command arguments and receive the expected results.
For example:

svgo-viewbox ./assets/logo.svg ./assets2

will add the viewBox attribute to the logo.svg file in ./assets folder as well as all SVG files inside the ./assets2 folder.

The command can also be mixed with the already supported arguments.
For example:

svgo-viewbox -i ./assets/ -f ./svgo-config.js ./assets2/logo.svg

will add the viewBox attribute to the logo.svg file in ./assets2 folder as well as all svg files inside the ./assets folder and will use the ./svgo-config.js file when optimizing the SVG files with SVGO.

Downgrade `meow`

14 Apr 06:35

Choose a tag to compare

This release downgrades the meow package as it's newer versions are pure ESM and is incompatible with the current implementation of the svgo-viewbox module.

Handle single files as well

13 Apr 12:10
f90bab6

Choose a tag to compare

Up until today only SVG files located in a folder could have their viewBox attribute added via svgo-viewbox.
This release makes it possible to add the viewBox attribute to a single SVG file as well.
Just use the module as before and specify the path to the SVG file in the --input (or --i) flag.

svgo-viewbox --i ./assets/images/svg/file.svg

Updated metadata

29 Sep 13:31

Choose a tag to compare

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

Downgrade Meow

10 May 08:02

Choose a tag to compare

2.0.4

Downgrade meow

Fix SVGO CleanupIDs plugin's unique ID ability

10 May 07:55
4e1ef79

Choose a tag to compare

This release fixes the (previously broken) ability of SVGO's CleanupIDs plugin to generate unique IDs for SVG elements.

Fix CLI flags

22 Apr 13:19

Choose a tag to compare

This release fixes an issue with kebab-cased CLI flag

Updated README

22 Apr 09:40

Choose a tag to compare

This release updates the README file for the v2 release