vercel 48.4.1 → 48.6.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/dist/index.js +205 -8
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -49550,7 +49550,7 @@ var require_package = __commonJS2({
|
|
|
49550
49550
|
"../client/package.json"(exports2, module2) {
|
|
49551
49551
|
module2.exports = {
|
|
49552
49552
|
name: "@vercel/client",
|
|
49553
|
-
version: "17.0
|
|
49553
|
+
version: "17.1.0",
|
|
49554
49554
|
main: "dist/index.js",
|
|
49555
49555
|
typings: "dist/index.d.ts",
|
|
49556
49556
|
homepage: "https://vercel.com",
|
|
@@ -49589,7 +49589,7 @@ var require_package = __commonJS2({
|
|
|
49589
49589
|
vitest: "2.0.1"
|
|
49590
49590
|
},
|
|
49591
49591
|
dependencies: {
|
|
49592
|
-
"@vercel/build-utils": "12.
|
|
49592
|
+
"@vercel/build-utils": "12.2.0",
|
|
49593
49593
|
"@vercel/error-utils": "2.0.3",
|
|
49594
49594
|
"@vercel/microfrontends": "1.2.2",
|
|
49595
49595
|
"@vercel/routing-utils": "5.2.0",
|
|
@@ -118121,6 +118121,191 @@ var require_frameworks = __commonJS2({
|
|
|
118121
118121
|
dependency: "nestjs",
|
|
118122
118122
|
getOutputDirName: async () => "public"
|
|
118123
118123
|
},
|
|
118124
|
+
{
|
|
118125
|
+
name: "Fastify",
|
|
118126
|
+
slug: "fastify",
|
|
118127
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/fastify.svg",
|
|
118128
|
+
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fastify-dark.svg",
|
|
118129
|
+
tagline: "Fast and low overhead web framework, for Node.js",
|
|
118130
|
+
description: "Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture.",
|
|
118131
|
+
website: "https://fastify.dev/",
|
|
118132
|
+
useRuntime: { src: "index.js", use: "@vercel/fastify" },
|
|
118133
|
+
defaultRoutes: [
|
|
118134
|
+
{
|
|
118135
|
+
handle: "filesystem"
|
|
118136
|
+
},
|
|
118137
|
+
{
|
|
118138
|
+
src: "/(.*)",
|
|
118139
|
+
dest: "/"
|
|
118140
|
+
}
|
|
118141
|
+
],
|
|
118142
|
+
detectors: {
|
|
118143
|
+
every: [{ matchPackage: "fastify" }],
|
|
118144
|
+
some: [
|
|
118145
|
+
{
|
|
118146
|
+
path: "app.cjs",
|
|
118147
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118148
|
+
},
|
|
118149
|
+
{
|
|
118150
|
+
path: "app.js",
|
|
118151
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118152
|
+
},
|
|
118153
|
+
{
|
|
118154
|
+
path: "app.mjs",
|
|
118155
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118156
|
+
},
|
|
118157
|
+
{
|
|
118158
|
+
path: "app.mts",
|
|
118159
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118160
|
+
},
|
|
118161
|
+
{
|
|
118162
|
+
path: "app.ts",
|
|
118163
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118164
|
+
},
|
|
118165
|
+
{
|
|
118166
|
+
path: "app.cts",
|
|
118167
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118168
|
+
},
|
|
118169
|
+
{
|
|
118170
|
+
path: "index.cjs",
|
|
118171
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118172
|
+
},
|
|
118173
|
+
{
|
|
118174
|
+
path: "index.js",
|
|
118175
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118176
|
+
},
|
|
118177
|
+
{
|
|
118178
|
+
path: "index.mjs",
|
|
118179
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118180
|
+
},
|
|
118181
|
+
{
|
|
118182
|
+
path: "index.mts",
|
|
118183
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118184
|
+
},
|
|
118185
|
+
{
|
|
118186
|
+
path: "index.ts",
|
|
118187
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118188
|
+
},
|
|
118189
|
+
{
|
|
118190
|
+
path: "index.cts",
|
|
118191
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118192
|
+
},
|
|
118193
|
+
{
|
|
118194
|
+
path: "server.cjs",
|
|
118195
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118196
|
+
},
|
|
118197
|
+
{
|
|
118198
|
+
path: "server.js",
|
|
118199
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118200
|
+
},
|
|
118201
|
+
{
|
|
118202
|
+
path: "server.mjs",
|
|
118203
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118204
|
+
},
|
|
118205
|
+
{
|
|
118206
|
+
path: "server.mts",
|
|
118207
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118208
|
+
},
|
|
118209
|
+
{
|
|
118210
|
+
path: "server.ts",
|
|
118211
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118212
|
+
},
|
|
118213
|
+
{
|
|
118214
|
+
path: "server.cts",
|
|
118215
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118216
|
+
},
|
|
118217
|
+
{
|
|
118218
|
+
path: "src/index.cjs",
|
|
118219
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118220
|
+
},
|
|
118221
|
+
{
|
|
118222
|
+
path: "src/index.js",
|
|
118223
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118224
|
+
},
|
|
118225
|
+
{
|
|
118226
|
+
path: "src/index.mjs",
|
|
118227
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118228
|
+
},
|
|
118229
|
+
{
|
|
118230
|
+
path: "src/index.mts",
|
|
118231
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118232
|
+
},
|
|
118233
|
+
{
|
|
118234
|
+
path: "src/index.ts",
|
|
118235
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118236
|
+
},
|
|
118237
|
+
{
|
|
118238
|
+
path: "src/index.cts",
|
|
118239
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118240
|
+
},
|
|
118241
|
+
{
|
|
118242
|
+
path: "src/app.cjs",
|
|
118243
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118244
|
+
},
|
|
118245
|
+
{
|
|
118246
|
+
path: "src/app.js",
|
|
118247
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118248
|
+
},
|
|
118249
|
+
{
|
|
118250
|
+
path: "src/app.mjs",
|
|
118251
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118252
|
+
},
|
|
118253
|
+
{
|
|
118254
|
+
path: "src/app.mts",
|
|
118255
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118256
|
+
},
|
|
118257
|
+
{
|
|
118258
|
+
path: "src/app.ts",
|
|
118259
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118260
|
+
},
|
|
118261
|
+
{
|
|
118262
|
+
path: "src/app.cts",
|
|
118263
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118264
|
+
},
|
|
118265
|
+
{
|
|
118266
|
+
path: "src/server.cjs",
|
|
118267
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118268
|
+
},
|
|
118269
|
+
{
|
|
118270
|
+
path: "src/server.js",
|
|
118271
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118272
|
+
},
|
|
118273
|
+
{
|
|
118274
|
+
path: "src/server.mjs",
|
|
118275
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118276
|
+
},
|
|
118277
|
+
{
|
|
118278
|
+
path: "src/server.mts",
|
|
118279
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118280
|
+
},
|
|
118281
|
+
{
|
|
118282
|
+
path: "src/server.ts",
|
|
118283
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118284
|
+
},
|
|
118285
|
+
{
|
|
118286
|
+
path: "src/server.cts",
|
|
118287
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
118288
|
+
}
|
|
118289
|
+
]
|
|
118290
|
+
},
|
|
118291
|
+
settings: {
|
|
118292
|
+
installCommand: {
|
|
118293
|
+
placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
|
|
118294
|
+
},
|
|
118295
|
+
buildCommand: {
|
|
118296
|
+
placeholder: "None",
|
|
118297
|
+
value: null
|
|
118298
|
+
},
|
|
118299
|
+
devCommand: {
|
|
118300
|
+
placeholder: "None",
|
|
118301
|
+
value: null
|
|
118302
|
+
},
|
|
118303
|
+
outputDirectory: {
|
|
118304
|
+
value: "N/A"
|
|
118305
|
+
}
|
|
118306
|
+
},
|
|
118307
|
+
getOutputDirName: async () => "public"
|
|
118308
|
+
},
|
|
118124
118309
|
{
|
|
118125
118310
|
name: "xmcp",
|
|
118126
118311
|
slug: "xmcp",
|
|
@@ -120454,6 +120639,9 @@ var require_detect_builders = __commonJS2({
|
|
|
120454
120639
|
config2.excludeFiles = func.excludeFiles;
|
|
120455
120640
|
}
|
|
120456
120641
|
}
|
|
120642
|
+
if (options.bunVersion) {
|
|
120643
|
+
config2.bunVersion = options.bunVersion;
|
|
120644
|
+
}
|
|
120457
120645
|
const builder = {
|
|
120458
120646
|
use,
|
|
120459
120647
|
src: fileName,
|
|
@@ -120510,6 +120698,9 @@ var require_detect_builders = __commonJS2({
|
|
|
120510
120698
|
if (projectSettings.outputDirectory) {
|
|
120511
120699
|
config2.outputDirectory = projectSettings.outputDirectory;
|
|
120512
120700
|
}
|
|
120701
|
+
if (options.bunVersion) {
|
|
120702
|
+
config2.bunVersion = options.bunVersion;
|
|
120703
|
+
}
|
|
120513
120704
|
if (pkg && (framework === void 0 || framework !== "storybook" && createdAt < Date.parse("2020-03-01"))) {
|
|
120514
120705
|
const deps = {
|
|
120515
120706
|
...pkg.dependencies,
|
|
@@ -120630,7 +120821,7 @@ var require_detect_builders = __commonJS2({
|
|
|
120630
120821
|
}
|
|
120631
120822
|
if (frontendBuilder && (0, import_is_official_runtime.isOfficialRuntime)("next", frontendBuilder.use)) {
|
|
120632
120823
|
for (const fnKey of unusedFunctions.values()) {
|
|
120633
|
-
if (fnKey.startsWith("pages/") || fnKey.startsWith("src/pages") || fnKey.startsWith("app/") || fnKey.startsWith("src/app/")) {
|
|
120824
|
+
if (fnKey.startsWith("pages/") || fnKey.startsWith("src/pages") || fnKey.startsWith("app/") || fnKey.startsWith("src/app/") || fnKey.startsWith("middleware") || fnKey.startsWith("src/middleware")) {
|
|
120634
120825
|
unusedFunctions.delete(fnKey);
|
|
120635
120826
|
} else {
|
|
120636
120827
|
return {
|
|
@@ -146613,7 +146804,8 @@ var init_validate_config = __esm({
|
|
|
146613
146804
|
trailingSlash: import_routing_utils.trailingSlashSchema,
|
|
146614
146805
|
functions: import_build_utils12.functionsSchema,
|
|
146615
146806
|
images: imagesSchema,
|
|
146616
|
-
crons: cronsSchema
|
|
146807
|
+
crons: cronsSchema,
|
|
146808
|
+
bunVersion: { type: "string" }
|
|
146617
146809
|
}
|
|
146618
146810
|
};
|
|
146619
146811
|
ajv = new import_ajv2.default();
|
|
@@ -147142,7 +147334,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
|
|
|
147142
147334
|
},
|
|
147143
147335
|
projectSettings
|
|
147144
147336
|
);
|
|
147145
|
-
|
|
147337
|
+
const hasLocalConfigurationOverrides = localConfigurationOverrides && Object.values(localConfigurationOverrides ?? {}).some(Boolean);
|
|
147338
|
+
if (hasLocalConfigurationOverrides) {
|
|
147146
147339
|
for (const setting of settingKeys) {
|
|
147147
147340
|
const localConfigValue = localConfigurationOverrides[setting];
|
|
147148
147341
|
if (localConfigValue)
|
|
@@ -148121,8 +148314,12 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148121
148314
|
devCommand: projectSettings.devCommand ?? void 0,
|
|
148122
148315
|
buildCommand: projectSettings.buildCommand ?? void 0,
|
|
148123
148316
|
framework: projectSettings.framework,
|
|
148124
|
-
nodeVersion: projectSettings.nodeVersion
|
|
148125
|
-
|
|
148317
|
+
nodeVersion: projectSettings.nodeVersion,
|
|
148318
|
+
bunVersion: localConfig.bunVersion ?? void 0
|
|
148319
|
+
} : {
|
|
148320
|
+
...build2.config || {},
|
|
148321
|
+
bunVersion: localConfig.bunVersion ?? void 0
|
|
148322
|
+
};
|
|
148126
148323
|
const builderSpan = span.child("vc.builder", {
|
|
148127
148324
|
name: builderPkg.name
|
|
148128
148325
|
});
|
|
@@ -169278,7 +169475,7 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
|
|
|
169278
169475
|
if (src[0] === "/") {
|
|
169279
169476
|
src = src.substring(1);
|
|
169280
169477
|
}
|
|
169281
|
-
if (buildConfig.config?.framework === "hono" || buildConfig.config?.framework === "express" || buildConfig.config?.framework === "h3" || buildConfig.config?.framework === "nestjs") {
|
|
169478
|
+
if (buildConfig.config?.framework === "hono" || buildConfig.config?.framework === "express" || buildConfig.config?.framework === "h3" || buildConfig.config?.framework === "nestjs" || buildConfig.config?.framework === "fastify") {
|
|
169282
169479
|
src = "package.json";
|
|
169283
169480
|
}
|
|
169284
169481
|
if (buildConfig.config?.framework === "fastapi" || buildConfig.config?.framework === "flask") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.6.0",
|
|
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.
|
|
25
|
+
"@vercel/build-utils": "12.2.0",
|
|
26
26
|
"@vercel/fun": "1.1.6",
|
|
27
27
|
"@vercel/go": "3.2.3",
|
|
28
|
-
"@vercel/express": "0.0
|
|
29
|
-
"@vercel/hono": "0.
|
|
30
|
-
"@vercel/h3": "0.1.
|
|
31
|
-
"@vercel/hydrogen": "1.
|
|
32
|
-
"@vercel/next": "4.
|
|
33
|
-
"@vercel/node": "5.
|
|
28
|
+
"@vercel/express": "0.1.0",
|
|
29
|
+
"@vercel/hono": "0.2.0",
|
|
30
|
+
"@vercel/h3": "0.1.7",
|
|
31
|
+
"@vercel/hydrogen": "1.3.0",
|
|
32
|
+
"@vercel/next": "4.14.0",
|
|
33
|
+
"@vercel/node": "5.5.0",
|
|
34
34
|
"@vercel/python": "5.0.10",
|
|
35
|
-
"@vercel/redwood": "2.
|
|
36
|
-
"@vercel/remix-builder": "5.
|
|
35
|
+
"@vercel/redwood": "2.4.0",
|
|
36
|
+
"@vercel/remix-builder": "5.5.0",
|
|
37
37
|
"@vercel/ruby": "2.2.1",
|
|
38
|
-
"@vercel/static-build": "2.
|
|
38
|
+
"@vercel/static-build": "2.8.0",
|
|
39
39
|
"chokidar": "4.0.0",
|
|
40
40
|
"jose": "5.9.6",
|
|
41
41
|
"@vercel/detect-agent": "1.0.0"
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"@types/which": "3.0.0",
|
|
84
84
|
"@types/write-json-file": "2.2.1",
|
|
85
85
|
"@types/yauzl-promise": "2.1.0",
|
|
86
|
-
"@vercel/client": "17.0
|
|
86
|
+
"@vercel/client": "17.1.0",
|
|
87
87
|
"@vercel/error-utils": "2.0.3",
|
|
88
|
-
"@vercel/frameworks": "3.
|
|
89
|
-
"@vercel/fs-detectors": "5.
|
|
88
|
+
"@vercel/frameworks": "3.14.0",
|
|
89
|
+
"@vercel/fs-detectors": "5.7.0",
|
|
90
90
|
"@vercel/routing-utils": "5.2.0",
|
|
91
91
|
"@vitest/expect": "2.1.3",
|
|
92
92
|
"ajv": "6.12.3",
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"xdg-app-paths": "5.1.0",
|
|
169
169
|
"yauzl-promise": "2.1.3",
|
|
170
170
|
"@vercel-internals/constants": "1.0.4",
|
|
171
|
-
"@vercel-internals/
|
|
172
|
-
"@vercel-internals/
|
|
171
|
+
"@vercel-internals/get-package-json": "1.0.0",
|
|
172
|
+
"@vercel-internals/types": "3.0.6"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
|