@wtfalch/edge 0.17.0 → 0.18.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/types.d.ts CHANGED
@@ -579,6 +579,8 @@ export interface UploadPlatformWorkerScriptRequest {
579
579
  compatibilityFlags?: string[];
580
580
  /** Durable Object migrations to apply with this upload. */
581
581
  migrations?: WorkerMigrations;
582
+ /** Durable Object class names to mark container-enabled, so Cloudflare accepts a container application for them. Each must be a `durable_object_namespace` binding class or a class `migrations` creates in this upload. Omit or leave empty for none. */
583
+ containers?: string[];
582
584
  /** The company the script serves. Omit for a script that serves none. */
583
585
  organisationId?: string;
584
586
  }
@@ -12,6 +12,8 @@ export interface WorkerAppUploadInput {
12
12
  compatibilityFlags: string[];
13
13
  bindings: WorkerBinding[];
14
14
  migrations?: WorkerMigrations;
15
+ /** Durable Object class names to mark container-enabled with the upload. */
16
+ containers?: string[];
15
17
  }
16
18
  export interface WorkerAppContainerInput {
17
19
  className: string;
@@ -247,6 +247,7 @@ export function createWorkerAppPort(workers, options) {
247
247
  : {}),
248
248
  bindings: input.bindings,
249
249
  ...(input.migrations ? { migrations: input.migrations } : {}),
250
+ ...(input.containers?.length ? { containers: input.containers } : {}),
250
251
  });
251
252
  },
252
253
  async liveMigrationTag(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtfalch/edge",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Public client SDK and API types for the edge service.",