@vercel/build-utils 13.35.0 → 13.36.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.
- package/CHANGELOG.md +24 -0
- package/dist/types.d.ts +22 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 13.36.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 17ee736: Replace the vercel-workers integration for Python queue subscribers and workflows with the new vercel-queue SDK:
|
|
8
|
+
|
|
9
|
+
- `[[tool.vercel.subscribers]]` entrypoints are introspected at build time via `vercel.queue.get_subscriptions()` and served through generated `vercel.queue.asgi_app()` handler modules, with `queue/v2beta` triggers carrying the SDK-registered consumer groups and per-subscription tuning.
|
|
10
|
+
- Celery and Dramatiq projects get the matching `vercel-celery`/`vercel-dramatiq` integration package injected automatically (bundled variant unless `vercel-queue` is an explicit dependency), in builds and in `vercel dev`.
|
|
11
|
+
- `[[tool.vercel.workflows]]` entrypoints follow the SDK generation: projects on `vercel` >= 0.8.0 are served through vercel-queue like subscribers; older or undeterminable versions keep the legacy vercel-workers serving (worker env markers, injected pinned `vercel-workers`).
|
|
12
|
+
- Projects that depend on `vercel-workers` directly keep the legacy integration wholesale: legacy subscriber schema, direct entrypoint serving, worker env markers.
|
|
13
|
+
- `vercel dev` serves queue sidecars through `vercel.queue.asgi_app()` for new-SDK projects, and its queue broker delivers with the SDK-registered consumer groups introspected at sidecar startup (matching production trigger behavior); legacy projects keep the vercel-workers bootstrap.
|
|
14
|
+
- The CLI no longer injects `config.hasWorkerServices`; the Python builder makes all queue-serving decisions from project metadata.
|
|
15
|
+
|
|
16
|
+
## 13.36.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 4502520: Support Node.js Routing Middleware entrypoints through `proxy.entrypoint`, with optional path matching through `proxy.matcher`. The matcher may be configured in the entrypoint source or `vercel.json`, but not both.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [6aa29e5]
|
|
25
|
+
- @vercel/python-analysis@0.12.0
|
|
26
|
+
|
|
3
27
|
## 13.35.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/dist/types.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export interface Config {
|
|
|
44
44
|
framework?: string | null;
|
|
45
45
|
nodeVersion?: string;
|
|
46
46
|
middleware?: boolean;
|
|
47
|
+
/** Enforced runtime for explicitly configured Routing Middleware. */
|
|
48
|
+
middlewareRuntime?: 'nodejs';
|
|
49
|
+
/** Matcher supplied outside of the middleware source module. */
|
|
50
|
+
middlewareMatcher?: string | string[];
|
|
47
51
|
/** Owning service name; scopes per-function config such as the v2beta consumer. */
|
|
48
52
|
serviceName?: string;
|
|
49
53
|
[key: string]: unknown;
|
|
@@ -241,6 +245,24 @@ export interface StartDevServerSuccess {
|
|
|
241
245
|
* Used by the dev orchestrator to schedule cron triggers.
|
|
242
246
|
*/
|
|
243
247
|
crons?: Cron[];
|
|
248
|
+
/**
|
|
249
|
+
* Queue subscriptions registered by this dev server's code, introspected
|
|
250
|
+
* from the runtime SDK. When present, the dev queue broker delivers with
|
|
251
|
+
* these consumer groups (matching production trigger behavior) instead of
|
|
252
|
+
* the synthesized per-service consumer name.
|
|
253
|
+
*/
|
|
254
|
+
queueSubscriptions?: DevQueueSubscription[];
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* A queue subscription registered by a dev server's code, keyed the way the
|
|
258
|
+
* queue SDK dispatches deliveries: by consumer group and topic pattern.
|
|
259
|
+
*/
|
|
260
|
+
export interface DevQueueSubscription {
|
|
261
|
+
topic: string;
|
|
262
|
+
consumer: string;
|
|
263
|
+
retryAfterSeconds?: number;
|
|
264
|
+
initialDelaySeconds?: number;
|
|
265
|
+
maxDeliveries?: number;
|
|
244
266
|
}
|
|
245
267
|
/**
|
|
246
268
|
* `startDevServer()` may return `null` to opt-out of spawning a dev server for
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.36.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"cjs-module-lexer": "1.2.3",
|
|
15
15
|
"es-module-lexer": "1.5.0",
|
|
16
|
-
"@vercel/python-analysis": "0.
|
|
16
|
+
"@vercel/python-analysis": "0.12.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/async-retry": "^1.2.1",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vitest": "2.0.1",
|
|
54
54
|
"typescript": "4.9.5",
|
|
55
55
|
"yazl": "2.5.1",
|
|
56
|
-
"@vercel/
|
|
57
|
-
"@vercel/
|
|
56
|
+
"@vercel/routing-utils": "6.4.0",
|
|
57
|
+
"@vercel/error-utils": "2.2.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|