Skip to content

Releases: gregberge/svgr

v4.3.1

01 Jul 08:56
06e1e99
Compare
Choose a tag to compare

Bug Fixes

  • titleProp: handle the existing title case by using element instead of value (children) (#315) (065e7a9)

v4.3.0

28 May 14:44
79069ed
Compare
Choose a tag to compare

Features

  • cli: output relative destination paths (#312) (b78e471)
  • titleProps fallbacks to svg's title (#311) (8f92366)

v4.2.0

11 Apr 07:02
Compare
Choose a tag to compare

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

24 Nov 15:29
Compare
Choose a tag to compare

Features

v4.0.4

24 Nov 07:54
Compare
Choose a tag to compare

Bug Fixes

v4.0.3

13 Nov 09:35
Compare
Choose a tag to compare

Bug Fixes

  • babel-plugin: fix usage of spread attribute(#231) (4186953)
  • upgrade dependencies (7e2195f)

v4.0.2

08 Nov 19:37
Compare
Choose a tag to compare

Bug Fixes

  • hast-util-to-babel-ast: replace tabs by spaces in attributes (b0f3d19), closes #219

v4.0.1

08 Nov 14:14
Compare
Choose a tag to compare

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

04 Nov 15:18
Compare
Choose a tag to compare

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

v3.1.0

05 Oct 19:14
Compare
Choose a tag to compare

Bug Fixes

Features