vercel 50.12.1 → 50.12.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.
Files changed (2) hide show
  1. package/dist/index.js +79 -4
  2. package/package.json +18 -18
package/dist/index.js CHANGED
@@ -51690,7 +51690,7 @@ var require_package = __commonJS2({
51690
51690
  "../client/package.json"(exports2, module2) {
51691
51691
  module2.exports = {
51692
51692
  name: "@vercel/client",
51693
- version: "17.2.34",
51693
+ version: "17.2.35",
51694
51694
  main: "dist/index.js",
51695
51695
  typings: "dist/index.d.ts",
51696
51696
  homepage: "https://vercel.com",
@@ -82981,6 +82981,62 @@ var require_frameworks = __commonJS2({
82981
82981
  }
82982
82982
  ]
82983
82983
  },
82984
+ {
82985
+ name: "Go",
82986
+ slug: "go",
82987
+ experimental: true,
82988
+ runtimeFramework: true,
82989
+ logo: "https://api-frameworks.vercel.sh/framework-logos/go.svg",
82990
+ tagline: "An open-source programming language supported by Google.",
82991
+ description: "A generic Go application deployed as a serverless function.",
82992
+ website: "https://go.dev",
82993
+ useRuntime: { src: "index.go", use: "@vercel/go" },
82994
+ ignoreRuntimes: ["@vercel/go"],
82995
+ detectors: {
82996
+ every: [
82997
+ {
82998
+ path: "go.mod"
82999
+ }
83000
+ ],
83001
+ some: [
83002
+ {
83003
+ path: "main.go"
83004
+ },
83005
+ {
83006
+ path: "cmd/api/main.go"
83007
+ },
83008
+ {
83009
+ path: "cmd/server/main.go"
83010
+ }
83011
+ ]
83012
+ },
83013
+ settings: {
83014
+ installCommand: {
83015
+ placeholder: "`go mod download`"
83016
+ },
83017
+ buildCommand: {
83018
+ placeholder: "None",
83019
+ value: null
83020
+ },
83021
+ devCommand: {
83022
+ placeholder: "`go run .` or `go run ./cmd/api`",
83023
+ value: null
83024
+ },
83025
+ outputDirectory: {
83026
+ value: "N/A"
83027
+ }
83028
+ },
83029
+ getOutputDirName: async () => "public",
83030
+ defaultRoutes: [
83031
+ {
83032
+ handle: "filesystem"
83033
+ },
83034
+ {
83035
+ src: "/(.*)",
83036
+ dest: "/"
83037
+ }
83038
+ ]
83039
+ },
82984
83040
  {
82985
83041
  name: "Services",
82986
83042
  slug: "services",
@@ -86472,7 +86528,7 @@ var require_detect_builders = __commonJS2({
86472
86528
  builders.push(...apiBuilders);
86473
86529
  }
86474
86530
  if (frontendBuilder) {
86475
- if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python") {
86531
+ if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python" || frontendBuilder?.use === "@vercel/go") {
86476
86532
  builders.push({
86477
86533
  src: "public/**/*",
86478
86534
  use: "@vercel/static",
@@ -154118,6 +154174,7 @@ import {
154118
154174
  FileFsRef as FileFsRef2,
154119
154175
  getDiscontinuedNodeVersions,
154120
154176
  getInstalledPackageVersion,
154177
+ getServiceUrlEnvVars,
154121
154178
  normalizePath as normalizePath3,
154122
154179
  NowBuildError as NowBuildError6,
154123
154180
  runNpmInstall,
@@ -154460,6 +154517,18 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
154460
154517
  builds = [{ src: "**", use: "@vercel/static" }];
154461
154518
  }
154462
154519
  detectedServices = detectedBuilders.services;
154520
+ if (detectedServices && detectedServices.length > 0) {
154521
+ const serviceUrlEnvVars = getServiceUrlEnvVars({
154522
+ services: detectedServices,
154523
+ frameworkList: import_frameworks6.frameworkList,
154524
+ currentEnv: process.env,
154525
+ deploymentUrl: process.env.VERCEL_URL
154526
+ });
154527
+ for (const [key, value] of Object.entries(serviceUrlEnvVars)) {
154528
+ process.env[key] = value;
154529
+ output_manager_default.debug(`Injected service URL env var: ${key}=${value}`);
154530
+ }
154531
+ }
154463
154532
  zeroConfigRoutes.push(...detectedBuilders.redirectRoutes || []);
154464
154533
  zeroConfigRoutes.push(
154465
154534
  ...(0, import_routing_utils2.appendRoutesToPhase)({
@@ -186695,14 +186764,18 @@ async function getOptionalLinkedProject2(client2) {
186695
186764
  }
186696
186765
  return { status: "success", project: linkedProject.project };
186697
186766
  }
186698
- function provisionResourceViaWebUI(teamId, integrationId, productId, projectId) {
186767
+ function provisionResourceViaWebUI(teamId, integrationId, productId, projectId, resourceName) {
186699
186768
  const url3 = new URL("/api/marketplace/cli", "https://vercel.com");
186700
186769
  url3.searchParams.set("teamId", teamId);
186701
186770
  url3.searchParams.set("integrationId", integrationId);
186702
186771
  url3.searchParams.set("productId", productId);
186772
+ url3.searchParams.set("source", "cli");
186703
186773
  if (projectId) {
186704
186774
  url3.searchParams.set("projectId", projectId);
186705
186775
  }
186776
+ if (resourceName) {
186777
+ url3.searchParams.set("defaultResourceName", resourceName);
186778
+ }
186706
186779
  url3.searchParams.set("cmd", "add");
186707
186780
  output_manager_default.print("Opening the Vercel Dashboard to continue the installation...");
186708
186781
  (0, import_open4.default)(url3.href);
@@ -186749,7 +186822,8 @@ async function provisionResourceViaCLI(client2, teamId, integration, installatio
186749
186822
  teamId,
186750
186823
  integration.id,
186751
186824
  product.id,
186752
- projectLink?.project?.id
186825
+ projectLink?.project?.id,
186826
+ name
186753
186827
  );
186754
186828
  }
186755
186829
  return 0;
@@ -186940,6 +187014,7 @@ function handleManualVerificationAction(teamId, authorizationId) {
186940
187014
  const url3 = new URL("/api/marketplace/cli", "https://vercel.com");
186941
187015
  url3.searchParams.set("teamId", teamId);
186942
187016
  url3.searchParams.set("authorizationId", authorizationId);
187017
+ url3.searchParams.set("source", "cli");
186943
187018
  url3.searchParams.set("cmd", "authorize");
186944
187019
  output_manager_default.print("Opening the Vercel Dashboard to continue the installation...");
186945
187020
  (0, import_open4.default)(url3.href);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "50.12.1",
3
+ "version": "50.12.3",
4
4
  "type": "module",
5
5
  "preferGlobal": true,
6
6
  "license": "Apache-2.0",
@@ -28,26 +28,26 @@
28
28
  "esbuild": "0.27.0",
29
29
  "form-data": "^4.0.0",
30
30
  "jose": "5.9.6",
31
- "@vercel/build-utils": "13.3.1",
31
+ "@vercel/backends": "0.0.29",
32
+ "@vercel/build-utils": "13.3.2",
32
33
  "@vercel/detect-agent": "1.1.0",
33
- "@vercel/express": "0.1.39",
34
- "@vercel/elysia": "0.1.30",
35
- "@vercel/backends": "0.0.28",
36
- "@vercel/fastify": "0.1.33",
37
- "@vercel/h3": "0.1.39",
38
- "@vercel/go": "3.3.5",
39
- "@vercel/hono": "0.2.33",
34
+ "@vercel/elysia": "0.1.31",
35
+ "@vercel/express": "0.1.40",
36
+ "@vercel/fastify": "0.1.34",
37
+ "@vercel/go": "3.4.0",
38
+ "@vercel/h3": "0.1.40",
39
+ "@vercel/hono": "0.2.34",
40
40
  "@vercel/hydrogen": "1.3.5",
41
- "@vercel/koa": "0.1.13",
42
- "@vercel/nestjs": "0.2.34",
43
- "@vercel/next": "4.15.23",
44
- "@vercel/node": "5.5.31",
45
- "@vercel/python": "6.6.0",
41
+ "@vercel/koa": "0.1.14",
42
+ "@vercel/nestjs": "0.2.35",
43
+ "@vercel/next": "4.15.24",
44
+ "@vercel/node": "5.5.32",
45
+ "@vercel/python": "6.7.0",
46
46
  "@vercel/redwood": "2.4.9",
47
47
  "@vercel/remix-builder": "5.5.10",
48
48
  "@vercel/ruby": "2.2.5",
49
49
  "@vercel/rust": "1.0.5",
50
- "@vercel/static-build": "2.8.32"
50
+ "@vercel/static-build": "2.8.33"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -175,10 +175,10 @@
175
175
  "@vercel-internals/constants": "1.0.4",
176
176
  "@vercel-internals/get-package-json": "1.0.0",
177
177
  "@vercel-internals/types": "3.0.6",
178
- "@vercel/client": "17.2.34",
179
- "@vercel/frameworks": "3.16.1",
178
+ "@vercel/client": "17.2.35",
180
179
  "@vercel/error-utils": "2.0.3",
181
- "@vercel/fs-detectors": "5.8.1",
180
+ "@vercel/frameworks": "3.17.0",
181
+ "@vercel/fs-detectors": "5.8.2",
182
182
  "@vercel/routing-utils": "5.3.2"
183
183
  },
184
184
  "scripts": {