@vercel/build-utils 12.2.1 → 12.2.3

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,17 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 12.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Add Elysia framework ([#14164](https://github.com/vercel/vercel/pull/14164))
8
+
9
+ ## 12.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Allow Node.js 24 behind env var feature flag ([#14160](https://github.com/vercel/vercel/pull/14160))
14
+
3
15
  ## 12.2.1
4
16
 
5
17
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * List of backend frameworks supported by the experimental backends feature
3
3
  */
4
- export declare const BACKEND_FRAMEWORKS: readonly ["express", "hono", "h3", "nestjs", "fastify"];
4
+ export declare const BACKEND_FRAMEWORKS: readonly ["express", "hono", "h3", "nestjs", "fastify", "elysia"];
5
5
  export type BackendFramework = (typeof BACKEND_FRAMEWORKS)[number];
6
6
  /**
7
7
  * Checks if the given framework is a backend framework
@@ -29,7 +29,8 @@ const BACKEND_FRAMEWORKS = [
29
29
  "hono",
30
30
  "h3",
31
31
  "nestjs",
32
- "fastify"
32
+ "fastify",
33
+ "elysia"
33
34
  ];
34
35
  function isBackendFramework(framework) {
35
36
  if (!framework)
@@ -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) {
@@ -24772,7 +24782,8 @@ var BACKEND_FRAMEWORKS = [
24772
24782
  "hono",
24773
24783
  "h3",
24774
24784
  "nestjs",
24775
- "fastify"
24785
+ "fastify",
24786
+ "elysia"
24776
24787
  ];
24777
24788
  function isBackendFramework(framework) {
24778
24789
  if (!framework)
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.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",