From 4fb1cf059e4ed929741facb5bcf64bac7ea3bd86 Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Tue, 17 Mar 2026 13:24:55 -0400 Subject: [PATCH] feat: update nodejs 22 references to 24 --- .devcontainer/devcontainer.json | 2 +- Dockerfile | 6 +++--- flake.nix | 2 +- nix/package.nix | 6 +++--- package.json | 3 +-- pnpm-lock.yaml | 33 +++++++++++++++++++++++---------- 6 files changed, 32 insertions(+), 20 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c01d23a..3dff871 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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" diff --git a/Dockerfile b/Dockerfile index ce3c324..f009f18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/flake.nix b/flake.nix index 1591c12..c66e15d 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/nix/package.nix b/nix/package.nix index b0b037c..2429fa1 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -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 diff --git a/package.json b/package.json index 7046599..6f060c1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3ec5bab..d0b5593 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: {}