vercel 48.7.0 → 48.7.1

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.
Files changed (2) hide show
  1. package/dist/index.js +196 -6
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -49578,7 +49578,7 @@ var require_package = __commonJS2({
49578
49578
  "../client/package.json"(exports2, module2) {
49579
49579
  module2.exports = {
49580
49580
  name: "@vercel/client",
49581
- version: "17.1.3",
49581
+ version: "17.1.4",
49582
49582
  main: "dist/index.js",
49583
49583
  typings: "dist/index.d.ts",
49584
49584
  homepage: "https://vercel.com",
@@ -49617,7 +49617,7 @@ var require_package = __commonJS2({
49617
49617
  vitest: "2.0.1"
49618
49618
  },
49619
49619
  dependencies: {
49620
- "@vercel/build-utils": "12.2.2",
49620
+ "@vercel/build-utils": "12.2.3",
49621
49621
  "@vercel/error-utils": "2.0.3",
49622
49622
  "@vercel/microfrontends": "1.2.2",
49623
49623
  "@vercel/routing-utils": "5.2.1",
@@ -117044,6 +117044,7 @@ var require_frameworks = __commonJS2({
117044
117044
  description: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
117045
117045
  website: "https://fastapi.tiangolo.com",
117046
117046
  useRuntime: { src: "index.py", use: "@vercel/python" },
117047
+ ignoreRuntimes: ["@vercel/python"],
117047
117048
  detectors: {
117048
117049
  some: [
117049
117050
  {
@@ -117095,6 +117096,7 @@ var require_frameworks = __commonJS2({
117095
117096
  description: "A Flask app, ready for production",
117096
117097
  website: "https://flask.palletsprojects.com",
117097
117098
  useRuntime: { src: "index.py", use: "@vercel/python" },
117099
+ ignoreRuntimes: ["@vercel/python"],
117098
117100
  detectors: {
117099
117101
  some: [
117100
117102
  {
@@ -118149,6 +118151,190 @@ var require_frameworks = __commonJS2({
118149
118151
  dependency: "nestjs",
118150
118152
  getOutputDirName: async () => "public"
118151
118153
  },
118154
+ {
118155
+ name: "Elysia",
118156
+ slug: "elysia",
118157
+ logo: "https://api-frameworks.vercel.sh/framework-logos/elysia.svg",
118158
+ tagline: "Ergonomic framework for humans",
118159
+ description: "TypeScript with End-to-End Type Safety, type integrity, and exceptional developer experience. Supercharged by Bun.",
118160
+ website: "https://elysiajs.com/",
118161
+ useRuntime: { src: "index.js", use: "@vercel/elysia" },
118162
+ defaultRoutes: [
118163
+ {
118164
+ handle: "filesystem"
118165
+ },
118166
+ {
118167
+ src: "/(.*)",
118168
+ dest: "/"
118169
+ }
118170
+ ],
118171
+ detectors: {
118172
+ every: [{ matchPackage: "elysia" }],
118173
+ some: [
118174
+ {
118175
+ path: "app.cjs",
118176
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118177
+ },
118178
+ {
118179
+ path: "app.js",
118180
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118181
+ },
118182
+ {
118183
+ path: "app.mjs",
118184
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118185
+ },
118186
+ {
118187
+ path: "app.mts",
118188
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118189
+ },
118190
+ {
118191
+ path: "app.ts",
118192
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118193
+ },
118194
+ {
118195
+ path: "app.cts",
118196
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118197
+ },
118198
+ {
118199
+ path: "index.cjs",
118200
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118201
+ },
118202
+ {
118203
+ path: "index.js",
118204
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118205
+ },
118206
+ {
118207
+ path: "index.mjs",
118208
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118209
+ },
118210
+ {
118211
+ path: "index.mts",
118212
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118213
+ },
118214
+ {
118215
+ path: "index.ts",
118216
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118217
+ },
118218
+ {
118219
+ path: "index.cts",
118220
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118221
+ },
118222
+ {
118223
+ path: "server.cjs",
118224
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118225
+ },
118226
+ {
118227
+ path: "server.js",
118228
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118229
+ },
118230
+ {
118231
+ path: "server.mjs",
118232
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118233
+ },
118234
+ {
118235
+ path: "server.mts",
118236
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118237
+ },
118238
+ {
118239
+ path: "server.ts",
118240
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118241
+ },
118242
+ {
118243
+ path: "server.cts",
118244
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118245
+ },
118246
+ {
118247
+ path: "src/index.cjs",
118248
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118249
+ },
118250
+ {
118251
+ path: "src/index.js",
118252
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118253
+ },
118254
+ {
118255
+ path: "src/index.mjs",
118256
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118257
+ },
118258
+ {
118259
+ path: "src/index.mts",
118260
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118261
+ },
118262
+ {
118263
+ path: "src/index.ts",
118264
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118265
+ },
118266
+ {
118267
+ path: "src/index.cts",
118268
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118269
+ },
118270
+ {
118271
+ path: "src/app.cjs",
118272
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118273
+ },
118274
+ {
118275
+ path: "src/app.js",
118276
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118277
+ },
118278
+ {
118279
+ path: "src/app.mjs",
118280
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118281
+ },
118282
+ {
118283
+ path: "src/app.mts",
118284
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118285
+ },
118286
+ {
118287
+ path: "src/app.ts",
118288
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118289
+ },
118290
+ {
118291
+ path: "src/app.cts",
118292
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118293
+ },
118294
+ {
118295
+ path: "src/server.cjs",
118296
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118297
+ },
118298
+ {
118299
+ path: "src/server.js",
118300
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118301
+ },
118302
+ {
118303
+ path: "src/server.mjs",
118304
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118305
+ },
118306
+ {
118307
+ path: "src/server.mts",
118308
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118309
+ },
118310
+ {
118311
+ path: "src/server.ts",
118312
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118313
+ },
118314
+ {
118315
+ path: "src/server.cts",
118316
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']elysia["']\\s*(?:\\))?`
118317
+ }
118318
+ ]
118319
+ },
118320
+ settings: {
118321
+ installCommand: {
118322
+ placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
118323
+ },
118324
+ buildCommand: {
118325
+ placeholder: "None",
118326
+ value: null
118327
+ },
118328
+ devCommand: {
118329
+ placeholder: "None",
118330
+ value: null
118331
+ },
118332
+ outputDirectory: {
118333
+ value: "N/A"
118334
+ }
118335
+ },
118336
+ getOutputDirName: async () => "public"
118337
+ },
118152
118338
  {
118153
118339
  name: "Fastify",
118154
118340
  slug: "fastify",
@@ -148396,7 +148582,11 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
148396
148582
  let buildResult;
148397
148583
  try {
148398
148584
  buildResult = await builderSpan.trace(
148399
- () => {
148585
+ async () => {
148586
+ if ((0, import_build_utils13.shouldUseExperimentalBackends)(buildConfig.framework) && builderPkg.name !== "@vercel/static") {
148587
+ const experimentalBackendBuilder = await import("@vercel/backends");
148588
+ return experimentalBackendBuilder.build(buildOptions);
148589
+ }
148400
148590
  return builder.build(buildOptions);
148401
148591
  }
148402
148592
  );
@@ -169624,11 +169814,11 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
169624
169814
  src = "package.json";
169625
169815
  }
169626
169816
  if (buildConfig.config?.framework === "fastapi" || buildConfig.config?.framework === "flask") {
169627
- const candidateDirs = ["", "src", "app"];
169817
+ const candidateDirs = ["", "src", "app", "api"];
169628
169818
  const candidateNames = ["app", "index", "server", "main"];
169629
169819
  const candidates = [];
169630
- for (const dir of candidateDirs) {
169631
- for (const name of candidateNames) {
169820
+ for (const name of candidateNames) {
169821
+ for (const dir of candidateDirs) {
169632
169822
  candidates.push(dir ? `${dir}/${name}.py` : `${name}.py`);
169633
169823
  }
169634
169824
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "48.7.0",
3
+ "version": "48.7.1",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -22,20 +22,20 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@vercel/blob": "1.0.2",
25
- "@vercel/build-utils": "12.2.2",
25
+ "@vercel/build-utils": "12.2.3",
26
26
  "@vercel/fun": "1.1.6",
27
27
  "@vercel/go": "3.2.3",
28
- "@vercel/express": "0.1.3",
29
- "@vercel/hono": "0.2.3",
30
- "@vercel/h3": "0.1.9",
28
+ "@vercel/express": "0.1.4",
29
+ "@vercel/hono": "0.2.4",
30
+ "@vercel/h3": "0.1.10",
31
31
  "@vercel/hydrogen": "1.3.0",
32
32
  "@vercel/next": "4.14.1",
33
- "@vercel/node": "5.5.2",
34
- "@vercel/python": "5.0.10",
33
+ "@vercel/node": "5.5.3",
34
+ "@vercel/python": "6.0.0",
35
35
  "@vercel/redwood": "2.4.0",
36
36
  "@vercel/remix-builder": "5.5.0",
37
37
  "@vercel/ruby": "2.2.1",
38
- "@vercel/static-build": "2.8.2",
38
+ "@vercel/static-build": "2.8.3",
39
39
  "chokidar": "4.0.0",
40
40
  "jose": "5.9.6",
41
41
  "@vercel/detect-agent": "1.0.0",
@@ -84,10 +84,10 @@
84
84
  "@types/which": "3.0.0",
85
85
  "@types/write-json-file": "2.2.1",
86
86
  "@types/yauzl-promise": "2.1.0",
87
- "@vercel/client": "17.1.3",
87
+ "@vercel/client": "17.1.4",
88
88
  "@vercel/error-utils": "2.0.3",
89
- "@vercel/frameworks": "3.14.0",
90
- "@vercel/fs-detectors": "5.7.1",
89
+ "@vercel/frameworks": "3.14.1",
90
+ "@vercel/fs-detectors": "5.7.2",
91
91
  "@vercel/routing-utils": "5.2.1",
92
92
  "@vitest/expect": "2.1.3",
93
93
  "ajv": "6.12.3",
@@ -168,15 +168,15 @@
168
168
  "write-json-file": "2.2.0",
169
169
  "xdg-app-paths": "5.1.0",
170
170
  "yauzl-promise": "2.1.3",
171
- "@vercel-internals/get-package-json": "1.0.0",
172
171
  "@vercel-internals/constants": "1.0.4",
172
+ "@vercel-internals/get-package-json": "1.0.0",
173
173
  "@vercel-internals/types": "3.0.6"
174
174
  },
175
175
  "scripts": {
176
176
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
177
177
  "vitest-run": "vitest --config ./vitest.config.mts",
178
178
  "vitest-unit": "jest test/unit/ --listTests",
179
- "test-e2e": "rimraf test/fixtures/integration && pnpm test test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts",
179
+ "test-e2e-node-all-versions": "rimraf test/fixtures/integration && pnpm test test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts",
180
180
  "test-dev": "pnpm test test/dev/",
181
181
  "coverage": "codecov",
182
182
  "build": "node scripts/build.mjs",