@tinycloud/replica 0.2.4-beta.2 → 0.3.0-beta.10

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.
@@ -269,4 +269,4 @@ interface ReplicaStore {
269
269
  close(): Promise<void>;
270
270
  }
271
271
 
272
- export type { AuthorityState as A, Coverage as C, FetchedContent as F, GrantRecord as G, ListOpts as L, ReplicaStore as R, SyncPage as S, VerifiedChange as V, ReplicaTransport as a, ReplicaStatus as b, AuthorityWindow as c, LocalReadPolicy as d, Change as e, LeaseToken as f, LocalEntry as g, ReplicaConfig as h, ReplicaLastError as i, ReplicaState as j, SyncSource as k, VerifiedPage as l };
272
+ export type { AuthorityState as A, Coverage as C, FetchedContent as F, GrantRecord as G, ListOpts as L, ReplicaStore as R, SyncPage as S, VerifiedChange as V, ReplicaTransport as a, ReplicaStatus as b, LeaseToken as c, AuthorityWindow as d, LocalReadPolicy as e, Change as f, LocalEntry as g, ReplicaConfig as h, ReplicaLastError as i, ReplicaState as j, SyncSource as k, VerifiedPage as l };
@@ -269,4 +269,4 @@ interface ReplicaStore {
269
269
  close(): Promise<void>;
270
270
  }
271
271
 
272
- export type { AuthorityState as A, Coverage as C, FetchedContent as F, GrantRecord as G, ListOpts as L, ReplicaStore as R, SyncPage as S, VerifiedChange as V, ReplicaTransport as a, ReplicaStatus as b, AuthorityWindow as c, LocalReadPolicy as d, Change as e, LeaseToken as f, LocalEntry as g, ReplicaConfig as h, ReplicaLastError as i, ReplicaState as j, SyncSource as k, VerifiedPage as l };
272
+ export type { AuthorityState as A, Coverage as C, FetchedContent as F, GrantRecord as G, ListOpts as L, ReplicaStore as R, SyncPage as S, VerifiedChange as V, ReplicaTransport as a, ReplicaStatus as b, LeaseToken as c, AuthorityWindow as d, LocalReadPolicy as e, Change as f, LocalEntry as g, ReplicaConfig as h, ReplicaLastError as i, ReplicaState as j, SyncSource as k, VerifiedPage as l };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/replica",
3
- "version": "0.2.4-beta.2",
3
+ "version": "0.3.0-beta.10",
4
4
  "description": "Durable, read-only local replicas of a TinyCloud KV prefix over the tinycloud.kv/sync change feed.",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",
@@ -23,10 +23,27 @@
23
23
  "types": "./dist/browser.d.ts",
24
24
  "import": "./dist/browser.js"
25
25
  },
26
+ "./profile-gate": {
27
+ "types": "./dist/profile-gate.d.ts",
28
+ "import": "./dist/profile-gate.js",
29
+ "require": "./dist/profile-gate.cjs"
30
+ },
26
31
  "./worker": {
27
32
  "types": "./dist/replica.worker.d.ts",
28
33
  "import": "./dist/replica.worker.js"
29
34
  },
35
+ "./kv-storage": {
36
+ "types": "./dist/kv-storage.d.ts",
37
+ "import": "./dist/kv-storage.js"
38
+ },
39
+ "./kv-storage/worker": {
40
+ "types": "./dist/kv-storage.worker.d.ts",
41
+ "import": "./dist/kv-storage.worker.js"
42
+ },
43
+ "./kv-storage/testing": {
44
+ "types": "./dist/kv-storage-testing.d.ts",
45
+ "import": "./dist/kv-storage-testing.js"
46
+ },
30
47
  "./package.json": "./package.json"
31
48
  },
32
49
  "sideEffects": false,
@@ -37,7 +54,7 @@
37
54
  "dist"
38
55
  ],
39
56
  "scripts": {
40
- "build": "tsup",
57
+ "build": "bun run clean && tsup && bun scripts/hash-worker.ts",
41
58
  "clean": "rm -rf dist",
42
59
  "test": "bun test",
43
60
  "typecheck": "tsc --noEmit"
@@ -45,14 +62,15 @@
45
62
  "dependencies": {
46
63
  "@noble/curves": "^1.9.2",
47
64
  "@noble/hashes": "^1.8.0",
48
- "@tinycloud/sdk-services": "3.2.6-beta.4"
65
+ "@tinycloud/sdk-services": "3.3.0-beta.25"
49
66
  },
50
67
  "devDependencies": {
51
- "@tinycloud/web-sdk-wasm": "1.7.6",
68
+ "@tinycloud/web-sdk-wasm": "1.7.7-beta.1",
52
69
  "@types/node": "^20",
53
70
  "fake-indexeddb": "^6.2.5",
54
71
  "tsup": "^8.0.0",
55
- "typescript": "^5.9.3"
72
+ "typescript": "^5.9.3",
73
+ "viem": "^2.45.0"
56
74
  },
57
75
  "repository": {
58
76
  "type": "git",