@crvouga/mockingbird-service-s3 4.0.5 → 4.0.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog — @crvouga/mockingbird-service-s3
2
2
 
3
+ ## 4.0.7 (2026-11-05)
4
+
5
+ ### Fixes and improvements
6
+
7
+ - make conditional PutObject commits atomic ([3ae076b](https://github.com/crvouga/mockingbird/commit/3ae076b0a526fb147a28a26edaefb65d8ebc50c3))
8
+
9
+ ## 4.0.6 (2026-11-02)
10
+
11
+ ### Fixes and improvements
12
+
13
+ - rewrite mounted HTML for any media type case, formaction, srcset and meta refresh ([c70f512](https://github.com/crvouga/mockingbird/commit/c70f5126a340da0217d0217fb9652daf465e1ecb))
14
+ - show a placeholder for an audit event without a time ([2b2611b](https://github.com/crvouga/mockingbird/commit/2b2611b1af75fc48ec91e07ba15b96372946695f))
15
+ - attach the snapshot download link and revoke its URL later ([a106903](https://github.com/crvouga/mockingbird/commit/a106903abe9d7d5def7f2857e2d7644c4ebcdae2))
16
+ - stop the page-hide save inheriting the last write's result as `force` ([551c2dc](https://github.com/crvouga/mockingbird/commit/551c2dcd3615f82e70e0cd0b8a11c82a663d18b6))
17
+ - keep the record id in the State table's id column ([2fc9bee](https://github.com/crvouga/mockingbird/commit/2fc9beeba6dd8bfe129993a4ff53fbd2925bf569))
18
+ - list migrations applied in the same second in run order ([f8c0591](https://github.com/crvouga/mockingbird/commit/f8c059146a65bfaf7fe99b4d3b6e812e82602bb9))
19
+ - prune idempotency keys after 24 hours on the mock clock ([094c8b1](https://github.com/crvouga/mockingbird/commit/094c8b124211ae02901c26eb96cca410434b855a))
20
+ - drop the previous emulator's manifest when switching emulators ([7ed4666](https://github.com/crvouga/mockingbird/commit/7ed46661288662a3789dbe013f1a195905b217e4))
21
+ - reject a migration list that repeats an id, naming it ([47721d9](https://github.com/crvouga/mockingbird/commit/47721d96a29f4b5184322d19c1b10750086e8da4))
22
+ - reserve the manual admin view id ([3d4da92](https://github.com/crvouga/mockingbird/commit/3d4da926182ce609fba44e0fd58abcbb253eee2c))
23
+
3
24
  ## 4.0.5 (2026-11-02)
4
25
 
5
26
  ### Fixes and improvements
@@ -31,7 +31,7 @@ import {
31
31
  multipartEtag,
32
32
  sigV4AccessKeyId,
33
33
  signers
34
- } from "./chunk-GECJINYS.js";
34
+ } from "./chunk-R67TI76J.js";
35
35
 
36
36
  // src/generated/openapi.ts
37
37
  var document = JSON.parse(`{"openapi":"3.1.0","info":{"title":"Amazon S3 (Mockingbird subset)","version":"2006-03-01","description":"Path-style S3 REST contract used by AWS SDK v3."},"servers":[{"url":"https://s3.us-east-1.amazonaws.com"}],"paths":{"/{bucket}":{"parameters":[{"name":"bucket","in":"path","required":true,"schema":{"type":"string"}}],"put":{"operationId":"CreateBucket","x-mockingbird":{"supported":true,"parity":{"safe":false}},"responses":{"200":{"description":"Created"},"400":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"}}},"head":{"operationId":"HeadBucket","responses":{"200":{"description":"Exists"},"404":{"description":"Missing"}}},"get":{"operationId":"ListObjectsV2","responses":{"200":{"description":"XML listing","content":{"application/xml":{"schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"BucketPost","x-mockingbird":{"supported":true,"parity":{"safe":false}},"responses":{"200":{"description":"DeleteObjects result","content":{"application/xml":{"schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}}}},"/{bucket}/{key}":{"parameters":[{"name":"bucket","in":"path","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"put":{"operationId":"PutObject","x-mockingbird":{"supported":true,"parity":{"safe":false}},"requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Stored"},"400":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"GetObject","responses":{"200":{"description":"Object bytes","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Range bytes"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"416":{"$ref":"#/components/responses/Error"}}},"head":{"operationId":"HeadObject","responses":{"200":{"description":"Object metadata"},"404":{"description":"Missing"}}},"delete":{"operationId":"DeleteObject","x-mockingbird":{"supported":true,"parity":{"safe":false}},"responses":{"204":{"description":"Deleted"},"403":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"MultipartPost","x-mockingbird":{"supported":true,"parity":{"enabled":false,"reason":"Multipart XML protocol."}},"responses":{"200":{"description":"Multipart response","content":{"application/xml":{"schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/Error"}}}}},"components":{"responses":{"Error":{"description":"Canonical S3 XML error.","content":{"application/xml":{"schema":{"type":"string"}}}}}}}`);
@@ -8488,6 +8488,7 @@ var putObject = async (ctx) => {
8488
8488
  const expires = parseHttpDate2(system.get("expires") ?? "");
8489
8489
  const objectTags = tagging || system.get("x-amz-tagging") || "";
8490
8490
  const objectClass = system.get("x-amz-storage-class");
8491
+ checkPutPreconditions2(ctx);
8491
8492
  const version = ctx.core.write(
8492
8493
  {
8493
8494
  ...versionId ? { versionId } : {},
@@ -10975,7 +10976,7 @@ var S3API = class {
10975
10976
  if (!this.core.bucket(input.bucket))
10976
10977
  this.core.saveBucket(input.bucket, { createdAt: this.core.now() });
10977
10978
  const bytes = typeof input.body === "string" ? encoder5.encode(input.body) : input.body;
10978
- const { md5Hex: md5Hex2 } = await import("./digest-RHOQACCP.js");
10979
+ const { md5Hex: md5Hex2 } = await import("./digest-7S5ZYCX4.js");
10979
10980
  const tagging = typeof input.tags === "string" ? input.tags : input.tags ? new URLSearchParams(Object.entries(input.tags)).toString() : void 0;
10980
10981
  return this.core.write(
10981
10982
  {
@@ -11335,4 +11336,4 @@ export {
11335
11336
  createRuntime2 as createRuntime,
11336
11337
  accessKeyCredential
11337
11338
  };
11338
- //# sourceMappingURL=chunk-UYYWSTAR.js.map
11339
+ //# sourceMappingURL=chunk-3ZC2ZPN7.js.map