Skip to content

Commit d321cd1

Browse files
authored
bump all deps (#430)
* bump all deps * fix ci
1 parent a316f45 commit d321cd1

File tree

11 files changed

+2456
-2025
lines changed

11 files changed

+2456
-2025
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
cache_keys:
4-
- &deps_cache_key 'v2-deps-node-14.16-{{ checksum "yarn.lock" }}'
4+
- &deps_cache_key 'v2-deps-node-14.17-{{ checksum "yarn.lock" }}'
55

66
commands:
77
install:
@@ -15,7 +15,7 @@ commands:
1515
jobs:
1616
test:
1717
docker:
18-
- image: cimg/node:14.16
18+
- image: cimg/node:14.17
1919
steps:
2020
- checkout
2121
- install
@@ -25,7 +25,7 @@ jobs:
2525

2626
deploy:
2727
docker:
28-
- image: cimg/node:14.16
28+
- image: cimg/node:14.17
2929
steps:
3030
- checkout
3131
- install
@@ -41,4 +41,4 @@ workflows:
4141
- deploy:
4242
requires: [test]
4343
filters:
44-
branches: { only: [ master ] }
44+
branches: { only: [ main ] }

.dependabot/config.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,10 @@ const react = {
188188

189189
module.exports = {
190190
root: true,
191-
parser: 'babel-eslint',
191+
parser: '@babel/eslint-parser',
192192
parserOptions: {
193193
ecmaVersion: 2018,
194+
requireConfigFile: false,
194195
sourceType: 'module',
195196
ecmaFeatures: {
196197
jsx: true

.github/dependabot.yml

Lines changed: 2 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,6 @@ updates:
33
- package-ecosystem: npm
44
directory: "/"
55
schedule:
6-
interval: daily
6+
interval: monthly
77
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: eslint
10-
versions:
11-
- 7.18.0
12-
- 7.19.0
13-
- 7.20.0
14-
- 7.21.0
15-
- 7.22.0
16-
- 7.23.0
17-
- 7.24.0
18-
- dependency-name: rollup
19-
versions:
20-
- 2.38.0
21-
- 2.38.1
22-
- 2.38.3
23-
- 2.38.4
24-
- 2.38.5
25-
- 2.39.0
26-
- 2.39.1
27-
- 2.40.0
28-
- 2.41.0
29-
- 2.41.1
30-
- 2.41.2
31-
- 2.41.3
32-
- 2.41.4
33-
- 2.41.5
34-
- 2.42.0
35-
- 2.42.2
36-
- 2.42.3
37-
- 2.42.4
38-
- 2.43.1
39-
- 2.44.0
40-
- 2.45.0
41-
- 2.45.1
42-
- dependency-name: y18n
43-
versions:
44-
- 4.0.1
45-
- 4.0.2
46-
- dependency-name: "@babel/plugin-transform-react-jsx"
47-
versions:
48-
- 7.12.12
49-
- 7.12.13
50-
- 7.12.16
51-
- 7.12.17
52-
- dependency-name: "@rollup/plugin-replace"
53-
versions:
54-
- 2.3.4
55-
- 2.4.0
56-
- 2.4.1
57-
- dependency-name: "@rollup/plugin-node-resolve"
58-
versions:
59-
- 11.1.0
60-
- 11.1.1
61-
- 11.2.0
62-
- dependency-name: "@testing-library/react"
63-
versions:
64-
- 11.2.3
65-
- 11.2.5
66-
- dependency-name: "@rollup/plugin-commonjs"
67-
versions:
68-
- 17.0.0
69-
- 17.1.0
70-
- dependency-name: node-notifier
71-
versions:
72-
- 8.0.1
73-
- dependency-name: lodash
74-
versions:
75-
- 4.17.20
8+

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
#### Features introduced / bugs fixed in this PR:
3+
Feature or bug details. Provide enough information to understand why the change is needed and what did you change.
4+
5+
#### Testing notes:
6+
Describe here how did you test your code. Any automated or manual tests?
7+
Please describe and provide screens of manual testing if possible.
8+

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts-prepend-node-path=true

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 14.16.1
1+
nodejs 14.17.0

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const NORMAL_TEST_FOLDERS = ['components', 'integration'];
88

99
const standardConfig = {
1010
...defaults,
11+
testEnvironment: 'jest-environment-jsdom',
1112
displayName: 'ReactDOM',
1213
testMatch: NORMAL_TEST_FOLDERS.map(testFolderPath),
1314
};

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-singleton-hook",
3-
"version": "3.2.1",
3+
"version": "3.2.2",
44
"description": "Share custom hook state across all components",
55
"keywords": [
66
"react",
@@ -48,37 +48,37 @@
4848
},
4949
"dependencies": {},
5050
"devDependencies": {
51-
"@babel/cli": "^7.14.3",
52-
"@babel/core": "^7.14.3",
53-
"@babel/plugin-proposal-object-rest-spread": "^7.14.2",
54-
"@babel/plugin-transform-react-display-name": "^7.14.2",
55-
"@babel/plugin-transform-react-jsx": "^7.14.3",
56-
"@babel/preset-env": "^7.14.2",
57-
"@rollup/plugin-commonjs": "^19.0.0",
58-
"@rollup/plugin-node-resolve": "^13.0.0",
59-
"@rollup/plugin-replace": "^2.4.2",
60-
"@testing-library/jest-dom": "^5.12.0",
61-
"@testing-library/jest-native": "^4.0.1",
62-
"@testing-library/react": "^11.2.7",
63-
"@testing-library/react-hooks": "^6.0.0",
64-
"@testing-library/react-native": "^7.2.0",
65-
"babel-eslint": "^10.1.0",
66-
"babel-jest": "^26.6.3",
51+
"@babel/cli": "^7.16.0",
52+
"@babel/core": "^7.16.5",
53+
"@babel/eslint-parser": "^7.16.5",
54+
"@babel/plugin-proposal-object-rest-spread": "^7.16.5",
55+
"@babel/plugin-transform-react-display-name": "^7.16.5",
56+
"@babel/plugin-transform-react-jsx": "^7.16.5",
57+
"@babel/preset-env": "^7.16.5",
58+
"@rollup/plugin-commonjs": "^21.0.1",
59+
"@rollup/plugin-node-resolve": "^13.1.1",
60+
"@rollup/plugin-replace": "^3.0.0",
61+
"@testing-library/jest-dom": "^5.16.1",
62+
"@testing-library/jest-native": "^4.0.4",
63+
"@testing-library/react": "^12.1.2",
64+
"@testing-library/react-hooks": "^7.0.2",
65+
"@testing-library/react-native": "^9.0.0",
66+
"babel-jest": "^27.4.5",
6767
"cross-env": "^7.0.3",
6868
"es3ify": "^0.2.2",
69-
"eslint": "^7.27.0",
70-
"eslint-plugin-import": "^2.23.3",
71-
"eslint-plugin-react": "^7.23.2",
72-
"eslint-plugin-react-hooks": "^4.2.0",
73-
"glob": "^7.1.7",
74-
"jest": "^26.6.3",
75-
"npm-check-updates": "^11.5.13",
69+
"eslint": "^8.4.1",
70+
"eslint-plugin-import": "^2.25.3",
71+
"eslint-plugin-react": "^7.27.1",
72+
"eslint-plugin-react-hooks": "^4.3.0",
73+
"glob": "^7.2.0",
74+
"jest": "^27.4.5",
75+
"npm-check-updates": "^12.0.3",
7676
"react": "^16.8.6",
7777
"react-dom": "^17.0.2",
78-
"react-native": "^0.64.1",
78+
"react-native": "^0.66.4",
7979
"react-test-renderer": "^17.0.2",
8080
"rimraf": "^3.0.2",
81-
"rollup": "^2.49.0",
81+
"rollup": "^2.61.1",
8282
"rollup-plugin-babel": "^4.4.0",
8383
"rollup-plugin-terser": "^7.0.2"
8484
},

rollup.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const config = {
1313
external: Object.keys(pkg.peerDependencies || {}).concat('react-dom'),
1414
output: {
1515
format: 'umd',
16+
exports: 'named',
1617
name: 'ReactSingletonHook',
1718
globals: {
1819
react: 'React',
@@ -26,12 +27,10 @@ const config = {
2627
runtimeHelpers: true
2728
}),
2829
replace({
29-
'process.env.NODE_ENV': JSON.stringify(env)
30+
'process.env.NODE_ENV': JSON.stringify(env),
31+
preventAssignment: true,
3032
}),
3133
commonjs({
32-
namedExports: {
33-
'node_modules/react-dom/index.js': ['unstable_batchedUpdates']
34-
}
3534
})
3635
]
3736
};

0 commit comments

Comments
 (0)