Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c1b51d8

Browse files
committed
Bump to 3.0.0-next.11 and update docs
1 parent 2246359 commit c1b51d8

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@miniflare/root",
3-
"version": "3.0.0-next.10",
3+
"version": "3.0.0-next.11",
44
"private": true,
55
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
66
"keywords": [

packages/tre/README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,17 @@ parameter in module format Workers.
367367
with different binding names. If a `string[]` of binding names is specified,
368368
the binding name and bucket name are assumed to be the same.
369369

370-
#### D1, Analytics Engine and Queues
370+
#### D1
371+
372+
- `d1Databases?: Record<string, string> | string[]`
373+
374+
Record mapping binding name to D1 database IDs to inject as `Fetcher` bindings
375+
into this Worker. Note these bindings must be wrapped with a facade to provide
376+
the expected `D1Database` API. Different Workers may bind to the same database
377+
ID with different binding names. If a `string[]` of binding names is
378+
specified, the binding name and database ID are assumed to be the same.
379+
380+
#### Analytics Engine and Queues
371381

372382
_Not yet supported_
373383

@@ -431,9 +441,7 @@ Options shared between all Workers/"nanoservices".
431441
should be prepended to `resource` to form the request URL. Appropriate
432442
authorization headers should also be added.
433443

434-
<!--TODO: implement custom logger-->
435-
436-
#### Cache, Durable Objects, KV and R2
444+
#### Cache, Durable Objects, KV, R2 and D1
437445

438446
- `cachePersist?: Persistence`
439447

@@ -453,13 +461,17 @@ Options shared between all Workers/"nanoservices".
453461

454462
Where to persist data stored in R2 buckets. See docs for `Persistence`.
455463

456-
#### D1, Analytics Engine and Queues
464+
- `d1Persist?: Persistence`
465+
466+
Where to persist data stored in D1 databases. See docs for `Persistence`.
467+
468+
#### Analytics Engine and Queues
457469

458470
_Not yet supported_
459471

460472
### `type MiniflareOptions`
461473

462-
`SharedOptions & (WorkerOptions | workers: WorkerOptions[]))`
474+
`SharedOptions & (WorkerOptions | { workers: WorkerOptions[] })`
463475

464476
Miniflare accepts either a single Worker configuration or multiple Worker
465477
configurations in the `workers` array. When specifying an array of Workers, the

packages/tre/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@miniflare/tre",
3-
"version": "3.0.0-next.10",
3+
"version": "3.0.0-next.11",
44
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
55
"keywords": [
66
"cloudflare",

packages/tre/src/shared/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Response } from "@miniflare/tre";
1+
import { Response } from "../http";
22

33
export class MiniflareError<
44
Code extends string | number = string | number

0 commit comments

Comments
 (0)