@muhkoo/connect 0.12.0-alpha.0 → 0.12.1-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.
@@ -5327,7 +5327,7 @@ function base64UrlDecode(s) {
5327
5327
  * expect (and isn't serving a stale cached bundle). Keep this in sync with
5328
5328
  * `package.json` `version`.
5329
5329
  */
5330
- const VERSION = "0.12.0-alpha.0";
5330
+ const VERSION = "0.12.1-alpha.0";
5331
5331
 
5332
5332
  /**
5333
5333
  * `HttpClient` — the one place the unified {@link Client} talks to the
@@ -9294,7 +9294,12 @@ class Space {
9294
9294
  const hashes = manifest.chunks.flatMap((c) => c.shardHashes);
9295
9295
  if (hashes.length === 0)
9296
9296
  return;
9297
- const body = JSON.stringify({ hashes, bytes: manifest.size });
9297
+ // `manifestId` is what lets the platform tell two copies of the same
9298
+ // bytes apart. Without it the reference ledger keys on content, so the
9299
+ // second copy takes no reference and releasing either frees shards the
9300
+ // other still needs — silent data loss. Sent on BOTH commit and release,
9301
+ // because a release has to reproduce the key its commit took.
9302
+ const body = JSON.stringify({ hashes, bytes: manifest.size, manifestId: manifest.id });
9298
9303
  for (let attempt = 0; attempt < 3; attempt++) {
9299
9304
  try {
9300
9305
  const res = await this.deps.fetch(`${this.deps.httpBaseUrl}/api/storage/${action}`, {