@vercel/build-utils 13.36.0 → 13.36.2
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 +19 -0
- package/dist/file-blob.js +2 -1
- package/dist/index.js +2 -1
- package/dist/types.d.ts +18 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 13.36.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2c75803: Preserve 4-byte UTF-8 characters when streaming string `FileBlob` contents (fixes Edge Function corruption during `vercel build`).
|
|
8
|
+
|
|
9
|
+
## 13.36.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 17ee736: Replace the vercel-workers integration for Python queue subscribers and workflows with the new vercel-queue SDK:
|
|
14
|
+
|
|
15
|
+
- `[[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.
|
|
16
|
+
- 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`.
|
|
17
|
+
- `[[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`).
|
|
18
|
+
- Projects that depend on `vercel-workers` directly keep the legacy integration wholesale: legacy subscriber schema, direct entrypoint serving, worker env markers.
|
|
19
|
+
- `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.
|
|
20
|
+
- The CLI no longer injects `config.hasWorkerServices`; the Python builder makes all queue-serving decisions from project metadata.
|
|
21
|
+
|
|
3
22
|
## 13.36.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/dist/file-blob.js
CHANGED
|
@@ -71,6 +71,7 @@ class FileBlob {
|
|
|
71
71
|
return this.toStream();
|
|
72
72
|
}
|
|
73
73
|
toStream() {
|
|
74
|
-
|
|
74
|
+
const data = typeof this.data === "string" ? Buffer.from(this.data, "utf8") : this.data;
|
|
75
|
+
return (0, import_into_stream.default)(data);
|
|
75
76
|
}
|
|
76
77
|
}
|
package/dist/index.js
CHANGED
|
@@ -31744,7 +31744,8 @@ var FileBlob = class _FileBlob {
|
|
|
31744
31744
|
return this.toStream();
|
|
31745
31745
|
}
|
|
31746
31746
|
toStream() {
|
|
31747
|
-
|
|
31747
|
+
const data = typeof this.data === "string" ? Buffer.from(this.data, "utf8") : this.data;
|
|
31748
|
+
return (0, import_into_stream.default)(data);
|
|
31748
31749
|
}
|
|
31749
31750
|
};
|
|
31750
31751
|
|
package/dist/types.d.ts
CHANGED
|
@@ -245,6 +245,24 @@ export interface StartDevServerSuccess {
|
|
|
245
245
|
* Used by the dev orchestrator to schedule cron triggers.
|
|
246
246
|
*/
|
|
247
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;
|
|
248
266
|
}
|
|
249
267
|
/**
|
|
250
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.36.
|
|
3
|
+
"version": "13.36.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -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",
|