@void/deploy-core 0.23.0 → 0.25.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/README.md CHANGED
@@ -1,18 +1,7 @@
1
1
  # @void/deploy-core
2
2
 
3
- Shared deployment contracts for the Void SDK and hosted Void platform.
3
+ Shared deployment contracts for Void runtimes and deployment adapters. Includes manifests, progress events, routing rules, resource plans, and SQL and Durable Object migration metadata.
4
4
 
5
- This package owns the wire types exchanged by the `void` CLI and the managed
6
- platform, including deployment manifests, progress events, assets, routing
7
- rules, queues, append-only Durable Object migration planning and metadata, normalized upload artifacts, runtime
8
- manifest validation, and provider-neutral resource planning. It has no
9
- dependency on either deployment target and must remain usable from Node.js and
10
- Cloudflare Workers.
5
+ This package works in Node.js and Cloudflare Workers. Applications normally use the `void` CLI rather than these contracts directly.
11
6
 
12
- SQL migration tokenization, classification, and canonical hash inputs are shared
13
- here. Each target supplies its hashing implementation and independently validates
14
- submitted plans; CLI execution policy stays in the CLI.
15
-
16
- The package also defines the adapter boundary implemented by deployment
17
- targets. Target-specific orchestration belongs in `void` or `platform/`, not
18
- here.
7
+ See [Deployment](https://void.cloud/guide/deployment) for deploying an app and [Platform Development](https://void.cloud/guide/platform-development) for working on a runtime or adapter.
package/dist/index.d.mts CHANGED
@@ -169,6 +169,10 @@ export declare function createDeployUploadPayload(artifact: DeployArtifact, meta
169
169
  //#region src/canonical-json.d.ts
170
170
  export declare function canonicalJson(value: unknown): string;
171
171
  //#endregion
172
+ //#region src/is-record.d.ts
173
+ /** Narrow object-shaped input without accepting null or arrays. */
174
+ export declare function isRecord(value: unknown): value is Record<string, unknown>;
175
+ //#endregion
172
176
  //#region src/sql-tokenize.d.ts
173
177
  /**
174
178
  * Char-by-char SQL tokenizer shared by the destructive-SQL guard
@@ -432,6 +436,8 @@ export type DeployEvent = {
432
436
  event: "heartbeat";
433
437
  deploymentId?: string;
434
438
  step: string;
439
+ status?: "queued" | "running" | "recovering";
440
+ recoveryAt?: string;
435
441
  } | {
436
442
  event: "asset_upload";
437
443
  total: number;
package/dist/index.mjs CHANGED
@@ -407,6 +407,12 @@ function canonicalJson(value) {
407
407
  throw new TypeError(`Unsupported canonical JSON value: ${typeof value}`);
408
408
  }
409
409
  //#endregion
410
+ //#region src/is-record.ts
411
+ /** Narrow object-shaped input without accepting null or arrays. */
412
+ function isRecord(value) {
413
+ return typeof value === "object" && value !== null && !Array.isArray(value);
414
+ }
415
+ //#endregion
410
416
  //#region src/sql-tokenize.ts
411
417
  function* tokenizeSql(sql) {
412
418
  const sqlLength = sql.length;
@@ -682,4 +688,4 @@ function isSandboxRegistryImage(image) {
682
688
  return /^registry\.cloudflare\.com\/[^/@\s]+\/[^@\s]+@sha256:[a-f\d]{64}$/.test(image);
683
689
  }
684
690
  //#endregion
685
- export { DEPLOY_ARTIFACT_VERSION, MANIFEST_REDIRECT_RULE_STATUSES, MAX_REVALIDATE_QUERY_ALLOWLIST_ENTRIES, MAX_ROUTING_RULES, MIGRATION_CLASSIFIER_VERSION, SUPPORTED_MANIFEST_VERSIONS, UNSPLIT_MULTI_STATEMENT_PRAGMA, appendSqliteClassMigration, canonicalJson, canonicalSql, classifySqlMigration, createDeployArtifact, createDeployIntent, createDeployResourcePlan, createDeployUploadPayload, getMigrationPlanHashInput, hasStandalonePragma, isSandboxRegistryImage, isSingleStatement, planWebSocketMigrations, tokenizeSql, validateManifestShape };
691
+ export { DEPLOY_ARTIFACT_VERSION, MANIFEST_REDIRECT_RULE_STATUSES, MAX_REVALIDATE_QUERY_ALLOWLIST_ENTRIES, MAX_ROUTING_RULES, MIGRATION_CLASSIFIER_VERSION, SUPPORTED_MANIFEST_VERSIONS, UNSPLIT_MULTI_STATEMENT_PRAGMA, appendSqliteClassMigration, canonicalJson, canonicalSql, classifySqlMigration, createDeployArtifact, createDeployIntent, createDeployResourcePlan, createDeployUploadPayload, getMigrationPlanHashInput, hasStandalonePragma, isRecord, isSandboxRegistryImage, isSingleStatement, planWebSocketMigrations, tokenizeSql, validateManifestShape };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/deploy-core",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",