@synonymdev/pubky 0.16.1 → 0.16.2

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
@@ -2,7 +2,7 @@
2
2
  "name": "@synonymdev/pubky",
3
3
  "type": "module",
4
4
  "description": "Decentralized identity, auth flows, and user-owned storage",
5
- "version": "0.16.1",
5
+ "version": "0.16.2",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/pubky.d.ts CHANGED
@@ -2051,8 +2051,10 @@ export class SessionStorage {
2051
2051
  * @param {Uint8Array} body
2052
2052
  * @returns {Promise<void>}
2053
2053
  * @throws {PubkyError} A lock that has expired or was unlocked rejects with
2054
- * `RequestError` and status `412`; take a new one and read the file again.
2055
- * Otherwise as {@link SessionStorage.putBytes}.
2054
+ * `RequestError` and status `412`; take a new one and read the file again. A file
2055
+ * that changed since the write was prepared rejects with status `409`, which can
2056
+ * happen when an earlier change the storage backend ran late lands first; read it
2057
+ * again and retry. Otherwise as {@link SessionStorage.putBytes}.
2056
2058
  */
2057
2059
  putBytesLocked(lock: StorageLock, body: Uint8Array): Promise<void>;
2058
2060
  /**
@@ -2081,8 +2083,10 @@ export class SessionStorage {
2081
2083
  * @param {string} body
2082
2084
  * @returns {Promise<void>}
2083
2085
  * @throws {PubkyError} A lock that has expired or was unlocked rejects with
2084
- * `RequestError` and status `412`; take a new one and read the file again.
2085
- * Otherwise as {@link SessionStorage.putText}.
2086
+ * `RequestError` and status `412`; take a new one and read the file again. A file
2087
+ * that changed since the write was prepared rejects with status `409`, which can
2088
+ * happen when an earlier change the storage backend ran late lands first; read it
2089
+ * again and retry. Otherwise as {@link SessionStorage.putText}.
2086
2090
  */
2087
2091
  putTextLocked(lock: StorageLock, body: string): Promise<void>;
2088
2092
  /**
package/pubky_bg.wasm CHANGED
Binary file