@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.
@@ -5057,7 +5057,7 @@ function base64UrlDecode(s) {
5057
5057
  * expect (and isn't serving a stale cached bundle). Keep this in sync with
5058
5058
  * `package.json` `version`.
5059
5059
  */
5060
- const VERSION = "0.10.6-alpha.0";
5060
+ const VERSION = "0.10.8-alpha.0";
5061
5061
 
5062
5062
  /**
5063
5063
  * `HttpClient` — the one place the unified {@link Client} talks to the
@@ -7611,6 +7611,13 @@ class Space {
7611
7611
  async getFile(manifest) {
7612
7612
  return this.fileStorage().readFileFromShards(manifest);
7613
7613
  }
7614
+ /** Declare a file's shards (ref++ + meter) for a manifest already stored —
7615
+ * used to back-fill accounting for files written before commit existed, or to
7616
+ * register a manifest received via sharing. `putFile` already commits new
7617
+ * writes automatically; this is the explicit form. */
7618
+ async commitFile(manifest) {
7619
+ await this.commitShards(manifest, "commit");
7620
+ }
7614
7621
  /** Release a file's shards (ref--) when the owner deletes or unshares it. At
7615
7622
  * zero references a shard enters a retention window, then is GC'd. Idempotent-
7616
7623
  * ish: safe to call once per manifest the owner drops. */