@vercel/build-utils
Advanced tools
+7
-0
| # @vercel/build-utils | ||
| ## 13.26.6 | ||
| ### Patch Changes | ||
| - 3019788: [services] Remove the `services` field from `vercel.json` and the `VERCEL_USE_SERVICES` gate. | ||
| - fe893ec: [services] Add `experimentalServicesV2` field to `vercel.json` implementing the new schema for services. | ||
| ## 13.26.5 | ||
@@ -4,0 +11,0 @@ |
+49
-39
@@ -8,3 +8,3 @@ import type FileRef from './file-ref'; | ||
| import type { Span } from './trace'; | ||
| import type { HasField } from '@vercel/routing-utils'; | ||
| import type { HasField, Route, Rewrite, Redirect, Header } from '@vercel/routing-utils'; | ||
| export interface Env { | ||
@@ -779,50 +779,60 @@ [name: string]: string | undefined; | ||
| /** | ||
| * Public configuration for a service in vercel.json. | ||
| * Map of service group name to array of service names belonging to that group. | ||
| * @experimental This feature is experimental and may change. | ||
| * @example | ||
| * { | ||
| * "app": ["site", "backend"], | ||
| * "admin": ["admin", "backend"] | ||
| * } | ||
| */ | ||
| export interface ServiceConfig { | ||
| type?: ServiceType; | ||
| trigger?: JobTrigger; | ||
| export type ExperimentalServiceGroups = Record<string, string[]>; | ||
| export interface ExperimentalServiceV2Binding { | ||
| /** Must be `"service"` for Service-to-Service HTTP bindings. */ | ||
| type: 'service'; | ||
| /** Target service name from `experimentalServicesV2`. */ | ||
| service: string; | ||
| /** Generated value shape, must be `"url"`. */ | ||
| format: 'url'; | ||
| /** Environment variable name that will store the generated value */ | ||
| env: string; | ||
| } | ||
| /** | ||
| * Configuration for a service in `experimentalServicesV2` in `vercel.json`. | ||
| * | ||
| * @experimental This feature is experimental and may change. | ||
| */ | ||
| export interface ExperimentalServiceV2Config { | ||
| /** Path to the service root, relative to `vercel.json`. */ | ||
| root: string; | ||
| /** Framework for this service. */ | ||
| framework?: string; | ||
| /** Runtime for this service. */ | ||
| runtime?: string; | ||
| /** | ||
| * Path to the service's root directory relative to the project root. | ||
| * Should contain a manifest file (package.json, pyproject.toml, etc.). | ||
| * Defaults to ".". | ||
| */ | ||
| root?: string; | ||
| /** | ||
| * Service entrypoint, relative to the service root directory. | ||
| * Can be either a file path (runtime entrypoint) or a directory path | ||
| * (service workspace for framework-based services). | ||
| * Can be a file path or a module specification (for Python). | ||
| */ | ||
| entrypoint?: string; | ||
| /** Framework to use */ | ||
| framework?: string; | ||
| /** Specific lambda runtime to use, e.g. nodejs24.x, python3.14 */ | ||
| runtime?: string; | ||
| installCommand?: string; | ||
| buildCommand?: string; | ||
| preDeployCommand?: string; | ||
| /** Lambda config */ | ||
| memory?: number; | ||
| maxDuration?: MaxDuration; | ||
| includeFiles?: string | string[]; | ||
| excludeFiles?: string | string[]; | ||
| /** Preferred routing config for route paths. */ | ||
| mount?: string | ServiceMount; | ||
| /** Cron schedule expression(s) (e.g., "0 0 * * *") */ | ||
| schedule?: string | string[]; | ||
| topics?: ServiceTopics; | ||
| devCommand?: string; | ||
| ignoreCommand?: string; | ||
| outputDirectory?: string; | ||
| /** Caller-side bindings that grant this service access to another service. */ | ||
| bindings?: ExperimentalServiceV2Binding[]; | ||
| /** Function configuration scoped to this service root. */ | ||
| functions?: BuilderFunctions; | ||
| headers?: Header[]; | ||
| redirects?: Redirect[]; | ||
| rewrites?: Rewrite[]; | ||
| routes?: Route[]; | ||
| cleanUrls?: boolean; | ||
| trailingSlash?: boolean; | ||
| } | ||
| /** | ||
| * Map of service name to public service configuration. | ||
| */ | ||
| export type Services = Record<string, ServiceConfig>; | ||
| /** | ||
| * Map of service group name to array of service names belonging to that group. | ||
| * Map of service name to service configuration for `experimentalServicesV2`. | ||
| * | ||
| * @experimental This feature is experimental and may change. | ||
| * @example | ||
| * { | ||
| * "app": ["site", "backend"], | ||
| * "admin": ["admin", "backend"] | ||
| * } | ||
| */ | ||
| export type ExperimentalServiceGroups = Record<string, string[]>; | ||
| export type ExperimentalServicesV2 = Record<string, ExperimentalServiceV2Config>; | ||
| /** | ||
@@ -829,0 +839,0 @@ * Result of a runtime builder's normalized entrypoint detection. |
+2
-2
| { | ||
| "name": "@vercel/build-utils", | ||
| "version": "13.26.5", | ||
| "version": "13.26.6", | ||
| "license": "Apache-2.0", | ||
@@ -58,3 +58,3 @@ "main": "./dist/index.js", | ||
| "yazl": "2.5.1", | ||
| "@vercel/error-utils": "2.1.0", | ||
| "@vercel/error-utils": "2.2.0", | ||
| "@vercel/routing-utils": "6.2.0" | ||
@@ -61,0 +61,0 @@ }, |
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2005193
0.07%51426
0.04%