@vercel/build-utils 12.2.1 → 12.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 12.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Allow Node.js 24 behind env var feature flag ([#14160](https://github.com/vercel/vercel/pull/14160))
8
+
3
9
  ## 12.2.1
4
10
 
5
11
  ### Patch Changes
@@ -100,9 +100,19 @@ const BUN_VERSIONS = [
100
100
  })
101
101
  ];
102
102
  function getNodeVersionByMajor(major) {
103
- return NODE_VERSIONS.find((v) => v.major === major);
103
+ return getOptions().find((v) => v.major === major);
104
104
  }
105
105
  function getOptions() {
106
+ if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
107
+ return [
108
+ new import_types.NodeVersion({
109
+ major: 24,
110
+ range: "24.x",
111
+ runtime: "nodejs24.x"
112
+ }),
113
+ ...NODE_VERSIONS
114
+ ];
115
+ }
106
116
  return NODE_VERSIONS;
107
117
  }
108
118
  function isNodeVersionAvailable(version) {
package/dist/index.js CHANGED
@@ -23015,6 +23015,16 @@ var BUN_VERSIONS = [
23015
23015
  })
23016
23016
  ];
23017
23017
  function getOptions() {
23018
+ if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
23019
+ return [
23020
+ new NodeVersion({
23021
+ major: 24,
23022
+ range: "24.x",
23023
+ runtime: "nodejs24.x"
23024
+ }),
23025
+ ...NODE_VERSIONS
23026
+ ];
23027
+ }
23018
23028
  return NODE_VERSIONS;
23019
23029
  }
23020
23030
  function isNodeVersionAvailable(version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "12.2.1",
3
+ "version": "12.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",