@crvouga/mockingbird-service-sqs 1.0.0 → 1.0.2

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,15 +1,24 @@
1
1
  # Changelog — @crvouga/mockingbird-service-sqs
2
2
 
3
+ ## 1.0.2 (2026-09-26)
4
+
5
+ ### Fixes and improvements
6
+
7
+ - treat enum [""] branches as unset markers in form coercion ([7177835](https://github.com/crvouga/mockingbird/commit/7177835cc510e14245d6648ad2821daa694bb80c))
8
+
9
+ ## 1.0.1 (2026-09-25)
10
+
11
+ ### Fixes and improvements
12
+
13
+ - take the rejected-request byte count from content-length, never by reading the body ([a0e5fb2](https://github.com/crvouga/mockingbird/commit/a0e5fb2fc80ab725c3552b612f3f091fd6c857fb))
14
+ - reject a present body by media type, and log what a rejected request sent ([12e351a](https://github.com/crvouga/mockingbird/commit/12e351aba53cfb7b41e31a7809419455fc2902eb))
15
+
3
16
  ## 1.0.0 (2026-09-24)
4
17
 
5
18
  ### ⚠️ Breaking changes
6
19
 
7
20
  - vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
8
21
 
9
- ### Dependencies
10
-
11
- - `@crvouga/mockingbird-service-sqlite`
12
-
13
22
  ## 0.1.0 (2026-09-22)
14
23
 
15
24
  Initial release.
@@ -1437,7 +1437,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
1437
1437
  };
1438
1438
 
1439
1439
  // ../core/dist/version.js
1440
- var PACKAGE_VERSION = true ? "1.0.0" : UNRELEASED_VERSION;
1440
+ var PACKAGE_VERSION = true ? "1.0.2" : UNRELEASED_VERSION;
1441
1441
 
1442
1442
  // ../core/dist/webhooks.js
1443
1443
  var json2 = (status, body) => new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json" } });
@@ -1875,8 +1875,15 @@ var createRuntime = (options) => {
1875
1875
  const started = monotonicNow();
1876
1876
  const url = new URL(request.url);
1877
1877
  const operationId = operationIdFor(request, url.pathname);
1878
+ const contentLength = request.headers.get("content-length");
1879
+ const received = {
1880
+ contentType: request.headers.get("content-type"),
1881
+ bodyBytes: contentLength !== null && /^\d+$/.test(contentLength) ? Number(contentLength) : null,
1882
+ transferEncoding: request.headers.get("transfer-encoding")
1883
+ };
1878
1884
  const log = (status, faultId, response2) => {
1879
1885
  const noted = response2 ? responseNotes(response2) : void 0;
1886
+ const rejected = status >= 400 && faultId === void 0;
1880
1887
  const entry = {
1881
1888
  service: options.name,
1882
1889
  namespace,
@@ -1888,7 +1895,9 @@ var createRuntime = (options) => {
1888
1895
  unmatched: options.document !== void 0 && operationId === void 0,
1889
1896
  ...faultId !== void 0 ? { faultId } : {},
1890
1897
  ...noted?.ids && Object.keys(noted.ids).length > 0 ? { ids: noted.ids } : {},
1891
- ...noted?.adopted ? { adopted: true } : {}
1898
+ ...noted?.adopted ? { adopted: true } : {},
1899
+ ...rejected ? { request: { ...received } } : {},
1900
+ ...rejected && noted?.issues && noted.issues.length > 0 ? { issues: noted.issues.map((issue) => ({ ...issue })) } : {}
1892
1901
  };
1893
1902
  metrics.record(entry);
1894
1903
  journal.record({ ...entry, at: new Date(clock.now()).toISOString() });
@@ -2583,4 +2592,4 @@ export {
2583
2592
  accessKeyCredential,
2584
2593
  SqsAPI
2585
2594
  };
2586
- //# sourceMappingURL=chunk-IS3ACCQV.js.map
2595
+ //# sourceMappingURL=chunk-55WDA5CE.js.map