@crvouga/mockingbird-service-s3 0.1.0 → 1.0.1

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,18 @@
1
1
  # Changelog — @crvouga/mockingbird-service-s3
2
2
 
3
+ ## 1.0.1 (2026-09-26)
4
+
5
+ ### Fixes and improvements
6
+
7
+ - take the rejected-request byte count from content-length, never by reading the body ([a0e5fb2](https://github.com/crvouga/mockingbird/commit/a0e5fb2fc80ab725c3552b612f3f091fd6c857fb))
8
+ - reject a present body by media type, and log what a rejected request sent ([12e351a](https://github.com/crvouga/mockingbird/commit/12e351aba53cfb7b41e31a7809419455fc2902eb))
9
+
10
+ ## 1.0.0 (2026-09-24)
11
+
12
+ ### ⚠️ Breaking changes
13
+
14
+ - vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
15
+
3
16
  ## 0.1.0 (2026-09-22)
4
17
 
5
18
  Initial release.
package/README.md CHANGED
@@ -39,7 +39,7 @@ The shared runtime also provides health, reset, journal, metrics, timeline, and
39
39
 
40
40
  ### Deliberately not modelled
41
41
 
42
- Operations outside the listed Geviti surface, object versioning, ACL/IAM policy evaluation, storage classes, checksums beyond ETags, production quotas, AWS dashboards and billing, virtual-host bucket routing, and real SQS delivery are not modelled. SQS consumers can use the same captured notification payload through a configured HTTP sink.
42
+ Operations outside the surface listed above, object versioning, ACL/IAM policy evaluation, storage classes, checksums beyond ETags, production quotas, AWS dashboards and billing, virtual-host bucket routing, and real SQS delivery are not modelled. SQS consumers can use the same captured notification payload through a configured HTTP sink.
43
43
 
44
44
  ## API
45
45
 
@@ -1437,7 +1437,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
1437
1437
  };
1438
1438
 
1439
1439
  // ../core/dist/version.js
1440
- var PACKAGE_VERSION = true ? "0.1.0" : UNRELEASED_VERSION;
1440
+ var PACKAGE_VERSION = true ? "1.0.1" : UNRELEASED_VERSION;
1441
1441
 
1442
1442
  // ../core/dist/signing.js
1443
1443
  var encoder = new TextEncoder();
@@ -2197,8 +2197,15 @@ var createRuntime = (options) => {
2197
2197
  const started = monotonicNow();
2198
2198
  const url = new URL(request.url);
2199
2199
  const operationId = operationIdFor(request, url.pathname);
2200
+ const contentLength = request.headers.get("content-length");
2201
+ const received = {
2202
+ contentType: request.headers.get("content-type"),
2203
+ bodyBytes: contentLength !== null && /^\d+$/.test(contentLength) ? Number(contentLength) : null,
2204
+ transferEncoding: request.headers.get("transfer-encoding")
2205
+ };
2200
2206
  const log = (status, faultId, response2) => {
2201
2207
  const noted = response2 ? responseNotes(response2) : void 0;
2208
+ const rejected = status >= 400 && faultId === void 0;
2202
2209
  const entry = {
2203
2210
  service: options.name,
2204
2211
  namespace,
@@ -2210,7 +2217,9 @@ var createRuntime = (options) => {
2210
2217
  unmatched: options.document !== void 0 && operationId === void 0,
2211
2218
  ...faultId !== void 0 ? { faultId } : {},
2212
2219
  ...noted?.ids && Object.keys(noted.ids).length > 0 ? { ids: noted.ids } : {},
2213
- ...noted?.adopted ? { adopted: true } : {}
2220
+ ...noted?.adopted ? { adopted: true } : {},
2221
+ ...rejected ? { request: { ...received } } : {},
2222
+ ...rejected && noted?.issues && noted.issues.length > 0 ? { issues: noted.issues.map((issue) => ({ ...issue })) } : {}
2214
2223
  };
2215
2224
  metrics.record(entry);
2216
2225
  journal.record({ ...entry, at: new Date(clock.now()).toISOString() });
@@ -2951,4 +2960,4 @@ export {
2951
2960
  accessKeyCredential,
2952
2961
  S3API
2953
2962
  };
2954
- //# sourceMappingURL=chunk-X47ACTY4.js.map
2963
+ //# sourceMappingURL=chunk-DP6UMZUI.js.map