From 53d56c9d3405660e1def71a21046912a842eda0c Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Mon, 20 Jan 2025 14:13:53 -0700 Subject: [PATCH] feat: add Node.js 23 and update docs reference A recent patch update on 22x is required for vite/react router compatibility --- docs/pages/docs/providers/node.md | 1 + src/providers/node/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/pages/docs/providers/node.md b/docs/pages/docs/providers/node.md index 5c5119707..3d45e625b 100644 --- a/docs/pages/docs/providers/node.md +++ b/docs/pages/docs/providers/node.md @@ -25,6 +25,7 @@ The following major versions are available - `18` (Default) - `20` - `22` +- `23` The version can be overridden by diff --git a/src/providers/node/mod.rs b/src/providers/node/mod.rs index 4095bc07f..69d1c175d 100644 --- a/src/providers/node/mod.rs +++ b/src/providers/node/mod.rs @@ -22,9 +22,11 @@ mod nx; mod spa; mod turborepo; +// allows package manager versions to be updated without cutting a new nixpacks binary pub const NODE_OVERLAY: &str = "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz"; -const NODE_NIXPKGS_ARCHIVE: &str = "5624e1334b26ddc18da37e132b6fa8e93b481468"; +// unlike package managers, {node,bun} versions are pinned to a particular nixpacks release +const NODE_NIXPKGS_ARCHIVE: &str = "ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7"; // We need to use a specific commit hash for Node versions <16 since it is EOL in the latest Nix packages const NODE_LT_16_ARCHIVE: &str = "bf744fe90419885eefced41b3e5ae442d732712d";