| 1 | # Change Log
|
|---|
| 2 |
|
|---|
| 3 | All notable changes to this project will be documented in this file.
|
|---|
| 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|---|
| 5 |
|
|---|
| 6 | # [5.5.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.4.0...v5.5.0) (2020-11-15)
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | ### Bug Fixes
|
|---|
| 10 |
|
|---|
| 11 | * **typescript:** fix react-native support [#465](https://github.com/gregberge/svgr/tree/master/packages/core/issues/465) ([#488](https://github.com/gregberge/svgr/tree/master/packages/core/issues/488)) ([d61e0cf](https://github.com/gregberge/svgr/tree/master/packages/core/commit/d61e0cface065afc1478fdb44d87ca8177041eab))
|
|---|
| 12 | * prevent removing the namespace by svgr ([[#475](https://github.com/gregberge/svgr/tree/master/packages/core/issues/475)](https://github.com/gregberge/svgr/issues/475) ([#498](https://github.com/gregberge/svgr/tree/master/packages/core/issues/498)) ([00e84ea](https://github.com/gregberge/svgr/tree/master/packages/core/commit/00e84ead96d89bcbd072b9585b4db1365e392d33))
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | ### Features
|
|---|
| 16 |
|
|---|
| 17 | * allow custom name for named export ([#493](https://github.com/gregberge/svgr/tree/master/packages/core/issues/493)) ([16a58d6](https://github.com/gregberge/svgr/tree/master/packages/core/commit/16a58d6e817c065f72a68be91600a1a360205f44))
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | # [5.4.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.3.1...v5.4.0) (2020-04-27)
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | ### Bug Fixes
|
|---|
| 27 |
|
|---|
| 28 | * wrap svg component directly with memo/forwardRef ([#440](https://github.com/gregberge/svgr/tree/master/packages/core/issues/440)) ([#441](https://github.com/gregberge/svgr/tree/master/packages/core/issues/441)) ([a6de2da](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a6de2dacb63e36572a2167b928418bdc39f3a9c2))
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | ### Features
|
|---|
| 32 |
|
|---|
| 33 | * **cli:** make all CLI options available in config ([a23a186](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a23a18675c0dd4a461d2fcbdc72a305cabd32a13)), closes [#431](https://github.com/gregberge/svgr/tree/master/packages/core/issues/431) [#437](https://github.com/gregberge/svgr/tree/master/packages/core/issues/437)
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | ## [5.3.1](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.3.0...v5.3.1) (2020-04-05)
|
|---|
| 40 |
|
|---|
| 41 | **Note:** Version bump only for package @svgr/core
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | # [5.3.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.2.0...v5.3.0) (2020-03-22)
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 | ### Features
|
|---|
| 51 |
|
|---|
| 52 | * add typescript option ([4596d7b](https://github.com/gregberge/svgr/tree/master/packages/core/commit/4596d7bb470babb5ec4b87f5281174fb182bd9c7)), closes [#373](https://github.com/gregberge/svgr/tree/master/packages/core/issues/373)
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | # [5.2.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.1.0...v5.2.0) (2020-02-23)
|
|---|
| 59 |
|
|---|
| 60 | **Note:** Version bump only for package @svgr/core
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | ## [5.0.1](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.0.0...v5.0.1) (2019-12-29)
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | ### Bug Fixes
|
|---|
| 70 |
|
|---|
| 71 | * fix engines in package.json ([a45d6fc](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a45d6fc8b43402bec60ed4e9273f90fdc65a23a7))
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 | ## [4.3.3](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v4.3.2...v4.3.3) (2019-09-24)
|
|---|
| 78 |
|
|---|
| 79 |
|
|---|
| 80 | ### Bug Fixes
|
|---|
| 81 |
|
|---|
| 82 | * **babel-plugin-svg-dynamic-title:** dont render empty title ([#341](https://github.com/gregberge/svgr/tree/master/packages/core/issues/341)) ([88b24c5](https://github.com/gregberge/svgr/tree/master/packages/core/commit/88b24c5)), closes [#333](https://github.com/gregberge/svgr/tree/master/packages/core/issues/333)
|
|---|
| 83 | * invalid characters in component name ([#332](https://github.com/gregberge/svgr/tree/master/packages/core/issues/332)) ([4b4bd2c](https://github.com/gregberge/svgr/tree/master/packages/core/commit/4b4bd2c)), closes [#331](https://github.com/gregberge/svgr/tree/master/packages/core/issues/331)
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | ## [4.3.2](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v4.3.1...v4.3.2) (2019-07-15)
|
|---|
| 90 |
|
|---|
| 91 | **Note:** Version bump only for package @svgr/core
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | ## [4.3.1](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v4.3.0...v4.3.1) (2019-07-01)
|
|---|
| 98 |
|
|---|
| 99 | **Note:** Version bump only for package @svgr/core
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 | # [4.3.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v4.2.0...v4.3.0) (2019-05-28)
|
|---|
| 106 |
|
|---|
| 107 | **Note:** Version bump only for package @svgr/core
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 |
|
|---|
| 113 | # [4.2.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v4.1.0...v4.2.0) (2019-04-11)
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | ### Bug Fixes
|
|---|
| 117 |
|
|---|
| 118 | * keep viewBox when dimensions are removed ([#281](https://github.com/gregberge/svgr/tree/master/packages/core/issues/281)) ([f476c8e](https://github.com/gregberge/svgr/tree/master/packages/core/commit/f476c8e))
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | ### Features
|
|---|
| 122 |
|
|---|
| 123 | * add expo option ([#289](https://github.com/gregberge/svgr/tree/master/packages/core/issues/289)) ([978db3e](https://github.com/gregberge/svgr/tree/master/packages/core/commit/978db3e))
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 | # [4.1.0](https://github.com/gregberge/svgr/compare/v4.0.4...v4.1.0) (2018-11-24)
|
|---|
| 130 |
|
|---|
| 131 | **Note:** Version bump only for package @svgr/core
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 | ## [4.0.3](https://github.com/gregberge/svgr/compare/v4.0.2...v4.0.3) (2018-11-13)
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 | ### Bug Fixes
|
|---|
| 141 |
|
|---|
| 142 | * upgrade dependencies ([7e2195f](https://github.com/gregberge/svgr/commit/7e2195f))
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 | ## [4.0.2](https://github.com/gregberge/svgr/compare/v4.0.1...v4.0.2) (2018-11-08)
|
|---|
| 149 |
|
|---|
| 150 | **Note:** Version bump only for package @svgr/core
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 |
|
|---|
| 156 | ## [4.0.1](https://github.com/gregberge/svgr/compare/v4.0.0...v4.0.1) (2018-11-08)
|
|---|
| 157 |
|
|---|
| 158 | **Note:** Version bump only for package @svgr/core
|
|---|
| 159 |
|
|---|
| 160 |
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 | # [4.0.0](https://github.com/gregberge/svgr/compare/v3.1.0...v4.0.0) (2018-11-04)
|
|---|
| 165 |
|
|---|
| 166 |
|
|---|
| 167 | ### Features
|
|---|
| 168 |
|
|---|
| 169 | * **svgo:** prefix ids by default ([06c338d](https://github.com/gregberge/svgr/commit/06c338d)), closes [#210](https://github.com/gregberge/svgr/issues/210)
|
|---|
| 170 | * **v4:** new architecture ([ac8b8ca](https://github.com/gregberge/svgr/commit/ac8b8ca))
|
|---|
| 171 | * allow dynamic properties in replaceAttrValues option ([15f55fe](https://github.com/gregberge/svgr/commit/15f55fe)), closes [#205](https://github.com/gregberge/svgr/issues/205)
|
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 | ### BREAKING CHANGES
|
|---|
| 175 |
|
|---|
| 176 | * **v4:** - `template` option must now returns a Babel AST
|
|---|
| 177 | - `@svgr/core` does not include svgo & prettier by default
|
|---|
| 178 |
|
|---|
| 179 |
|
|---|
| 180 |
|
|---|
| 181 |
|
|---|
| 182 |
|
|---|
| 183 | # [3.1.0](https://github.com/gregberge/svgr/compare/v3.0.0...v3.1.0) (2018-10-05)
|
|---|
| 184 |
|
|---|
| 185 |
|
|---|
| 186 | ### Bug Fixes
|
|---|
| 187 |
|
|---|
| 188 | * style & custom SVG properties ([#203](https://github.com/gregberge/svgr/issues/203)) ([f8b2212](https://github.com/gregberge/svgr/commit/f8b2212)), closes [#199](https://github.com/gregberge/svgr/issues/199) [#201](https://github.com/gregberge/svgr/issues/201)
|
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 | ### Features
|
|---|
| 192 |
|
|---|
| 193 | * allow Mask & Image on React Native ([#202](https://github.com/gregberge/svgr/issues/202)) ([0256bc0](https://github.com/gregberge/svgr/commit/0256bc0))
|
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
|
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 | <a name="3.0.0"></a>
|
|---|
| 200 | # [3.0.0](https://github.com/gregberge/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)
|
|---|
| 201 |
|
|---|
| 202 |
|
|---|
| 203 | ### Bug Fixes
|
|---|
| 204 |
|
|---|
| 205 | * fix --icon + --no-dimensions ([7535693](https://github.com/gregberge/svgr/commit/7535693)), closes [#141](https://github.com/gregberge/svgr/issues/141)
|
|---|
| 206 | * fix expandProps when position is not allowed ([45522fc](https://github.com/gregberge/svgr/commit/45522fc))
|
|---|
| 207 |
|
|---|
| 208 |
|
|---|
| 209 | ### Features
|
|---|
| 210 |
|
|---|
| 211 | * **config:** improve runtime config ([e52cdce](https://github.com/gregberge/svgr/commit/e52cdce)), closes [#192](https://github.com/gregberge/svgr/issues/192)
|
|---|
| 212 | * **template:** expose `getProps` util for template ([5cb238e](https://github.com/gregberge/svgr/commit/5cb238e)), closes [#187](https://github.com/gregberge/svgr/issues/187)
|
|---|
| 213 | * add synchronous API ([169eb2f](https://github.com/gregberge/svgr/commit/169eb2f)), closes [#185](https://github.com/gregberge/svgr/issues/185)
|
|---|
| 214 | * always prefix component name with "Svg" ([f71aa7a](https://github.com/gregberge/svgr/commit/f71aa7a)), closes [#190](https://github.com/gregberge/svgr/issues/190)
|
|---|
| 215 | * do not remove style tag ([a4ce09a](https://github.com/gregberge/svgr/commit/a4ce09a)), closes [#191](https://github.com/gregberge/svgr/issues/191)
|
|---|
| 216 | * new "expandProps" option ([bb95828](https://github.com/gregberge/svgr/commit/bb95828)), closes [#170](https://github.com/gregberge/svgr/issues/170)
|
|---|
| 217 | * remove "svgAttributes" option ([4e46a5d](https://github.com/gregberge/svgr/commit/4e46a5d)), closes [#173](https://github.com/gregberge/svgr/issues/173)
|
|---|
| 218 | * use forwardRef on React Native ([4bdd989](https://github.com/gregberge/svgr/commit/4bdd989)), closes [#184](https://github.com/gregberge/svgr/issues/184)
|
|---|
| 219 | * use React.forwardRef ([cbee51c](https://github.com/gregberge/svgr/commit/cbee51c)), closes [#184](https://github.com/gregberge/svgr/issues/184)
|
|---|
| 220 |
|
|---|
| 221 |
|
|---|
| 222 | ### BREAKING CHANGES
|
|---|
| 223 |
|
|---|
| 224 | * "--no-expand-props" is now replaced by "--expand-props none". You can now specify a position "start" or "end" for "expandProps"
|
|---|
| 225 | property.
|
|---|
| 226 | * `svgAttributes` has been removed, please use `svgProps` instead.
|
|---|
| 227 | * "ref" option now uses `React.forwardRef`. You don't have to use "svgRef"
|
|---|
| 228 | prop, just use "ref" and it will work. `React.forwardRef` requires React
|
|---|
| 229 | > 16.3.
|
|---|
| 230 | * Style tag will no longer be automatically removed. SVGO should handle it
|
|---|
| 231 | correctly using "inlineStyles" plugin. If you want to remove them,
|
|---|
| 232 | enable "removeStyleElement" plugin in your SVGO config.
|
|---|
| 233 | * **config:** - Runtime configuration is always loaded (even with Node API `convert`)
|
|---|
| 234 | - In CLI, "--config" is now "--config-file"; this new option can be used
|
|---|
| 235 | everywhere
|
|---|
| 236 |
|
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 |
|
|---|
| 240 |
|
|---|
| 241 | <a name="2.4.1"></a>
|
|---|
| 242 | ## [2.4.1](https://github.com/gregberge/svgr/compare/v2.4.0...v2.4.1) (2018-09-16)
|
|---|
| 243 |
|
|---|
| 244 |
|
|---|
| 245 | ### Bug Fixes
|
|---|
| 246 |
|
|---|
| 247 | * **config:** fix custom config & default options ([#176](https://github.com/gregberge/svgr/issues/176)) ([9a6c40b](https://github.com/gregberge/svgr/commit/9a6c40b))
|
|---|
| 248 |
|
|---|
| 249 |
|
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 | <a name="2.4.0"></a>
|
|---|
| 254 | # [2.4.0](https://github.com/gregberge/svgr/compare/v2.3.0...v2.4.0) (2018-09-16)
|
|---|
| 255 |
|
|---|
| 256 |
|
|---|
| 257 | ### Bug Fixes
|
|---|
| 258 |
|
|---|
| 259 | * use literal instead of litteral ([7849fd4](https://github.com/gregberge/svgr/commit/7849fd4))
|
|---|
| 260 |
|
|---|
| 261 |
|
|---|
| 262 | ### Features
|
|---|
| 263 |
|
|---|
| 264 | * allow to spread props at the start ([#166](https://github.com/gregberge/svgr/issues/166)) ([cd659dc](https://github.com/gregberge/svgr/commit/cd659dc))
|
|---|
| 265 | * **upgrade:** h2x@1.1.0 (jsdom@12.0.0) & others ([2d9b7bd](https://github.com/gregberge/svgr/commit/2d9b7bd))
|
|---|
| 266 | * new option "svgProps" ([#172](https://github.com/gregberge/svgr/issues/172)) ([9657110](https://github.com/gregberge/svgr/commit/9657110))
|
|---|
| 267 |
|
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| 270 |
|
|---|
| 271 |
|
|---|
| 272 | <a name="2.2.0"></a>
|
|---|
| 273 | # [2.2.0](https://github.com/gregberge/svgr/compare/v2.1.1...v2.2.0) (2018-08-13)
|
|---|
| 274 |
|
|---|
| 275 |
|
|---|
| 276 | ### Bug Fixes
|
|---|
| 277 |
|
|---|
| 278 | * remove null-byte characters ([#154](https://github.com/gregberge/svgr/issues/154)) ([de7f8a7](https://github.com/gregberge/svgr/commit/de7f8a7)), closes [#153](https://github.com/gregberge/svgr/issues/153)
|
|---|
| 279 |
|
|---|
| 280 |
|
|---|
| 281 | ### Features
|
|---|
| 282 |
|
|---|
| 283 | * **core:** pass info to SVGO ([2b2353b](https://github.com/gregberge/svgr/commit/2b2353b)), closes [#152](https://github.com/gregberge/svgr/issues/152)
|
|---|
| 284 |
|
|---|
| 285 |
|
|---|
| 286 |
|
|---|
| 287 |
|
|---|
| 288 |
|
|---|
| 289 | <a name="2.1.1"></a>
|
|---|
| 290 | ## [2.1.1](https://github.com/gregberge/svgr/compare/v2.1.0...v2.1.1) (2018-07-11)
|
|---|
| 291 |
|
|---|
| 292 |
|
|---|
| 293 | ### Bug Fixes
|
|---|
| 294 |
|
|---|
| 295 | * **core:** config conflict with icon option ([#137](https://github.com/gregberge/svgr/issues/137)) ([e13a99a](https://github.com/gregberge/svgr/commit/e13a99a))
|
|---|
| 296 |
|
|---|
| 297 |
|
|---|
| 298 |
|
|---|
| 299 |
|
|---|
| 300 | <a name="2.1.0"></a>
|
|---|
| 301 | # [2.1.0](https://github.com/gregberge/svgr/compare/v2.0.0...v2.1.0) (2018-07-08)
|
|---|
| 302 |
|
|---|
| 303 |
|
|---|
| 304 | ### Features
|
|---|
| 305 |
|
|---|
| 306 | * add .editorconfig support ([#129](https://github.com/gregberge/svgr/issues/129)) ([968fd82](https://github.com/gregberge/svgr/commit/968fd82))
|
|---|
| 307 | * **cli:** support custom filename cases ([#136](https://github.com/gregberge/svgr/issues/136)) ([4922f7a](https://github.com/gregberge/svgr/commit/4922f7a)), closes [#118](https://github.com/gregberge/svgr/issues/118)
|
|---|