@void/deploy-core 1.6.1 → 1.7.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.d.mts +4 -2
- package/dist/index.mjs +1 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -316,8 +316,8 @@ export type AssetConfig = {
|
|
|
316
316
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
317
317
|
html_handling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
|
|
318
318
|
/**
|
|
319
|
-
*
|
|
320
|
-
*
|
|
319
|
+
* Cloudflare Workers Assets routing. Managed dispatch also keeps matching
|
|
320
|
+
* worker-first paths out of its shared static asset caches so middleware runs.
|
|
321
321
|
*/
|
|
322
322
|
run_worker_first?: boolean | Array<string>;
|
|
323
323
|
};
|
|
@@ -428,6 +428,8 @@ export type DeployManifest = {
|
|
|
428
428
|
/** Authenticated framed HTTP delivery for managed inbound email. */
|
|
429
429
|
emailProtocolVersion?: 1;
|
|
430
430
|
auth?: boolean;
|
|
431
|
+
/** SQL execution policy; omitted means apply pending application and auth migrations. */
|
|
432
|
+
migrationMode?: "apply" | "skip";
|
|
431
433
|
bindings: {
|
|
432
434
|
d1?: Array<string>;
|
|
433
435
|
kv?: Array<string>;
|
package/dist/index.mjs
CHANGED
|
@@ -68,6 +68,7 @@ function validateClassMigrations(path, migrations, fields, requireNonEmptyTag =
|
|
|
68
68
|
function validateManifestShape(manifest) {
|
|
69
69
|
if (!isRecord(manifest)) return "invalid manifest shape: expected a JSON object";
|
|
70
70
|
if (manifest.emailProtocolVersion !== void 0 && manifest.emailProtocolVersion !== 1) return "invalid manifest shape: emailProtocolVersion must be 1";
|
|
71
|
+
if (manifest.migrationMode !== void 0 && manifest.migrationMode !== "apply" && manifest.migrationMode !== "skip") return "invalid manifest shape: migrationMode must be apply or skip";
|
|
71
72
|
if (!isRecord(manifest.bindings)) return "invalid manifest shape: bindings must be an object";
|
|
72
73
|
const bindings = manifest.bindings;
|
|
73
74
|
for (const key of [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/deploy-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Shared deployment contracts, manifests, and resource plans for Void.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "7.0.2",
|
|
30
|
-
"vite-plus": "1.
|
|
30
|
+
"vite-plus": "1.5.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "vp pack",
|