@muhkoo/connect 0.10.6-alpha.0 → 0.10.8-alpha.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/connect.d.ts CHANGED
@@ -4146,6 +4146,11 @@ declare class Space {
4146
4146
  data: Uint8Array;
4147
4147
  stat: FileStat;
4148
4148
  }>;
4149
+ /** Declare a file's shards (ref++ + meter) for a manifest already stored —
4150
+ * used to back-fill accounting for files written before commit existed, or to
4151
+ * register a manifest received via sharing. `putFile` already commits new
4152
+ * writes automatically; this is the explicit form. */
4153
+ commitFile(manifest: FileManifest): Promise<void>;
4149
4154
  /** Release a file's shards (ref--) when the owner deletes or unshares it. At
4150
4155
  * zero references a shard enters a retention window, then is GC'd. Idempotent-
4151
4156
  * ish: safe to call once per manifest the owner drops. */
@@ -2976,7 +2976,7 @@ function base64UrlDecode(s) {
2976
2976
  * expect (and isn't serving a stale cached bundle). Keep this in sync with
2977
2977
  * `package.json` `version`.
2978
2978
  */
2979
- const VERSION = "0.10.6-alpha.0";
2979
+ const VERSION = "0.10.8-alpha.0";
2980
2980
 
2981
2981
  /**
2982
2982
  * `HttpClient` — the one place the unified {@link Client} talks to the
@@ -7342,6 +7342,13 @@ class Space {
7342
7342
  async getFile(manifest) {
7343
7343
  return this.fileStorage().readFileFromShards(manifest);
7344
7344
  }
7345
+ /** Declare a file's shards (ref++ + meter) for a manifest already stored —
7346
+ * used to back-fill accounting for files written before commit existed, or to
7347
+ * register a manifest received via sharing. `putFile` already commits new
7348
+ * writes automatically; this is the explicit form. */
7349
+ async commitFile(manifest) {
7350
+ await this.commitShards(manifest, "commit");
7351
+ }
7345
7352
  /** Release a file's shards (ref--) when the owner deletes or unshares it. At
7346
7353
  * zero references a shard enters a retention window, then is GC'd. Idempotent-
7347
7354
  * ish: safe to call once per manifest the owner drops. */