miniflare 0.0.0-e4fe35cc5 → 0.0.0-e51304ca0
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 +41 -0
- package/dist/src/index.d.ts +1192 -390
- package/dist/src/index.js +10364 -5040
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets-kv.worker.js +6 -2
- package/dist/src/workers/assets/assets-kv.worker.js.map +1 -1
- package/dist/src/workers/assets/assets.worker.js +4627 -5036
- package/dist/src/workers/assets/assets.worker.js.map +3 -3
- package/dist/src/workers/assets/router.worker.js +5143 -5914
- package/dist/src/workers/assets/router.worker.js.map +3 -3
- package/dist/src/workers/assets/rpc-proxy.worker.js +11 -0
- package/dist/src/workers/assets/rpc-proxy.worker.js.map +6 -0
- package/dist/src/workers/cache/cache-entry.worker.js.map +1 -1
- package/dist/src/workers/cache/cache.worker.js +18 -29
- package/dist/src/workers/cache/cache.worker.js.map +2 -2
- package/dist/src/workers/core/entry.worker.js +46 -72
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +3 -5
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/kv/namespace.worker.js +2 -4
- package/dist/src/workers/kv/namespace.worker.js.map +1 -1
- package/dist/src/workers/kv/sites.worker.js +3 -6
- package/dist/src/workers/kv/sites.worker.js.map +1 -1
- package/dist/src/workers/pipelines/pipeline.worker.js +11 -0
- package/dist/src/workers/pipelines/pipeline.worker.js.map +6 -0
- package/dist/src/workers/queues/broker.worker.js +17 -20
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/r2/bucket.worker.js +23 -46
- package/dist/src/workers/r2/bucket.worker.js.map +1 -1
- package/dist/src/workers/ratelimit/ratelimit.worker.js.map +1 -1
- package/dist/src/workers/shared/index.worker.js +28 -51
- package/dist/src/workers/shared/index.worker.js.map +1 -1
- package/dist/src/workers/shared/zod.worker.js +80 -84
- package/dist/src/workers/shared/zod.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +1946 -0
- package/dist/src/workers/workflows/binding.worker.js.map +6 -0
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -214,6 +214,20 @@ Options for an individual Worker/"nanoservice". All bindings are accessible on
|
|
|
214
214
|
the global scope in service-worker format Workers, or via the 2nd `env`
|
|
215
215
|
parameter in module format Workers.
|
|
216
216
|
|
|
217
|
+
### `interface WorkflowOptions`
|
|
218
|
+
|
|
219
|
+
- `name: string`
|
|
220
|
+
|
|
221
|
+
The name of the Workflow.
|
|
222
|
+
|
|
223
|
+
- `className: string`
|
|
224
|
+
|
|
225
|
+
The name of the class exported from the Worker that implements the `WorkflowEntrypoint`.
|
|
226
|
+
|
|
227
|
+
- `scriptName?`: string
|
|
228
|
+
|
|
229
|
+
The name of the script that includes the `WorkflowEntrypoint`. This is optional because it defaults to the current script if not set.
|
|
230
|
+
|
|
217
231
|
#### Core
|
|
218
232
|
|
|
219
233
|
- `name?: string`
|
|
@@ -574,6 +588,29 @@ parameter in module format Workers.
|
|
|
574
588
|
have at most one consumer. If a `string[]` of queue names is specified,
|
|
575
589
|
default consumer options will be used.
|
|
576
590
|
|
|
591
|
+
#### Assets
|
|
592
|
+
|
|
593
|
+
- `directory?: string`
|
|
594
|
+
Path to serve Workers static asset files from.
|
|
595
|
+
|
|
596
|
+
- `binding?: string`
|
|
597
|
+
Binding name to inject as a `Fetcher` binding to allow access to static assets from within the Worker.
|
|
598
|
+
|
|
599
|
+
- `assetOptions?: { html_handling?: HTMLHandlingOptions, not_found_handling?: NotFoundHandlingOptions}`
|
|
600
|
+
Configuration for file-based asset routing - see [docs](https://developers.cloudflare.com/workers/static-assets/routing/#routing-configuration) for options
|
|
601
|
+
|
|
602
|
+
#### Pipelines
|
|
603
|
+
|
|
604
|
+
- `pipelines?: Record<string, PipelineOptions> | string[]`
|
|
605
|
+
|
|
606
|
+
Record mapping binding name to a Pipeline. Different workers may bind to the same Pipeline with different bindings
|
|
607
|
+
names. If a `string[]` of pipeline names, the binding and Pipeline name are assumed to be the same.
|
|
608
|
+
|
|
609
|
+
#### Workflows
|
|
610
|
+
|
|
611
|
+
- `workflows?: WorkflowOptions[]`
|
|
612
|
+
Configuration for one or more Workflows in your project.
|
|
613
|
+
|
|
577
614
|
#### Analytics Engine, Sending Email, Vectorize and Workers for Platforms
|
|
578
615
|
|
|
579
616
|
_Not yet supported_
|
|
@@ -714,6 +751,10 @@ Options shared between all Workers/"nanoservices".
|
|
|
714
751
|
|
|
715
752
|
Where to persist data stored in D1 databases. See docs for `Persistence`.
|
|
716
753
|
|
|
754
|
+
- `workflowsPersist?: Persistence`
|
|
755
|
+
|
|
756
|
+
Where to persist data stored in Workflows. See docs for `Persistence`.
|
|
757
|
+
|
|
717
758
|
#### Analytics Engine, Browser Rendering, Sending Email, Vectorize, Workers AI and Workers for Platforms
|
|
718
759
|
|
|
719
760
|
_Not yet supported_
|