@drakkar.software/starfish-client 1.19.2 → 2.1.0

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/dist/sync.d.ts CHANGED
@@ -45,6 +45,8 @@ export declare class SyncManager {
45
45
  constructor(options: SyncManagerOptions);
46
46
  getData(): Record<string, unknown>;
47
47
  getHash(): string | null;
48
+ /** Set the last-known server hash. Used by persistence layers to restore state across restarts. */
49
+ setHash(hash: string | null): void;
48
50
  getCheckpoint(): number;
49
51
  pull(): Promise<PullResult>;
50
52
  push(data: Record<string, unknown>): Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakkar.software/starfish-client",
3
- "version": "1.19.2",
3
+ "version": "2.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Drakkar-Software/starfish.git",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@noble/curves": "^2.2.0",
72
- "@drakkar.software/starfish-protocol": "1.18.1"
72
+ "@drakkar.software/starfish-protocol": "2.0.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@legendapp/state": "^2.0.0",