mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2026-08-10 05:08:22 -05:00
chore(deps): upgrade to Node 24 and fix broken dependencies (#833)
- Downgrade webpack to v4 for razzle 4.2.18 compatibility - Downgrade webpack-dev-server to ~3.11.0 (razzle peer dep) - Downgrade html-webpack-plugin to ~4.5.2 and mini-css-extract-plugin to ^1.6.2 - Remove outdated resolutions block (string-width, table were conflicting) - Add src/setupTests.js to suppress React Router v6->v7 async deprecation warnings - Update .nvmrc, Dockerfile, and workflows to Node v24.18.0
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # 4.0.1
|
||||
with:
|
||||
node-version: v24.11.1
|
||||
node-version: v24.18.0
|
||||
- name: Install Dependencies, Test, and Build
|
||||
run: |
|
||||
yarn install --frozen-lockfile --check-files --network-timeout 600000
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # 4.0.1
|
||||
with:
|
||||
node-version: v24.11.1
|
||||
node-version: v24.18.0
|
||||
- name: Install Dependencies, Test, and Build
|
||||
run: |
|
||||
yarn install --frozen-lockfile --check-files --network-timeout 600000
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
FROM node:24.11.1-alpine AS node-build
|
||||
FROM node:24.18.0-alpine AS node-build
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
@@ -8,7 +8,7 @@ RUN yarn install --frozen-lockfile --check-files --network-timeout 600000
|
||||
RUN yarn build --noninteractive
|
||||
RUN yarn install --frozen-lockfile --check-files --production --modules-folder node_modules_prod --network-timeout 600000
|
||||
|
||||
FROM node:24.11.1-alpine
|
||||
FROM node:24.18.0-alpine
|
||||
WORKDIR /usr/src/app
|
||||
ENV NODE_ENV production
|
||||
RUN mkdir -p /node_modules
|
||||
|
||||
+4
-8
@@ -45,20 +45,16 @@
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-promise": "^6.6.0",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"html-webpack-plugin": "^5.6.4",
|
||||
"html-webpack-plugin": "~4.5.2",
|
||||
"markdownlint-cli": "^0.48.0",
|
||||
"mini-css-extract-plugin": "^2.10.2",
|
||||
"mini-css-extract-plugin": "^1.6.2",
|
||||
"prettier": "^3.8.2",
|
||||
"razzle": "^4.2.18",
|
||||
"razzle-dev-utils": "^4.2.18",
|
||||
"react-test-renderer": "^18.3.1",
|
||||
"stylelint": "^16.25.0",
|
||||
"url": "^0.11.4",
|
||||
"webpack": "^5.106.1",
|
||||
"webpack-dev-server": "^5.2.2"
|
||||
},
|
||||
"resolutions": {
|
||||
"string-width": "4.2.3",
|
||||
"table": "6.8.0"
|
||||
"webpack": "^4.46.0",
|
||||
"webpack-dev-server": "~3.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// src/setupTests.js
|
||||
// Suppress React Router v6->v7 future flag deprecation warnings
|
||||
// These fire async after tests complete and cause "Cannot log after tests are done" warnings
|
||||
|
||||
const originalWarn = console.warn;
|
||||
console.warn = (...args) => {
|
||||
if (
|
||||
typeof args[0] === 'string' &&
|
||||
args[0].includes('React Router Future Flag Warning')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
originalWarn.apply(console, args);
|
||||
};
|
||||
Reference in New Issue
Block a user