Matchers are now exactly what @endo/patterns makes: tagged records as from pass-style's makeTagged (M.string() is match:string with payload [], M.any() is match:any with payload undefined). Structured clone drops their symbol-keyed and non-enumerable properties, so they cross DO storage and Workers RPC in marshal's smallcaps encoding (the subset patterns need). MapStoreDo is a MapStore as a DO of its own: its creator fixes label and (encoded) shapes once; its id is full authority, and readOnly() hands out the queries alone. Generated-by: Claude Opus 5.5
18 lines
542 B
JSON
18 lines
542 B
JSON
{
|
|
"$schema": "node_modules/wrangler/config-schema.json",
|
|
// a host DO for the stores under test (lib ships no worker of its own)
|
|
"name": "capsite-lib-tests",
|
|
"main": "./tests/test-worker.ts",
|
|
"compatibility_date": "2026-09-29",
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{ "name": "STORE_DO", "class_name": "StoreHost" },
|
|
{ "name": "MAP_STORE_DO", "class_name": "MapStoreDo" }
|
|
]
|
|
},
|
|
"exports": {
|
|
"StoreHost": { "type": "durable-object", "storage": "sqlite" },
|
|
"MapStoreDo": { "type": "durable-object", "storage": "sqlite" }
|
|
}
|
|
}
|