@vercel/build-utils 13.1.2 → 13.2.0
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 +6 -0
- package/dist/fs/node-version.js +5 -10
- package/dist/index.js +5 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/fs/node-version.js
CHANGED
|
@@ -45,6 +45,11 @@ var import_types = require("../types");
|
|
|
45
45
|
var import_errors = require("../errors");
|
|
46
46
|
var import_debug = __toESM(require("../debug"));
|
|
47
47
|
const NODE_VERSIONS = [
|
|
48
|
+
new import_types.NodeVersion({
|
|
49
|
+
major: 24,
|
|
50
|
+
range: "24.x",
|
|
51
|
+
runtime: "nodejs24.x"
|
|
52
|
+
}),
|
|
48
53
|
new import_types.NodeVersion({
|
|
49
54
|
major: 22,
|
|
50
55
|
range: "22.x",
|
|
@@ -103,16 +108,6 @@ function getNodeVersionByMajor(major) {
|
|
|
103
108
|
return getOptions().find((v) => v.major === major);
|
|
104
109
|
}
|
|
105
110
|
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
|
-
}
|
|
116
111
|
return NODE_VERSIONS;
|
|
117
112
|
}
|
|
118
113
|
function isNodeVersionAvailable(version) {
|
package/dist/index.js
CHANGED
|
@@ -22967,6 +22967,11 @@ var BunVersion = class extends Version {
|
|
|
22967
22967
|
|
|
22968
22968
|
// src/fs/node-version.ts
|
|
22969
22969
|
var NODE_VERSIONS = [
|
|
22970
|
+
new NodeVersion({
|
|
22971
|
+
major: 24,
|
|
22972
|
+
range: "24.x",
|
|
22973
|
+
runtime: "nodejs24.x"
|
|
22974
|
+
}),
|
|
22970
22975
|
new NodeVersion({
|
|
22971
22976
|
major: 22,
|
|
22972
22977
|
range: "22.x",
|
|
@@ -23022,16 +23027,6 @@ var BUN_VERSIONS = [
|
|
|
23022
23027
|
})
|
|
23023
23028
|
];
|
|
23024
23029
|
function getOptions() {
|
|
23025
|
-
if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
|
|
23026
|
-
return [
|
|
23027
|
-
new NodeVersion({
|
|
23028
|
-
major: 24,
|
|
23029
|
-
range: "24.x",
|
|
23030
|
-
runtime: "nodejs24.x"
|
|
23031
|
-
}),
|
|
23032
|
-
...NODE_VERSIONS
|
|
23033
|
-
];
|
|
23034
|
-
}
|
|
23035
23030
|
return NODE_VERSIONS;
|
|
23036
23031
|
}
|
|
23037
23032
|
function isNodeVersionAvailable(version) {
|