All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
8.0.1 (2023-05-09)
Note: Version bump only for package @svgr/cli
8.0.0 (2023-05-09)
- add snake_case filename option (#857) (428b0c7)
- make index template more flexible (#861) (003009c)
- types: change
SVGProps
from import to import type (#853) (095f021)
- index template now receives an array of objects containing both the created
component path (
path
) and the original SVG path (originalPath
)
7.0.0 (2023-03-24)
- svgr now requires Node.js v14+
6.5.1 (2022-10-27)
6.5.0 (2022-10-14)
Note: Version bump only for package @svgr/cli
6.4.0 (2022-10-01)
6.3.1 (2022-07-22)
Note: Version bump only for package @svgr/cli
6.3.0 (2022-07-18)
- add descProp option (#729) (a0637d4)
- cli: output file name when error happen to handling a file (#702) (0ec1fbd)
6.2.1 (2022-01-30)
6.2.0 (2022-01-10)
6.1.2 (2021-12-12)
Note: Version bump only for package @svgr/cli
6.1.1 (2021-12-04)
Note: Version bump only for package @svgr/cli
6.1.0 (2021-12-01)
Note: Version bump only for package @svgr/cli
5.5.0 (2020-11-15)
- ensure a valid name for exports (#489) (0eb8085)
- prevent removing the namespace by svgr ([#475](#475) (#498) (00e84ea)
5.4.0 (2020-04-27)
- wrap svg component directly with memo/forwardRef (#440) (#441) (a6de2da)
- cli: fix index generation (#443) (7c46ad7), closes #433
5.3.1 (2020-04-05)
5.3.0 (2020-03-22)
5.2.0 (2020-02-23)
Note: Version bump only for package @svgr/cli
5.1.0 (2020-01-20)
- add Svg prefix to exports that starts with a number (#383) (fd120d1), closes #379
- allow to provide custom index.js template (#378) (f734dda)
5.0.1 (2019-12-29)
- fix engines in package.json (a45d6fc)
4.3.3 (2019-09-24)
4.3.2 (2019-07-15)
Note: Version bump only for package @svgr/cli
4.3.1 (2019-07-01)
Note: Version bump only for package @svgr/cli
4.3.0 (2019-05-28)
4.2.0 (2019-04-11)
- keep viewBox when dimensions are removed (#281) (f476c8e)
- cli: fix kebab case transformation with "_" (39c24c5), closes #280
4.1.0 (2018-11-24)
Note: Version bump only for package @svgr/cli
4.0.3 (2018-11-13)
Note: Version bump only for package @svgr/cli
4.0.2 (2018-11-08)
Note: Version bump only for package @svgr/cli
4.0.1 (2018-11-08)
Note: Version bump only for package @svgr/cli
4.0.0 (2018-11-04)
- v4: new architecture (ac8b8ca)
- v4: -
template
option must now returns a Babel AST
@svgr/core
does not include svgo & prettier by default
3.1.0 (2018-10-05)
3.0.0 (2018-10-01)
- config: improve runtime config (e52cdce), closes #192
- always prefix component name with "Svg" (f71aa7a), closes #190
- new "expandProps" option (bb95828), closes #170
- remove "svgAttributes" option (4e46a5d), closes #173
- use forwardRef on React Native (4bdd989), closes #184
- use React.forwardRef (cbee51c), closes #184
- "--no-expand-props" is now replaced by "--expand-props none". You can now specify a position "start" or "end" for "expandProps" property.
svgAttributes
has been removed, please usesvgProps
instead.- "ref" option now uses
React.forwardRef
. You don't have to use "svgRef" prop, just use "ref" and it will work.React.forwardRef
requires React16.3.
- config: - Runtime configuration is always loaded (even with Node API
convert
)
- In CLI, "--config" is now "--config-file"; this new option can be used everywhere
2.4.1 (2018-09-16)
2.4.0 (2018-09-16)
2.3.0 (2018-09-03)
- upgrade to Babel v7 (7bc908d)
2.2.0 (2018-08-13)
Note: Version bump only for package @svgr/cli
2.1.1 (2018-07-11)
Note: Version bump only for package @svgr/cli