@interop/was-client 0.29.0 → 0.29.1

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.
@@ -17,13 +17,15 @@
17
17
  *
18
18
  * The 412 conflict / 404 not-found port signals (`WasSyncConflictError` /
19
19
  * `WasSyncNotFoundError`) live in the client's typed error hierarchy and are
20
- * re-exported here for convenience.
20
+ * re-exported here for convenience -- as is the stale-descriptor decrypt
21
+ * signal (`UnknownEpochError`), so a crypto-free sync consumer can
22
+ * `instanceof`-match it without importing the `/edv` entry that throws it.
21
23
  */
22
24
  export { createWasSyncPort, WAS_KEY_EPOCH_HEADER, formatEtag, parseEtag, errorStatus } from './port.js';
23
25
  export { contentCid, cidFrom, deriveSpaceId } from './cid.js';
24
26
  export { isEncryptedEnvelope } from './envelope.js';
25
27
  export { createPlaintextDocCipher } from './plaintextCipher.js';
26
28
  export { ensureSpaceAndCollection } from './provisioning.js';
27
- export { WasSyncConflictError, WasSyncNotFoundError } from '../errors.js';
29
+ export { UnknownEpochError, WasSyncConflictError, WasSyncNotFoundError } from '../errors.js';
28
30
  export type { Json, SyncCheckpoint, WireDoc, SyncPage, MasterState, WasSyncPort, DocCipher } from './types.js';
29
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAEzE,YAAY,EACV,IAAI,EACJ,cAAc,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,SAAS,EACV,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAErB,YAAY,EACV,IAAI,EACJ,cAAc,EACd,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,SAAS,EACV,MAAM,YAAY,CAAA"}
@@ -17,12 +17,14 @@
17
17
  *
18
18
  * The 412 conflict / 404 not-found port signals (`WasSyncConflictError` /
19
19
  * `WasSyncNotFoundError`) live in the client's typed error hierarchy and are
20
- * re-exported here for convenience.
20
+ * re-exported here for convenience -- as is the stale-descriptor decrypt
21
+ * signal (`UnknownEpochError`), so a crypto-free sync consumer can
22
+ * `instanceof`-match it without importing the `/edv` entry that throws it.
21
23
  */
22
24
  export { createWasSyncPort, WAS_KEY_EPOCH_HEADER, formatEtag, parseEtag, errorStatus } from './port.js';
23
25
  export { contentCid, cidFrom, deriveSpaceId } from './cid.js';
24
26
  export { isEncryptedEnvelope } from './envelope.js';
25
27
  export { createPlaintextDocCipher } from './plaintextCipher.js';
26
28
  export { ensureSpaceAndCollection } from './provisioning.js';
27
- export { WasSyncConflictError, WasSyncNotFoundError } from '../errors.js';
29
+ export { UnknownEpochError, WasSyncConflictError, WasSyncNotFoundError } from '../errors.js';
28
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@interop/was-client",
3
3
  "description": "A developer-friendly client for Wallet Attached Storage (WAS) servers.",
4
- "version": "0.29.0",
4
+ "version": "0.29.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "pnpm run clear && tsc",