Skip to content

Commit 52a1079

Browse files
committed
v8.0.0
1 parent 095f021 commit 52a1079

File tree

41 files changed

+217
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+217
-24
lines changed

CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
9+
### Bug Fixes
10+
11+
* parseObject error causes website broken ([05f2946](https://github.com/gregberge/svgr/commit/05f2946d90b194eac17d51ca0562d13e9ed0c995))
12+
13+
14+
### Features
15+
16+
* add snake_case filename option ([#857](https://github.com/gregberge/svgr/issues/857)) ([428b0c7](https://github.com/gregberge/svgr/commit/428b0c7f4c5205bb67ae3e9e7c7e819ec3fc03ba))
17+
* make index template more flexible ([#861](https://github.com/gregberge/svgr/issues/861)) ([003009c](https://github.com/gregberge/svgr/commit/003009c7b234cfe66686b629d3251edb8d46c759))
18+
* **types:** change `SVGProps` from import to import type ([#853](https://github.com/gregberge/svgr/issues/853)) ([095f021](https://github.com/gregberge/svgr/commit/095f0216288ccb5b96a75f154fe3aead074bfa99))
19+
20+
21+
### BREAKING CHANGES
22+
23+
* index template now receives an array of objects containing both the created
24+
component path (`path`) and the original SVG path (`originalPath`)
25+
26+
27+
28+
29+
630
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
731

832

examples/mocha-esm/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/mocha-esm-example
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/mocha-esm-example

examples/mocha-esm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"devDependencies": {
99
"mocha": "^10.2.0"
1010
},
11-
"version": "7.0.0"
11+
"version": "8.0.0"
1212
}

examples/webpack/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/webpack-example
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/webpack-example

examples/webpack/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"start": "webpack serve"
66
},
77
"devDependencies": {
8-
"@svgr/webpack": "^7.0.0",
8+
"@svgr/webpack": "^8.0.0",
99
"html-webpack-plugin": "^5.5.0",
10+
"url-loader": "^4.1.1",
1011
"webpack": "^5.76.3",
1112
"webpack-cli": "^5.0.1",
12-
"webpack-dev-server": "^4.13.1",
13-
"url-loader": "^4.1.1"
13+
"webpack-dev-server": "^4.13.1"
1414
},
15-
"version": "7.0.0"
15+
"version": "8.0.0"
1616
}

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "2.9.0",
3-
"version": "7.0.0",
3+
"version": "8.0.0",
44
"npmClient": "pnpm",
55
"useWorkspaces": true
66
}

packages/babel-plugin-add-jsx-attribute/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-add-jsx-attribute
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-add-jsx-attribute

packages/babel-plugin-add-jsx-attribute/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-add-jsx-attribute",
33
"description": "Add JSX attribute",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-remove-jsx-attribute/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-remove-jsx-attribute
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-remove-jsx-attribute

packages/babel-plugin-remove-jsx-attribute/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-remove-jsx-attribute",
33
"description": "Remove JSX attribute",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-remove-jsx-empty-expression/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-remove-jsx-empty-expression
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-remove-jsx-empty-expression

packages/babel-plugin-remove-jsx-empty-expression/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-remove-jsx-empty-expression",
33
"description": "Remove JSX empty expression",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-replace-jsx-attribute-value/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-replace-jsx-attribute-value
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-replace-jsx-attribute-value

packages/babel-plugin-replace-jsx-attribute-value/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-replace-jsx-attribute-value",
33
"description": "Replace JSX attribute value",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-svg-dynamic-title/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-svg-dynamic-title
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-svg-dynamic-title

packages/babel-plugin-svg-dynamic-title/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-svg-dynamic-title",
33
"description": "Transform SVG by adding a dynamic title element",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-svg-em-dimensions/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-svg-em-dimensions
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-svg-em-dimensions

packages/babel-plugin-svg-em-dimensions/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-svg-em-dimensions",
33
"description": "Transform SVG to use em-based dimensions",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-transform-react-native-svg/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-plugin-transform-react-native-svg
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-plugin-transform-react-native-svg

packages/babel-plugin-transform-react-native-svg/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-transform-react-native-svg",
33
"description": "Transform DOM elements into react-native-svg components",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-plugin-transform-svg-component/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
9+
### Features
10+
11+
* **types:** change `SVGProps` from import to import type ([#853](https://github.com/gregberge/svgr/issues/853)) ([095f021](https://github.com/gregberge/svgr/commit/095f0216288ccb5b96a75f154fe3aead074bfa99))
12+
13+
14+
15+
16+
617
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
718

819

packages/babel-plugin-transform-svg-component/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-plugin-transform-svg-component",
33
"description": "Transform SVG into component",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/babel-preset/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/babel-preset
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/babel-preset

packages/babel-preset/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/babel-preset",
33
"description": "SVGR preset that apply transformations from config",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/cli/CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
9+
### Features
10+
11+
* add snake_case filename option ([#857](https://github.com/gregberge/svgr/issues/857)) ([428b0c7](https://github.com/gregberge/svgr/commit/428b0c7f4c5205bb67ae3e9e7c7e819ec3fc03ba))
12+
* make index template more flexible ([#861](https://github.com/gregberge/svgr/issues/861)) ([003009c](https://github.com/gregberge/svgr/commit/003009c7b234cfe66686b629d3251edb8d46c759))
13+
* **types:** change `SVGProps` from import to import type ([#853](https://github.com/gregberge/svgr/issues/853)) ([095f021](https://github.com/gregberge/svgr/commit/095f0216288ccb5b96a75f154fe3aead074bfa99))
14+
15+
16+
### BREAKING CHANGES
17+
18+
* index template now receives an array of objects containing both the created
19+
component path (`path`) and the original SVG path (`originalPath`)
20+
21+
22+
23+
24+
625
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
726

827

packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/cli",
33
"description": "SVGR command line.",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"repository": "https://github.com/gregberge/svgr/tree/main/packages/cli",
66
"author": "Greg Bergé <[email protected]>",
77
"publishConfig": {

packages/core/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
9+
### Features
10+
11+
* add snake_case filename option ([#857](https://github.com/gregberge/svgr/issues/857)) ([428b0c7](https://github.com/gregberge/svgr/commit/428b0c7f4c5205bb67ae3e9e7c7e819ec3fc03ba))
12+
13+
14+
15+
16+
617
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
718

819

packages/core/package.json

+1-1
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": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

packages/hast-util-to-babel-ast/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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+
# [8.0.0](https://github.com/gregberge/svgr/compare/v7.0.0...v8.0.0) (2023-05-09)
7+
8+
**Note:** Version bump only for package @svgr/hast-util-to-babel-ast
9+
10+
11+
12+
13+
614
# [7.0.0](https://github.com/gregberge/svgr/compare/v6.5.1...v7.0.0) (2023-03-24)
715

816
**Note:** Version bump only for package @svgr/hast-util-to-babel-ast

packages/hast-util-to-babel-ast/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svgr/hast-util-to-babel-ast",
33
"description": "Transform HAST to Babel AST (JSX)",
4-
"version": "7.0.0",
4+
"version": "8.0.0",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"exports": {

0 commit comments

Comments
 (0)