@dxos/functions-runtime-cloudflare 0.8.4-main.d05673bc65 → 0.8.4-main.fcfe5033a5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/functions-runtime-cloudflare",
3
- "version": "0.8.4-main.d05673bc65",
3
+ "version": "0.8.4-main.fcfe5033a5",
4
4
  "description": "Functions runtime for Cloudflare.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -27,23 +27,23 @@
27
27
  "src"
28
28
  ],
29
29
  "dependencies": {
30
- "effect": "3.19.16",
31
- "@dxos/codec-protobuf": "0.8.4-main.d05673bc65",
32
- "@dxos/context": "0.8.4-main.d05673bc65",
33
- "@dxos/debug": "0.8.4-main.d05673bc65",
34
- "@dxos/echo": "0.8.4-main.d05673bc65",
35
- "@dxos/echo-db": "0.8.4-main.d05673bc65",
36
- "@dxos/invariant": "0.8.4-main.d05673bc65",
37
- "@dxos/errors": "0.8.4-main.d05673bc65",
38
- "@dxos/keys": "0.8.4-main.d05673bc65",
39
- "@dxos/echo-protocol": "0.8.4-main.d05673bc65",
40
- "@dxos/log": "0.8.4-main.d05673bc65",
41
- "@dxos/protocols": "0.8.4-main.d05673bc65",
42
- "@dxos/util": "0.8.4-main.d05673bc65"
30
+ "effect": "3.20.0",
31
+ "@dxos/context": "0.8.4-main.fcfe5033a5",
32
+ "@dxos/codec-protobuf": "0.8.4-main.fcfe5033a5",
33
+ "@dxos/debug": "0.8.4-main.fcfe5033a5",
34
+ "@dxos/echo": "0.8.4-main.fcfe5033a5",
35
+ "@dxos/echo-protocol": "0.8.4-main.fcfe5033a5",
36
+ "@dxos/invariant": "0.8.4-main.fcfe5033a5",
37
+ "@dxos/errors": "0.8.4-main.fcfe5033a5",
38
+ "@dxos/keys": "0.8.4-main.fcfe5033a5",
39
+ "@dxos/echo-db": "0.8.4-main.fcfe5033a5",
40
+ "@dxos/protocols": "0.8.4-main.fcfe5033a5",
41
+ "@dxos/util": "0.8.4-main.fcfe5033a5",
42
+ "@dxos/log": "0.8.4-main.fcfe5033a5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@cloudflare/workers-types": "^4.20260302.0",
46
- "@dxos/types": "0.8.4-main.d05673bc65"
46
+ "@dxos/types": "0.8.4-main.fcfe5033a5"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
@@ -80,7 +80,8 @@ export class DataServiceImpl implements DataServiceProto {
80
80
  }
81
81
 
82
82
  async createDocument({ spaceId, initialValue }: CreateDocumentRequest): Promise<CreateDocumentResponse> {
83
- using response = await this._dataService.createDocument(this._executionContext, { spaceId, initialValue });
83
+ invariant(SpaceId.isValid(spaceId));
84
+ using response = await this._dataService.createDocument(this._executionContext, spaceId, initialValue);
84
85
  return { documentId: response.documentId };
85
86
  }
86
87
 
@@ -61,6 +61,6 @@ export class SpaceProxy extends Resource {
61
61
  owningObject: this,
62
62
  });
63
63
 
64
- await this._db.coreDatabase.open({ rootUrl: meta.rootDocumentId });
64
+ await this._db.coreDatabase.open(this._ctx, { rootUrl: meta.rootDocumentId });
65
65
  }
66
66
  }