Skip to content

Commit

Permalink
Bump to 3.0.0-next.11 and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Feb 27, 2023
1 parent 2246359 commit c1b51d8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@miniflare/root",
"version": "3.0.0-next.10",
"version": "3.0.0-next.11",
"private": true,
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
"keywords": [
Expand Down
24 changes: 18 additions & 6 deletions packages/tre/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,17 @@ parameter in module format Workers.
with different binding names. If a `string[]` of binding names is specified,
the binding name and bucket name are assumed to be the same.

#### D1, Analytics Engine and Queues
#### D1

- `d1Databases?: Record<string, string> | string[]`

Record mapping binding name to D1 database IDs to inject as `Fetcher` bindings
into this Worker. Note these bindings must be wrapped with a facade to provide
the expected `D1Database` API. Different Workers may bind to the same database
ID with different binding names. If a `string[]` of binding names is
specified, the binding name and database ID are assumed to be the same.

#### Analytics Engine and Queues

_Not yet supported_

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

<!--TODO: implement custom logger-->

#### Cache, Durable Objects, KV and R2
#### Cache, Durable Objects, KV, R2 and D1

- `cachePersist?: Persistence`

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

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

#### D1, Analytics Engine and Queues
- `d1Persist?: Persistence`

Where to persist data stored in D1 databases. See docs for `Persistence`.

#### Analytics Engine and Queues

_Not yet supported_

### `type MiniflareOptions`

`SharedOptions & (WorkerOptions | workers: WorkerOptions[]))`
`SharedOptions & (WorkerOptions | { workers: WorkerOptions[] })`

Miniflare accepts either a single Worker configuration or multiple Worker
configurations in the `workers` array. When specifying an array of Workers, the
Expand Down
2 changes: 1 addition & 1 deletion packages/tre/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@miniflare/tre",
"version": "3.0.0-next.10",
"version": "3.0.0-next.11",
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
"keywords": [
"cloudflare",
Expand Down
2 changes: 1 addition & 1 deletion packages/tre/src/shared/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Response } from "@miniflare/tre";
import { Response } from "../http";

export class MiniflareError<
Code extends string | number = string | number
Expand Down

0 comments on commit c1b51d8

Please sign in to comment.