Skip to content

Commit 1b65014

Browse files
authored
Merge pull request #791 from gregberge/upgrade-deps
chore: upgrade deps
2 parents e700943 + 290748b commit 1b65014

File tree

53 files changed

+24069
-30026
lines changed

Some content is hidden

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

53 files changed

+24069
-30026
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [12.x, 14.x, 16.x]
15+
node-version: [14.x, 16.x, 18.x]
1616
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1717

1818
steps:
1919
- name: Check out repository code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121

2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
cache: 'npm'
23+
uses: actions/setup-node@v3
2724

2825
- name: Use latest npm
2926
run: npm i -g npm@latest --registry=https://registry.npmjs.org
30-
if: ${{ matrix.node-version == '12.x' || matrix.node-version == '14.x' }}
27+
if: ${{ matrix.node-version == '14.x' }}
3128

3229
- name: Install dependencies
3330
run: npm ci

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

examples/mocha-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"test": "mocha --loader=./mock-loader.js example.test.js"
77
},
88
"devDependencies": {
9-
"mocha": "^10.0.0"
9+
"mocha": "^10.1.0"
1010
}
1111
}

examples/webpack/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"start": "webpack serve"
66
},
77
"devDependencies": {
8-
"@svgr/webpack": "^6.2.1",
8+
"@svgr/webpack": "^6.5.0",
99
"html-webpack-plugin": "^5.5.0",
10-
"webpack": "^5.64.0",
10+
"webpack": "^5.74.0",
1111
"webpack-cli": "^4.10.0",
12-
"webpack-dev-server": "^4.9.2"
12+
"webpack-dev-server": "^4.11.1"
1313
}
1414
}

package-lock.json

Lines changed: 7246 additions & 6620 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313
"test": "jest --runInBand"
1414
},
1515
"devDependencies": {
16-
"@babel/core": "^7.18.5",
17-
"@babel/preset-env": "^7.18.2",
18-
"@babel/preset-typescript": "^7.17.12",
16+
"@babel/core": "^7.19.6",
17+
"@babel/preset-env": "^7.19.4",
18+
"@babel/preset-typescript": "^7.18.6",
1919
"@rollup/plugin-json": "^4.1.0",
20-
"@types/jest": "^28.1.2",
21-
"@typescript-eslint/eslint-plugin": "^5.28.0",
22-
"@typescript-eslint/parser": "^5.28.0",
23-
"babel-jest": "^28.1.1",
20+
"@types/jest": "^29.2.0",
21+
"@typescript-eslint/eslint-plugin": "^5.41.0",
22+
"@typescript-eslint/parser": "^5.41.0",
23+
"babel-jest": "^29.2.2",
2424
"codecov": "^3.8.3",
2525
"conventional-github-releaser": "^3.1.5",
26-
"esbuild": "^0.14.46",
27-
"eslint": "^8.18.0",
28-
"eslint-plugin-react": "^7.30.0",
26+
"esbuild": "^0.15.12",
27+
"eslint": "^8.26.0",
28+
"eslint-plugin-react": "^7.31.10",
2929
"eslint-plugin-react-hooks": "^4.6.0",
30-
"jest": "^28.1.1",
31-
"lerna": "^5.1.4",
30+
"jest": "^29.2.2",
31+
"lerna": "^6.0.1",
3232
"react": "^18.2.0",
3333
"rollup": "^2.75.6",
3434
"rollup-plugin-dts": "^4.2.2",

packages/babel-plugin-add-jsx-attribute/src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('plugin', () => {
3232
elements: ['div'],
3333
attributes: [{ name: 'disabled', value: 'true' }],
3434
}),
35-
).toMatchInlineSnapshot(`"<div disabled=\\"true\\" />;"`)
35+
).toMatchInlineSnapshot(`"<div disabled="true" />;"`)
3636

3737
expect(
3838
testPlugin('<div />', {
@@ -83,7 +83,7 @@ describe('plugin', () => {
8383
},
8484
],
8585
}),
86-
).toMatchInlineSnapshot(`"<div><span foo=\\"bar\\" {...props} /></div>;"`)
86+
).toMatchInlineSnapshot(`"<div><span foo="bar" {...props} /></div>;"`)
8787
})
8888

