Skip to content

Commit 686f7e6

Browse files
committed
[C] Roll back node 20 -> 16
1 parent 7234304 commit 686f7e6

File tree

7 files changed

+10389
-15006
lines changed

7 files changed

+10389
-15006
lines changed

.github/actions/setup-node/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Setup Node.js"
22
runs:
33
using: "composite"
44
steps:
5-
- name: "Install Node 20.x"
5+
- name: "Install Node"
66
uses: actions/setup-node@v4
77
with:
88
node-version-file: "./client/package.json"

.github/workflows/continuous_integration.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- name: "Checkout code"
2424
uses: actions/checkout@v3
2525

26-
- run: corepack enable
2726
- uses: ./.github/actions/setup-node
2827

2928
- name: "Lint client"
@@ -75,7 +74,6 @@ jobs:
7574

7675
- uses: ./.github/actions/setup-ruby
7776

78-
- run: corepack enable
7977
- uses: ./.github/actions/setup-node
8078

8179
- uses: ./.github/actions/setup-elasticsearch

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.18.1
1+
16.20.2

client/docker/set_up_local.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ ROOT="$(realpath "$(dirname "$0")/..")"
66

77
cd "$ROOT"
88

9-
corepack enable
10-
119
yarn

client/package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"buffer": "^6.0.3",
6565
"classnames": "^2.5.1",
6666
"connect": "^3.7.0",
67-
"cookie": "1.0.2",
67+
"cookie": "0.7.2",
6868
"date-fns": "^4.1.0",
6969
"dotenv": "^16.5.0",
7070
"fast-copy": "^3.0.2",
@@ -76,14 +76,15 @@
7676
"http-shutdown": "^1.2.2",
7777
"i18next": "^25.0.2",
7878
"immutability-helper": "^3.x",
79+
"isomorphic-fetch": "^3.0.0",
7980
"js-beautify": "^1.15.4",
8081
"js-cookie": "^3.0.5",
8182
"lodash": "^4.17.21",
8283
"mammoth": "^1.9.0",
8384
"minimist": "^1.2.8",
8485
"mkdirp": "^3.0.1",
8586
"morgan": "^1.10.0",
86-
"node-emoji": "^2.2.0",
87+
"node-emoji": "^1.11.0",
8788
"npm-run-all": "^4.1.5",
8889
"pretty-error": "^4.0.0",
8990
"prop-types": "^15.8.1",
@@ -98,7 +99,7 @@
9899
"react-ga4": "^2.1.0",
99100
"react-helmet-async": "^1",
100101
"react-i18next": "^15.x",
101-
"react-json-tree": "^0.x",
102+
"react-json-tree": "^0.18.0",
102103
"react-redux": "^9.x",
103104
"react-router": "^5.x",
104105
"react-router-config": "^5.x",
@@ -114,7 +115,7 @@
114115
"redux-actions": "^2.0",
115116
"redux-promise": "^0.6",
116117
"serialize-javascript": "^6.0.2",
117-
"serve-static": "^2.2.0",
118+
"serve-static": "^1.16.2",
118119
"slate": "^0.114.0",
119120
"slate-dom": "^0.114.0",
120121
"slate-history": "^0.113.1",
@@ -126,7 +127,7 @@
126127
"text-mask-addons": "^3.8.0",
127128
"tiny-invariant": "^1.3.3",
128129
"tinycolor2": "^1.6.0",
129-
"tus-js-client": "^4.3.1",
130+
"tus-js-client": "^3.1.3",
130131
"use-resize-observer": "^9.1.0",
131132
"usehooks-ts": "^3.1.1",
132133
"uuid": "^11.x",
@@ -141,18 +142,18 @@
141142
"@babel/preset-env": "^7.27.1",
142143
"@babel/preset-react": "^7.27.1",
143144
"@babel/register": "^7.27.1",
144-
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
145+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.16",
145146
"@types/react": "^18.x",
146147
"@types/react-dom": "^18.x",
147148
"babel-eslint": "^10",
148-
"babel-loader": "^10.x",
149+
"babel-loader": "^9.x",
149150
"babel-plugin-module-resolver": "^5.0.2",
150151
"cfonts": "^3.3.0",
151152
"circular-dependency-plugin": "^5.2.2",
152-
"copy-webpack-plugin": "^13.0.0",
153+
"copy-webpack-plugin": "^11.0.0",
153154
"core-js": "3.42.0",
154-
"css-loader": "^7.x",
155-
"css-minimizer-webpack-plugin": "^7.0.0",
155+
"css-loader": "^6.x",
156+
"css-minimizer-webpack-plugin": "^5.0.0",
156157
"depcheck": "^1.4.7",
157158
"eslint": "^6.x",
158159
"eslint-config-airbnb": "18.x",
@@ -162,34 +163,34 @@
162163
"eslint-plugin-prettier": "^3.0.1",
163164
"eslint-plugin-react": "^7.13.0",
164165
"eslint-plugin-react-hooks": "^4.2.0",
165-
"lint-staged": "^15.5.1",
166+
"lint-staged": "^14.x",
166167
"mini-css-extract-plugin": "^2.9.2",
167168
"nodemon": "^3.1.10",
168169
"path-browserify": "^1.0.1",
169170
"prettier": "^1.5.2",
170171
"react-refresh": "^0.17.0",
171172
"regenerator-runtime": "^0.14.1",
172-
"rimraf": "^6.0.1",
173+
"rimraf": "^5.x",
173174
"string-replace-loader": "^3.x",
174-
"style-loader": "^4.x",
175+
"style-loader": "^3.x",
175176
"terser-webpack-plugin": "^5.3.14",
176177
"transform-imports": "^2.2.0",
177178
"true-case-path": "^2.2.1",
178179
"wait-on": "^8.0.3",
179180
"webpack": "^5.x",
180-
"webpack-cli": "^6.x",
181-
"webpack-dev-server": "^5.x",
182-
"webpack-merge": "^6.x",
181+
"webpack-cli": "^5.x",
182+
"webpack-dev-server": "^4.x",
183+
"webpack-merge": "^5.x",
183184
"webpack-node-externals": "^3.0.0"
184185
},
185186
"engines": {
186-
"node": "20.x",
187-
"yarn": "4.x"
187+
"node": "16.x",
188+
"yarn": "1.x"
188189
},
189-
"packageManager": "yarn@4.9.1",
190+
"packageManager": "yarn@1.22.22",
190191
"browserslist": [
191192
"defaults",
192193
"not IE 11",
193-
"node >= 20"
194+
"node >= 16"
194195
]
195196
}

client/src/api/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import isPlainObject from "lodash/isPlainObject";
33
import has from "lodash/has";
44
import LowLevelApiClient from "./LowLevelApiClient";
55

6+
require("isomorphic-fetch");
7+
68
export default class ApiClient {
79
constructor() {
810
this.client = new LowLevelApiClient();

0 commit comments

Comments
 (0)