Skip to content

Releases: nivekcode/svg-to-ts

v3.1.2

04 Mar 16:16
Compare
Choose a tag to compare

3.1.2 (2020-03-04)

Bug Fixes

  • compiler: reduce strictness (19f6480)

v3.1.1

04 Mar 15:00
Compare
Choose a tag to compare

3.1.1 (2020-03-04)

Bug Fixes

  • generation: fix generated folder name (680f1f1)

v3.1.0

04 Mar 10:52
Compare
Choose a tag to compare

3.1.0 (2020-03-04)

Features

  • compiler: compile ts files (a911b7c)
  • converter: convert to multiple files (fe13a4c)
  • multifiles: generate multiple files (d933e1e)

v3.0.0

25 Feb 15:07
Compare
Choose a tag to compare

3.0.0 (2020-02-25)

Features

  • input: Handle regex as sourceDir (12d7bf9)
  • sources: use source files as regex (69547dd)

BREAKING CHANGES

  • sources: srcDirectories is gone and we should now use srcFiles

Migration path:

To find the SVG source files, we now use a regular expression. Therefore we changed the -srcDirectories (-s) option to -srcFiles (-s).

How to migrate:

  • If you are using the long syntax to specify the sourceDirecotry (-srcDirectories) please rewrite it to either -srcFiles or -s and change the path to a regex.
  • If you are using the -s param, change the path to a regex

How to change the path to a Regex:

  • Usually its enough to append *.svg to your current path. So for example ./somePath/ becomes ./somePath/*.svg
  • Make sure to add quotes around your regex, otherwise it will be pre-evaluated and take the first match. So "svg-to-ts -s ./somePath/*.svg" will not work. It should be "svg-to-ts -s './somePath/*.svg'" with quotes

v2.2.1

10 Feb 18:00
Compare
Choose a tag to compare

2.2.1 (2020-02-10)

Bug Fixes

  • conversion: check to allow only svg files (9fc3111)

v2.2.0

31 Dec 12:04
Compare
Choose a tag to compare

2.2.0 (2019-12-31)

Features

  • delimiter: add delimiter option to allow a custom delimiter (c69358e)
  • type: generate the types with the correct delimiter (c6d1ebc)

v2.1.0

13 Dec 14:10
Compare
Choose a tag to compare

2.1.0 (2019-12-13)

Bug Fixes

  • types: Fix error in type generation when last item is a folder (c70c15d)

Features

  • input: Handle multiple sourceDir (fe9fd84)

v2.0.3

10 Dec 13:19
Compare
Choose a tag to compare

2.0.3 (2019-12-10)

Bug Fixes

  • input: Exclude folders to source directory (d2878a7)

v2.0.2

10 Dec 12:51
Compare
Choose a tag to compare

2.0.2 (2019-12-10)

Bug Fixes

  • type: add missing export statement (ddab6ae)

v2.0.1

10 Dec 11:59
Compare
Choose a tag to compare

2.0.1 (2019-12-10)

Bug Fixes

  • conversion: use camel case for variable names (89acef3)