8989
it('should replace attribute', () => {

packages/babel-plugin-replace-jsx-attribute-value/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('plugin', () => {
1616
testPlugin('<div something="cool" />', {
1717
values: [{ value: 'cool', newValue: 'not cool' }],
1818
}),
19-
).toMatchInlineSnapshot(`"<div something=\\"not cool\\" />;"`)
19+
).toMatchInlineSnapshot(`"<div something="not cool" />;"`)
2020

2121
expect(
2222
testPlugin('<div something="cool" />', {

packages/babel-plugin-svg-dynamic-title/src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('title plugin', () => {
2626
expect(
2727
testPlugin(`<svg><title>{"Hello"}</title></svg>`),
2828
).toMatchInlineSnapshot(
29-
`"<svg>{title === undefined ? <title id={titleId}>{\\"Hello\\"}</title> : title ? <title id={titleId}>{title}</title> : null}</svg>;"`,
29+
`"<svg>{title === undefined ? <title id={titleId}>{"Hello"}</title> : title ? <title id={titleId}>{title}</title> : null}</svg>;"`,
3030
)
3131
})
3232
it('should preserve any existing title attributes', () => {
@@ -73,7 +73,7 @@ describe('desc plugin', () => {
7373
expect(
7474
testPlugin(`<svg><desc>{"Hello"}</desc></svg>`, { tag: 'desc' }),
7575
).toMatchInlineSnapshot(
76-
`"<svg>{desc === undefined ? <desc id={descId}>{\\"Hello\\"}</desc> : desc ? <desc id={descId}>{desc}</desc> : null}</svg>;"`,
76+
`"<svg>{desc === undefined ? <desc id={descId}>{"Hello"}</desc> : desc ? <desc id={descId}>{desc}</desc> : null}</svg>;"`,
7777
)
7878
})
7979
it('should preserve any existing desc attributes', () => {

packages/babel-plugin-svg-em-dimensions/src/index.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,24 @@ describe('plugin', () => {
1414
it('replaces width / height attributes', () => {
1515
expect(
1616
testPlugin('<svg foo="bar" width="100" height="200" />'),
17-
).toMatchInlineSnapshot(
18-
`"<svg foo=\\"bar\\" width=\\"1em\\" height=\\"1em\\" />;"`,
19-
)
17+
).toMatchInlineSnapshot(`"<svg foo="bar" width="1em" height="1em" />;"`)
2018
})
2119

2220
it('adds theme if they are not present', () => {
2321
expect(testPlugin('<svg foo="bar" />')).toMatchInlineSnapshot(
24-
`"<svg foo=\\"bar\\" width=\\"1em\\" height=\\"1em\\" />;"`,
22+
`"<svg foo="bar" width="1em" height="1em" />;"`,
2523
)
2624
})
2725

2826
it('accepts numeric values', () => {
2927
expect(
3028
testPlugin('<svg foo="bar" />', { width: 24, height: 24 }),
31-
).toMatchInlineSnapshot(`"<svg foo=\\"bar\\" width={24} height={24} />;"`)
29+
).toMatchInlineSnapshot(`"<svg foo="bar" width={24} height={24} />;"`)
3230
})
3331

3432
it('accepts string values', () => {
3533
expect(
3634
testPlugin('<svg foo="bar" />', { width: '2em', height: '2em' }),
37-
).toMatchInlineSnapshot(
38-
`"<svg foo=\\"bar\\" width=\\"2em\\" height=\\"2em\\" />;"`,
39-
)
35+
).toMatchInlineSnapshot(`"<svg foo="bar" width="2em" height="2em" />;"`)
4036
})
4137
})

packages/babel-plugin-transform-react-native-svg/src/index.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ describe('plugin', () => {
2121
`import Svg from 'react-native-svg'; <svg><g /><div /></svg>;`,
2222
)
2323
expect(code).toMatchInlineSnapshot(`
24-
"import Svg, { G } from 'react-native-svg';
25-
/* SVGR has dropped some elements not supported by react-native-svg: div */
26-
27-
<Svg><G /></Svg>;"
28-
`)
24+
"import Svg, { G } from 'react-native-svg';
25+
/* SVGR has dropped some elements not supported by react-native-svg: div */
26+
<Svg><G /></Svg>;"
27+
`)
2928
})
3029
})

0 commit comments

Comments
 (0)