Skip to content

chore: bump deps and drop tests for node 10 #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Feb 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ version: 2.1

anchors:
- &node-version-enum
- '10.24'
- '12.22'
- '14.17'
- '16.8'
- '14.19'
- '16.13'
- '17.4'
- &webpack-version-enum
- '4'
- '5'
- &node-version-param
node-version:
default: '14.17'
default: '16.13'
enum: *node-version-enum
type: enum
- &webpack-version-param
webpack-version:
default: '4'
default: '5'
enum: *webpack-version-enum
type: enum

Expand All @@ -33,16 +33,9 @@ commands:
- run:
name: Install project dependencies
command: |-
# Ignore engines mismatch for Node.js v10.x
extra_args=""
if [[ "<< parameters.node-version >>" == 10* ]]; then
extra_args+="--ignore-engines"
fi

yarn install \
--cache-folder ~/.cache/yarn \
--frozen-lockfile \
$extra_args
--frozen-lockfile
- save_cache:
key: node-deps-v1-<< parameters.node-version >>-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
Expand Down Expand Up @@ -85,6 +78,19 @@ jobs:
- checkout
- install-deps:
node-version: << parameters.node-version >>
- when:
condition:
equal:
- '4'
- << parameters.webpack-version >>
steps:
- run:
name: Use legacy OpenSSL provider if necessary
command: |-
if node scripts/node-version.js; then
echo "export NODE_OPTIONS=--openssl-legacy-provider" >> $BASH_ENV
source $BASH_ENV
fi
- run:
name: Run Tests
command: |
Expand Down
6 changes: 3 additions & 3 deletions examples/create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@testing-library/react": "^12.1.0",
"customize-cra": "^1.0.0",
"react-app-rewired": "^2.1.8",
"react-refresh": "^0.10.0",
"react-refresh": "^0.11.0",
"react-scripts": "3.4.4"
},
"scripts": {
Expand All @@ -22,8 +22,8 @@
"eject": "react-app-rewired eject"
},
"resolutions": {
"browserslist": "4.17.0",
"postcss": "7.0.36",
"browserslist": "4.19.1",
"postcss": "8.4.6",
"webpack": "4.46.0"
},
"eslintConfig": {
Expand Down
272 changes: 129 additions & 143 deletions examples/create-react-app/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/flow-with-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.0",
"babel-loader": "^8.2.2",
"cross-env": "^7.0.3",
"flow-bin": "^0.159.0",
"flow-bin": "^0.171.0",
"html-webpack-plugin": "^5.3.2",
"react-refresh": "^0.10.0",
"react-refresh": "^0.11.0",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.1.1"
Expand Down
2,443 changes: 1,275 additions & 1,168 deletions examples/flow-with-babel/yarn.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/typescript-with-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"@types/react-dom": "^17.0.9",
"babel-loader": "^8.2.2",
"cross-env": "^7.0.3",
"fork-ts-checker-webpack-plugin": "^6.3.3",
"fork-ts-checker-webpack-plugin": "^7.1.0",
"html-webpack-plugin": "^5.3.2",
"react-refresh": "^0.10.0",
"typescript": "4.4.3",
"react-refresh": "^0.11.0",
"typescript": "4.5.5",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.1.1"
Expand Down
2,213 changes: 1,153 additions & 1,060 deletions examples/typescript-with-babel/yarn.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/typescript-with-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"@types/react-dom": "^17.0.9",
"core-js": "^3.17.3",
"cross-env": "^7.0.3",
"fork-ts-checker-webpack-plugin": "^6.3.3",
"fork-ts-checker-webpack-plugin": "^7.1.0",
"html-webpack-plugin": "^5.3.2",
"react-refresh": "^0.10.0",
"react-refresh": "^0.11.0",
"swc-loader": "^0.1.14",
"typescript": "4.4.3",
"typescript": "4.5.5",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.1.1"
Expand Down
Loading