feat: update nodejs 22 references to 24

This commit is contained in:
Aarnav Tale
2026-03-17 13:24:55 -04:00
parent b1361e9062
commit 4fb1cf059e
6 changed files with 32 additions and 20 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "22.18"
"version": "24"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.25.1"
+3 -3
View File
@@ -25,7 +25,7 @@ RUN chmod +x /bin/hp_healthcheck
# Folder needs to exist for later stages
RUN mkdir -p /var/lib/headplane/agent
FROM --platform=$BUILDPLATFORM node:22.16-slim AS js-base
FROM --platform=$BUILDPLATFORM node:24-slim AS js-base
WORKDIR /run
RUN corepack enable
@@ -40,7 +40,7 @@ COPY . .
ARG HEADPLANE_VERSION
RUN HEADPLANE_VERSION=$HEADPLANE_VERSION ./build.sh --app
FROM gcr.io/distroless/nodejs22-debian12:latest AS final
FROM gcr.io/distroless/nodejs24-debian13:latest AS final
COPY --from=js-base /run/build /app/build
COPY --from=js-base /run/drizzle /app/drizzle
COPY --from=js-base /run/node_modules /app/node_modules
@@ -59,7 +59,7 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
WORKDIR /app
CMD [ "/app/build/server/index.js" ]
FROM node:22-alpine AS debug-shell
FROM node:24-alpine AS debug-shell
RUN apk add --no-cache bash curl
COPY --from=js-base /run/build /app/build
+1 -1
View File
@@ -54,7 +54,7 @@ rec {
'';
packages = [
pkgs.go
pkgs.nodejs-slim_22
pkgs.nodejs-slim_24
pkgs.pnpm_10
pkgs.typescript-language-server
pkgs.mise
+3 -3
View File
@@ -3,7 +3,7 @@
headplane-ssh-wasm,
lib,
makeWrapper,
nodejs_22,
nodejs_24,
pnpm_10,
stdenv,
}: let
@@ -19,7 +19,7 @@ in
nativeBuildInputs = [
makeWrapper
nodejs_22
nodejs_24
pnpm_10.configHook
git
];
@@ -47,7 +47,7 @@ in
cp -r node_modules $out/share/headplane/
cp -r drizzle $out/share/headplane/
sed -i "s;$PWD;../..;" $out/share/headplane/build/server/index.js
makeWrapper ${lib.getExe nodejs_22} $out/bin/headplane \
makeWrapper ${lib.getExe nodejs_24} $out/bin/headplane \
--chdir $out/share/headplane \
--add-flags $out/share/headplane/build/server/index.js
runHook postInstall
+1 -2
View File
@@ -20,8 +20,7 @@
"format": "oxfmt"
},
"dependencies": {
"@base-ui/react": "^1.2.0",
"@libsql/client": "0.17.0"
"@base-ui/react": "^1.2.0"
},
"devDependencies": {
"@dnd-kit/core": "^6.3.1",
+23 -10
View File
@@ -16,9 +16,6 @@ importers:
'@base-ui/react':
specifier: ^1.2.0
version: 1.2.0(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
'@libsql/client':
specifier: 0.17.0
version: 0.17.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)
devDependencies:
'@dnd-kit/core':
specifier: ^6.3.1
@@ -6273,10 +6270,12 @@ snapshots:
- bufferutil
- encoding
- utf-8-validate
optional: true
'@libsql/core@0.17.0':
dependencies:
js-base64: 3.7.8
optional: true
'@libsql/darwin-arm64@0.5.22':
optional: true
@@ -6294,6 +6293,7 @@ snapshots:
- bufferutil
- encoding
- utf-8-validate
optional: true
'@libsql/isomorphic-ws@0.1.5(bufferutil@4.0.9)(utf-8-validate@5.0.10)':
dependencies:
@@ -6302,6 +6302,7 @@ snapshots:
transitivePeerDependencies:
- bufferutil
- utf-8-validate
optional: true
'@libsql/linux-arm-gnueabihf@0.5.22':
optional: true
@@ -6335,7 +6336,8 @@ snapshots:
'@tybys/wasm-util': 0.10.1
optional: true
'@neon-rs/load@0.0.4': {}
'@neon-rs/load@0.0.4':
optional: true
'@oslojs/asn1@1.0.0':
dependencies:
@@ -7975,7 +7977,8 @@ snapshots:
'@types/ws@8.18.1':
dependencies:
'@types/node': 25.3.1
'@types/node': 25.5.0
optional: true
'@typescript/native-preview-darwin-arm64@7.0.0-dev.20260225.1':
optional: true
@@ -8535,6 +8538,7 @@ snapshots:
node-fetch: 2.7.0
transitivePeerDependencies:
- encoding
optional: true
cross-spawn@7.0.6:
dependencies:
@@ -8546,7 +8550,8 @@ snapshots:
csstype@3.2.3: {}
data-uri-to-buffer@4.0.1: {}
data-uri-to-buffer@4.0.1:
optional: true
debug@4.4.3:
dependencies:
@@ -8577,7 +8582,8 @@ snapshots:
dequal@2.0.3: {}
detect-libc@2.0.2: {}
detect-libc@2.0.2:
optional: true
detect-libc@2.1.2: {}
@@ -8831,6 +8837,7 @@ snapshots:
dependencies:
node-domexception: 1.0.0
web-streams-polyfill: 3.3.3
optional: true
file-uri-to-path@1.0.0:
optional: true
@@ -8855,6 +8862,7 @@ snapshots:
formdata-polyfill@4.0.10:
dependencies:
fetch-blob: 3.2.0
optional: true
fs-constants@1.0.0: {}
@@ -9136,6 +9144,7 @@ snapshots:
'@libsql/linux-x64-gnu': 0.5.22
'@libsql/linux-x64-musl': 0.5.22
'@libsql/win32-x64-msvc': 0.5.22
optional: true
lightningcss-android-arm64@1.31.1:
optional: true
@@ -9318,7 +9327,8 @@ snapshots:
semver: 7.7.4
optional: true
node-domexception@1.0.0: {}
node-domexception@1.0.0:
optional: true
node-fetch@2.7.0:
dependencies:
@@ -9329,6 +9339,7 @@ snapshots:
data-uri-to-buffer: 4.0.1
fetch-blob: 3.2.0
formdata-polyfill: 4.0.10
optional: true
node-gyp-build@4.8.4:
optional: true
@@ -9478,7 +9489,8 @@ snapshots:
process@0.11.10: {}
promise-limit@2.7.0: {}
promise-limit@2.7.0:
optional: true
proper-lockfile@4.1.2:
dependencies:
@@ -10376,7 +10388,8 @@ snapshots:
w3c-keyname@2.2.8: {}
web-streams-polyfill@3.3.3: {}
web-streams-polyfill@3.3.3:
optional: true
webidl-conversions@3.0.1: {}