Releases: gregberge/svgr
Releases · gregberge/svgr
v4.3.1
v4.3.0
v4.2.0
Bug Fixes
- keep viewBox when dimensions are removed (#281) (f476c8e)
- babel-preset: expandProps + icon option (ddfae22), closes #277
- cli: fix kebab case transformation with "_" (39c24c5), closes #280
- hast-util-to-babel-ast: correctly handle aria attributes (23d12aa), closes #279
- plugin-prettier: fix prettier warning (d01d33f)
Features
v4.1.0
v4.0.4
v4.0.3
v4.0.2
v4.0.1
Bug Fixes
- babel-plugin-transform-svg-component: support template that only return a single node (80ac40f), closes #223
- babel-plugin-transform-svg-component: parsing error of JSX template exports defs (#225) (1e56309)
- hast-util-to-babel-ast: correctly transforms data & aria attributes (99711c4), closes #221
- hast-util-to-babel-ast: replace line-breaks in attributes (00a2625), closes #219
v4.0.0
Lighter, Better, Faster, Stronger!
⚡️ Twice faster @svgr/webpack (used in create-react-app)
✨ Ids are now automatically prefixed using filename
🔥 All new engine powered by rehype + Babel
Bug Fixes
- prevent babel read babel.config.js (#206) (514d43d)
- cli: fix --out-dir usage with absolute path (#208) (c922e2e)
Features
- svgo: prefix ids by default (06c338d), closes #210
- v4: new architecture (ac8b8ca)
- allow dynamic properties in replaceAttrValues option (15f55fe), closes #205
BREAKING CHANGES
- v4:
template
option must now returns a Babel AST @svgr/core
does not include svgo & prettier by default- h2x is replace by
@svgr/plugin-jsx