Skip to content

Commit a4e63f0

Browse files
committed
v3.0.0
1 parent 81cf9ef commit a4e63f0

File tree

10 files changed

+172
-8
lines changed

10 files changed

+172
-8
lines changed

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,53 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
<a name="3.0.0"></a>
7+
# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)
8+
9+
10+
### Bug Fixes
11+
12+
* **rollup:** forward filePath in rollup plugin ([461492b](https://github.com/smooth-code/svgr/commit/461492b)), closes [#177](https://github.com/smooth-code/svgr/issues/177) [#188](https://github.com/smooth-code/svgr/issues/188)
13+
* **webpack:** forward filePath in webpack loader ([b7a108e](https://github.com/smooth-code/svgr/commit/b7a108e)), closes [#177](https://github.com/smooth-code/svgr/issues/177) [#188](https://github.com/smooth-code/svgr/issues/188)
14+
* fix --icon + --no-dimensions ([7535693](https://github.com/smooth-code/svgr/commit/7535693)), closes [#141](https://github.com/smooth-code/svgr/issues/141)
15+
* fix expandProps when position is not allowed ([45522fc](https://github.com/smooth-code/svgr/commit/45522fc))
16+
17+
18+
### Features
19+
20+
* **config:** improve runtime config ([e52cdce](https://github.com/smooth-code/svgr/commit/e52cdce)), closes [#192](https://github.com/smooth-code/svgr/issues/192)
21+
* **template:** expose `getProps` util for template ([5cb238e](https://github.com/smooth-code/svgr/commit/5cb238e)), closes [#187](https://github.com/smooth-code/svgr/issues/187)
22+
* add synchronous API ([169eb2f](https://github.com/smooth-code/svgr/commit/169eb2f)), closes [#185](https://github.com/smooth-code/svgr/issues/185)
23+
* always prefix component name with "Svg" ([f71aa7a](https://github.com/smooth-code/svgr/commit/f71aa7a)), closes [#190](https://github.com/smooth-code/svgr/issues/190)
24+
* do not remove style tag ([a4ce09a](https://github.com/smooth-code/svgr/commit/a4ce09a)), closes [#191](https://github.com/smooth-code/svgr/issues/191)
25+
* new "expandProps" option ([bb95828](https://github.com/smooth-code/svgr/commit/bb95828)), closes [#170](https://github.com/smooth-code/svgr/issues/170)
26+
* remove "svgAttributes" option ([4e46a5d](https://github.com/smooth-code/svgr/commit/4e46a5d)), closes [#173](https://github.com/smooth-code/svgr/issues/173)
27+
* use forwardRef on React Native ([4bdd989](https://github.com/smooth-code/svgr/commit/4bdd989)), closes [#184](https://github.com/smooth-code/svgr/issues/184)
28+
* use React.forwardRef ([cbee51c](https://github.com/smooth-code/svgr/commit/cbee51c)), closes [#184](https://github.com/smooth-code/svgr/issues/184)
29+
30+
31+
### BREAKING CHANGES
32+
33+
* "--no-expand-props" is now replaced by "--expand-props none". You can now specify a position "start" or "end" for "expandProps"
34+
property.
35+
* `svgAttributes` has been removed, please use `svgProps` instead.
36+
* "ref" option now uses `React.forwardRef`. You don't have to use "svgRef"
37+
prop, just use "ref" and it will work. `React.forwardRef` requires React
38+
> 16.3.
39+
* Style tag will no longer be automatically removed. SVGO should handle it
40+
correctly using "inlineStyles" plugin. If you want to remove them,
41+
enable "removeStyleElement" plugin in your SVGO config.
42+
* **rollup:** runtime configuration is now loaded using rollup plugin.
43+
* **webpack:** runtime configuration is now loaded using webpack
44+
loader.
45+
* **config:** - Runtime configuration is always loaded (even with Node API `convert`)
46+
- In CLI, "--config" is now "--config-file"; this new option can be used
47+
everywhere
48+
49+
50+
51+
52+
653
<a name="2.4.1"></a>
754
## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16)
855

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": [
44
"packages/*"
55
],
6-
"version": "2.4.1",
6+
"version": "3.0.0",
77
"npmClient": "yarn",
88
"useWorkspaces": true
99
}

packages/cli/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,36 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
<a name="3.0.0"></a>
7+
# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)
8+
9+
10+
### Features
11+
12+
* **config:** improve runtime config ([e52cdce](https://github.com/smooth-code/svgr/commit/e52cdce)), closes [#192](https://github.com/smooth-code/svgr/issues/192)
13+
* always prefix component name with "Svg" ([f71aa7a](https://github.com/smooth-code/svgr/commit/f71aa7a)), closes [#190](https://github.com/smooth-code/svgr/issues/190)
14+
* new "expandProps" option ([bb95828](https://github.com/smooth-code/svgr/commit/bb95828)), closes [#170](https://github.com/smooth-code/svgr/issues/170)
15+
* remove "svgAttributes" option ([4e46a5d](https://github.com/smooth-code/svgr/commit/4e46a5d)), closes [#173](https://github.com/smooth-code/svgr/issues/173)
16+
* use forwardRef on React Native ([4bdd989](https://github.com/smooth-code/svgr/commit/4bdd989)), closes [#184](https://github.com/smooth-code/svgr/issues/184)
17+
* use React.forwardRef ([cbee51c](https://github.com/smooth-code/svgr/commit/cbee51c)), closes [#184](https://github.com/smooth-code/svgr/issues/184)
18+
19+
20+
### BREAKING CHANGES
21+
22+
* "--no-expand-props" is now replaced by "--expand-props none". You can now specify a position "start" or "end" for "expandProps"
23+
property.
24+
* `svgAttributes` has been removed, please use `svgProps` instead.
25+
* "ref" option now uses `React.forwardRef`. You don't have to use "svgRef"
26+
prop, just use "ref" and it will work. `React.forwardRef` requires React
27+
> 16.3.
28+
* **config:** - Runtime configuration is always loaded (even with Node API `convert`)
29+
- In CLI, "--config" is now "--config-file"; this new option can be used
30+
everywhere
31+
32+
33+
34+
35+
636
<a name="2.4.1"></a>
737
## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16)
838

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/cli",
33
"description": "SVGR command line.",
4-
"version": "2.4.1",
4+
"version": "3.0.0",
55
"repository": "[email protected]:smooth-code/svgr.git",
66
"author": "Greg Bergé <[email protected]>",
77
"keywords": [
@@ -23,7 +23,7 @@
2323
"prepublishOnly": "yarn run build"
2424
},
2525
"dependencies": {
26-
"@svgr/core": "^2.4.1",
26+
"@svgr/core": "^3.0.0",
2727
"camelcase": "^5.0.0",
2828
"chalk": "^2.4.1",
2929
"commander": "^2.18.0",

packages/core/CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,48 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
<a name="3.0.0"></a>
7+
# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)
8+
9+
10+
### Bug Fixes
11+
12+
* fix --icon + --no-dimensions ([7535693](https://github.com/smooth-code/svgr/commit/7535693)), closes [#141](https://github.com/smooth-code/svgr/issues/141)
13+
* fix expandProps when position is not allowed ([45522fc](https://github.com/smooth-code/svgr/commit/45522fc))
14+
15+
16+
### Features
17+
18+
* **config:** improve runtime config ([e52cdce](https://github.com/smooth-code/svgr/commit/e52cdce)), closes [#192](https://github.com/smooth-code/svgr/issues/192)
19+
* **template:** expose `getProps` util for template ([5cb238e](https://github.com/smooth-code/svgr/commit/5cb238e)), closes [#187](https://github.com/smooth-code/svgr/issues/187)
20+
* add synchronous API ([169eb2f](https://github.com/smooth-code/svgr/commit/169eb2f)), closes [#185](https://github.com/smooth-code/svgr/issues/185)
21+
* always prefix component name with "Svg" ([f71aa7a](https://github.com/smooth-code/svgr/commit/f71aa7a)), closes [#190](https://github.com/smooth-code/svgr/issues/190)
22+
* do not remove style tag ([a4ce09a](https://github.com/smooth-code/svgr/commit/a4ce09a)), closes [#191](https://github.com/smooth-code/svgr/issues/191)
23+
* new "expandProps" option ([bb95828](https://github.com/smooth-code/svgr/commit/bb95828)), closes [#170](https://github.com/smooth-code/svgr/issues/170)
24+
* remove "svgAttributes" option ([4e46a5d](https://github.com/smooth-code/svgr/commit/4e46a5d)), closes [#173](https://github.com/smooth-code/svgr/issues/173)
25+
* use forwardRef on React Native ([4bdd989](https://github.com/smooth-code/svgr/commit/4bdd989)), closes [#184](https://github.com/smooth-code/svgr/issues/184)
26+
* use React.forwardRef ([cbee51c](https://github.com/smooth-code/svgr/commit/cbee51c)), closes [#184](https://github.com/smooth-code/svgr/issues/184)
27+
28+
29+
### BREAKING CHANGES
30+
31+
* "--no-expand-props" is now replaced by "--expand-props none". You can now specify a position "start" or "end" for "expandProps"
32+
property.
33+
* `svgAttributes` has been removed, please use `svgProps` instead.
34+
* "ref" option now uses `React.forwardRef`. You don't have to use "svgRef"
35+
prop, just use "ref" and it will work. `React.forwardRef` requires React
36+
> 16.3.
37+
* Style tag will no longer be automatically removed. SVGO should handle it
38+
correctly using "inlineStyles" plugin. If you want to remove them,
39+
enable "removeStyleElement" plugin in your SVGO config.
40+
* **config:** - Runtime configuration is always loaded (even with Node API `convert`)
41+
- In CLI, "--config" is now "--config-file"; this new option can be used
42+
everywhere
43+
44+
45+
46+
47+
648
<a name="2.4.1"></a>
749
## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16)
850

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/core",
33
"description": "Transform SVG into React Components.",
4-
"version": "2.4.1",
4+
"version": "3.0.0",
55
"main": "lib/index.js",
66
"repository": "[email protected]:smooth-code/svgr.git",
77
"author": "Greg Bergé <[email protected]>",

packages/rollup/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
<a name="3.0.0"></a>
7+
# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)
8+
9+
10+
### Bug Fixes
11+
12+
* **rollup:** forward filePath in rollup plugin ([461492b](https://github.com/smooth-code/svgr/commit/461492b)), closes [#177](https://github.com/smooth-code/svgr/issues/177) [#188](https://github.com/smooth-code/svgr/issues/188)
13+
14+
15+
### Features
16+
17+
* always prefix component name with "Svg" ([f71aa7a](https://github.com/smooth-code/svgr/commit/f71aa7a)), closes [#190](https://github.com/smooth-code/svgr/issues/190)
18+
19+
20+
### BREAKING CHANGES
21+
22+
* **rollup:** runtime configuration is now loaded using rollup plugin.
23+
24+
25+
26+
27+
628
<a name="2.4.1"></a>
729
## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16)
830

packages/rollup/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/rollup",
33
"description": "SVGR Rollup plugin.",
4-
"version": "2.4.1",
4+
"version": "3.0.0",
55
"main": "lib/index.js",
66
"repository": "[email protected]:smooth-code/svgr.git",
77
"author": "Greg Bergé <[email protected]>",
@@ -26,7 +26,7 @@
2626
"@babel/plugin-transform-react-constant-elements": "^7.0.0",
2727
"@babel/preset-env": "^7.1.0",
2828
"@babel/preset-react": "^7.0.0",
29-
"@svgr/core": "^2.4.1",
29+
"@svgr/core": "^3.0.0",
3030
"rollup-pluginutils": "^2.3.3"
3131
},
3232
"devDependencies": {

packages/webpack/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
<a name="3.0.0"></a>
7+
# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01)
8+
9+
10+
### Bug Fixes
11+
12+
* **webpack:** forward filePath in webpack loader ([b7a108e](https://github.com/smooth-code/svgr/commit/b7a108e)), closes [#177](https://github.com/smooth-code/svgr/issues/177) [#188](https://github.com/smooth-code/svgr/issues/188)
13+
14+
15+
### Features
16+
17+
* always prefix component name with "Svg" ([f71aa7a](https://github.com/smooth-code/svgr/commit/f71aa7a)), closes [#190](https://github.com/smooth-code/svgr/issues/190)
18+
19+
20+
### BREAKING CHANGES
21+
22+
* **webpack:** runtime configuration is now loaded using webpack
23+
loader.
24+
25+
26+
27+
28+
629
<a name="2.4.1"></a>
730
## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16)
831

packages/webpack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/webpack",
33
"description": "SVGR webpack loader.",
4-
"version": "2.4.1",
4+
"version": "3.0.0",
55
"main": "lib/index.js",
66
"repository": "[email protected]:smooth-code/svgr.git",
77
"author": "Greg Bergé <[email protected]>",
@@ -26,7 +26,7 @@
2626
"@babel/plugin-transform-react-constant-elements": "^7.0.0",
2727
"@babel/preset-env": "^7.1.0",
2828
"@babel/preset-react": "^7.0.0",
29-
"@svgr/core": "^2.4.1",
29+
"@svgr/core": "^3.0.0",
3030
"loader-utils": "^1.1.0"
3131
},
3232
"devDependencies": {

0 commit comments

Comments
 (0)