From a4e63f058e8e0e19b1802cef0015d97723721a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Mon, 1 Oct 2018 20:05:23 +0200 Subject: [PATCH] v3.0.0 --- CHANGELOG.md | 47 +++++++++++++++++++++++++++++++++++ lerna.json | 2 +- packages/cli/CHANGELOG.md | 30 ++++++++++++++++++++++ packages/cli/package.json | 4 +-- packages/core/CHANGELOG.md | 42 +++++++++++++++++++++++++++++++ packages/core/package.json | 2 +- packages/rollup/CHANGELOG.md | 22 ++++++++++++++++ packages/rollup/package.json | 4 +-- packages/webpack/CHANGELOG.md | 23 +++++++++++++++++ packages/webpack/package.json | 4 +-- 10 files changed, 172 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 366bad93..d3c0228a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,53 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01) + + +### Bug Fixes + +* **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) +* **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) +* fix --icon + --no-dimensions ([7535693](https://github.com/smooth-code/svgr/commit/7535693)), closes [#141](https://github.com/smooth-code/svgr/issues/141) +* fix expandProps when position is not allowed ([45522fc](https://github.com/smooth-code/svgr/commit/45522fc)) + + +### Features + +* **config:** improve runtime config ([e52cdce](https://github.com/smooth-code/svgr/commit/e52cdce)), closes [#192](https://github.com/smooth-code/svgr/issues/192) +* **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) +* add synchronous API ([169eb2f](https://github.com/smooth-code/svgr/commit/169eb2f)), closes [#185](https://github.com/smooth-code/svgr/issues/185) +* 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) +* do not remove style tag ([a4ce09a](https://github.com/smooth-code/svgr/commit/a4ce09a)), closes [#191](https://github.com/smooth-code/svgr/issues/191) +* new "expandProps" option ([bb95828](https://github.com/smooth-code/svgr/commit/bb95828)), closes [#170](https://github.com/smooth-code/svgr/issues/170) +* remove "svgAttributes" option ([4e46a5d](https://github.com/smooth-code/svgr/commit/4e46a5d)), closes [#173](https://github.com/smooth-code/svgr/issues/173) +* use forwardRef on React Native ([4bdd989](https://github.com/smooth-code/svgr/commit/4bdd989)), closes [#184](https://github.com/smooth-code/svgr/issues/184) +* use React.forwardRef ([cbee51c](https://github.com/smooth-code/svgr/commit/cbee51c)), closes [#184](https://github.com/smooth-code/svgr/issues/184) + + +### BREAKING CHANGES + +* "--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 use `svgProps` 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 React +> 16.3. +* Style tag will no longer be automatically removed. SVGO should handle it +correctly using "inlineStyles" plugin. If you want to remove them, +enable "removeStyleElement" plugin in your SVGO config. +* **rollup:** runtime configuration is now loaded using rollup plugin. +* **webpack:** runtime configuration is now loaded using webpack +loader. +* **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](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16) diff --git a/lerna.json b/lerna.json index 2f75a913..c9475f6f 100644 --- a/lerna.json +++ b/lerna.json @@ -3,7 +3,7 @@ "packages": [ "packages/*" ], - "version": "2.4.1", + "version": "3.0.0", "npmClient": "yarn", "useWorkspaces": true } diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index a31861db..f0cf17ea 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -3,6 +3,36 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01) + + +### Features + +* **config:** improve runtime config ([e52cdce](https://github.com/smooth-code/svgr/commit/e52cdce)), closes [#192](https://github.com/smooth-code/svgr/issues/192) +* 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) +* new "expandProps" option ([bb95828](https://github.com/smooth-code/svgr/commit/bb95828)), closes [#170](https://github.com/smooth-code/svgr/issues/170) +* remove "svgAttributes" option ([4e46a5d](https://github.com/smooth-code/svgr/commit/4e46a5d)), closes [#173](https://github.com/smooth-code/svgr/issues/173) +* use forwardRef on React Native ([4bdd989](https://github.com/smooth-code/svgr/commit/4bdd989)), closes [#184](https://github.com/smooth-code/svgr/issues/184) +* use React.forwardRef ([cbee51c](https://github.com/smooth-code/svgr/commit/cbee51c)), closes [#184](https://github.com/smooth-code/svgr/issues/184) + + +### BREAKING CHANGES + +* "--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 use `svgProps` 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 React +> 16.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](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16) diff --git a/packages/cli/package.json b/packages/cli/package.json index 15be21bf..1cb5825e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@svgr/cli", "description": "SVGR command line.", - "version": "2.4.1", + "version": "3.0.0", "repository": "git@github.com:smooth-code/svgr.git", "author": "Greg Bergé ", "keywords": [ @@ -23,7 +23,7 @@ "prepublishOnly": "yarn run build" }, "dependencies": { - "@svgr/core": "^2.4.1", + "@svgr/core": "^3.0.0", "camelcase": "^5.0.0", "chalk": "^2.4.1", "commander": "^2.18.0", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 3cd94a4e..a882f3ce 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -3,6 +3,48 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01) + + +### Bug Fixes + +* fix --icon + --no-dimensions ([7535693](https://github.com/smooth-code/svgr/commit/7535693)), closes [#141](https://github.com/smooth-code/svgr/issues/141) +* fix expandProps when position is not allowed ([45522fc](https://github.com/smooth-code/svgr/commit/45522fc)) + + +### Features + +* **config:** improve runtime config ([e52cdce](https://github.com/smooth-code/svgr/commit/e52cdce)), closes [#192](https://github.com/smooth-code/svgr/issues/192) +* **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) +* add synchronous API ([169eb2f](https://github.com/smooth-code/svgr/commit/169eb2f)), closes [#185](https://github.com/smooth-code/svgr/issues/185) +* 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) +* do not remove style tag ([a4ce09a](https://github.com/smooth-code/svgr/commit/a4ce09a)), closes [#191](https://github.com/smooth-code/svgr/issues/191) +* new "expandProps" option ([bb95828](https://github.com/smooth-code/svgr/commit/bb95828)), closes [#170](https://github.com/smooth-code/svgr/issues/170) +* remove "svgAttributes" option ([4e46a5d](https://github.com/smooth-code/svgr/commit/4e46a5d)), closes [#173](https://github.com/smooth-code/svgr/issues/173) +* use forwardRef on React Native ([4bdd989](https://github.com/smooth-code/svgr/commit/4bdd989)), closes [#184](https://github.com/smooth-code/svgr/issues/184) +* use React.forwardRef ([cbee51c](https://github.com/smooth-code/svgr/commit/cbee51c)), closes [#184](https://github.com/smooth-code/svgr/issues/184) + + +### BREAKING CHANGES + +* "--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 use `svgProps` 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 React +> 16.3. +* Style tag will no longer be automatically removed. SVGO should handle it +correctly using "inlineStyles" plugin. If you want to remove them, +enable "removeStyleElement" plugin in your SVGO config. +* **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](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16) diff --git a/packages/core/package.json b/packages/core/package.json index 8e69a178..13f528ce 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@svgr/core", "description": "Transform SVG into React Components.", - "version": "2.4.1", + "version": "3.0.0", "main": "lib/index.js", "repository": "git@github.com:smooth-code/svgr.git", "author": "Greg Bergé ", diff --git a/packages/rollup/CHANGELOG.md b/packages/rollup/CHANGELOG.md index 44c46a0c..867eca58 100644 --- a/packages/rollup/CHANGELOG.md +++ b/packages/rollup/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01) + + +### Bug Fixes + +* **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) + + +### Features + +* 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) + + +### BREAKING CHANGES + +* **rollup:** runtime configuration is now loaded using rollup plugin. + + + + + ## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16) diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 434d21a4..baeeb63a 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -1,7 +1,7 @@ { "name": "@svgr/rollup", "description": "SVGR Rollup plugin.", - "version": "2.4.1", + "version": "3.0.0", "main": "lib/index.js", "repository": "git@github.com:smooth-code/svgr.git", "author": "Greg Bergé ", @@ -26,7 +26,7 @@ "@babel/plugin-transform-react-constant-elements": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", - "@svgr/core": "^2.4.1", + "@svgr/core": "^3.0.0", "rollup-pluginutils": "^2.3.3" }, "devDependencies": { diff --git a/packages/webpack/CHANGELOG.md b/packages/webpack/CHANGELOG.md index 972f2697..d000f2bf 100644 --- a/packages/webpack/CHANGELOG.md +++ b/packages/webpack/CHANGELOG.md @@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01) + + +### Bug Fixes + +* **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) + + +### Features + +* 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) + + +### BREAKING CHANGES + +* **webpack:** runtime configuration is now loaded using webpack +loader. + + + + + ## [2.4.1](https://github.com/smooth-code/svgr/compare/v2.4.0...v2.4.1) (2018-09-16) diff --git a/packages/webpack/package.json b/packages/webpack/package.json index ab66747f..832ef5c7 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -1,7 +1,7 @@ { "name": "@svgr/webpack", "description": "SVGR webpack loader.", - "version": "2.4.1", + "version": "3.0.0", "main": "lib/index.js", "repository": "git@github.com:smooth-code/svgr.git", "author": "Greg Bergé ", @@ -26,7 +26,7 @@ "@babel/plugin-transform-react-constant-elements": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", - "@svgr/core": "^2.4.1", + "@svgr/core": "^3.0.0", "loader-utils": "^1.1.0" }, "devDependencies": {