@drakkar.software/starfish-client 3.0.0-alpha.48 → 3.0.0-alpha.50
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/bindings/zustand.js +4 -2
- package/dist/bindings/zustand.js.map +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/dist/types.d.ts +10 -2
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { CapCert, PullResult } from "@drakkar.software/starfish-protocol";
|
|
2
|
-
/** Push conflict error (HTTP 409).
|
|
2
|
+
/** Push conflict error (HTTP 409).
|
|
3
|
+
*
|
|
4
|
+
* `currentHash` is the authoritative server hash at conflict time, returned by
|
|
5
|
+
* the server in the 409 body. Clients can use it as `baseHash` on the next
|
|
6
|
+
* retry instead of re-pulling, bypassing any read-after-write staleness in the
|
|
7
|
+
* storage backend (e.g. Garage RF>1 replication lag). Empty string means the
|
|
8
|
+
* server could not read the current hash (corrupt/missing doc).
|
|
9
|
+
*/
|
|
3
10
|
export declare class ConflictError extends Error {
|
|
4
|
-
|
|
11
|
+
readonly currentHash: string;
|
|
12
|
+
constructor(currentHash?: string);
|
|
5
13
|
}
|
|
6
14
|
/** HTTP error from the Starfish server. */
|
|
7
15
|
export declare class StarfishHttpError extends Error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakkar.software/starfish-client",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.50",
|
|
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
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@drakkar.software/starfish-protocol": "3.0.0-alpha.
|
|
72
|
+
"@drakkar.software/starfish-protocol": "3.0.0-alpha.50"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@legendapp/state": "^2.0.0",
|