miniflare 0.0.0-ecef68635 → 0.0.0-ed3bc2f3b
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 +30 -0
- package/dist/src/index.d.ts +633 -327
- package/dist/src/index.js +9209 -4682
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +4365 -5029
- package/dist/src/workers/assets/assets.worker.js.map +3 -3
- package/dist/src/workers/assets/router.worker.js +5098 -5870
- package/dist/src/workers/assets/router.worker.js.map +3 -3
- package/dist/src/workers/cache/cache.worker.js +6 -5
- package/dist/src/workers/cache/cache.worker.js.map +2 -2
- package/dist/src/workers/core/entry.worker.js +13 -13
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +1 -1
- package/dist/src/workers/d1/database.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 +5 -3
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/shared/index.worker.js +4 -1
- package/dist/src/workers/shared/index.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +1971 -0
- package/dist/src/workers/workflows/binding.worker.js.map +6 -0
- package/package.json +20 -19
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`
|
|
@@ -585,6 +599,18 @@ parameter in module format Workers.
|
|
|
585
599
|
- `assetOptions?: { html_handling?: HTMLHandlingOptions, not_found_handling?: NotFoundHandlingOptions}`
|
|
586
600
|
Configuration for file-based asset routing - see [docs](https://developers.cloudflare.com/workers/static-assets/routing/#routing-configuration) for options
|
|
587
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
|
+
|
|
588
614
|
#### Analytics Engine, Sending Email, Vectorize and Workers for Platforms
|
|
589
615
|
|
|
590
616
|
_Not yet supported_
|
|
@@ -725,6 +751,10 @@ Options shared between all Workers/"nanoservices".
|
|
|
725
751
|
|
|
726
752
|
Where to persist data stored in D1 databases. See docs for `Persistence`.
|
|
727
753
|
|
|
754
|
+
- `workflowsPersist?: Persistence`
|
|
755
|
+
|
|
756
|
+
Where to persist data stored in Workflows. See docs for `Persistence`.
|
|
757
|
+
|
|
728
758
|
#### Analytics Engine, Browser Rendering, Sending Email, Vectorize, Workers AI and Workers for Platforms
|
|
729
759
|
|
|
730
760
|
_Not yet supported_
|