@crvouga/mockingbird-service-aha 3.10.3 → 3.10.4

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,11 @@
1
1
  # Changelog — @crvouga/mockingbird-service-aha
2
2
 
3
+ ## 3.10.4 (2026-11-02)
4
+
5
+ ### Fixes and improvements
6
+
7
+ - do not save idempotent results for requests that fail validation ([f2161aa](https://github.com/crvouga/mockingbird/commit/f2161aadeae30bcc586e26131da12a7030bdeb11))
8
+
3
9
  ## 3.10.3 (2026-11-02)
4
10
 
5
11
  ### Fixes and improvements
@@ -9,7 +9,7 @@ import {
9
9
  parseFaultHeader,
10
10
  resolveAdminPrefix,
11
11
  restoreClock
12
- } from "./chunk-2E3QAXJD.js";
12
+ } from "./chunk-KO36APMJ.js";
13
13
 
14
14
  // ../../adapters/node/dist/cli.js
15
15
  import { readFile as readFile5 } from "node:fs/promises";
@@ -3057,7 +3057,7 @@ async function preflightFleet(config, options) {
3057
3057
  break;
3058
3058
  }
3059
3059
  }
3060
- targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.3" });
3060
+ targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.4" });
3061
3061
  } catch (error) {
3062
3062
  throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
3063
3063
  }
@@ -5080,4 +5080,4 @@ export {
5080
5080
  createServer2 as createServer,
5081
5081
  serveTarget
5082
5082
  };
5083
- //# sourceMappingURL=chunk-TYJVLMNR.js.map
5083
+ //# sourceMappingURL=chunk-F74PD2VS.js.map
@@ -3348,7 +3348,8 @@ var IdempotencyStore = class {
3348
3348
  /**
3349
3349
  * Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
3350
3350
  * the method, path and canonical body). Only `replayable` responses are stored (default:
3351
- * every status below 500, as Stripe does), so a transient failure can be retried.
3351
+ * every status below 500), so a transient failure can be retried. `replayable` also sees the
3352
+ * response, for vendors that decide from more than the status.
3352
3353
  */
3353
3354
  async run(key2, fingerprint, errors, handler, replayable = (status) => status < 500) {
3354
3355
  const slot = `${this.namespace}\0${key2}`;
@@ -3370,7 +3371,7 @@ var IdempotencyStore = class {
3370
3371
  }));
3371
3372
  try {
3372
3373
  const response = await handler();
3373
- if (!replayable(response.status))
3374
+ if (!replayable(response.status, response))
3374
3375
  return response;
3375
3376
  const body = await response.clone().text();
3376
3377
  this.responses.insert(key2, {
@@ -4100,7 +4101,7 @@ var stateAdminRoutes = (routes) => {
4100
4101
  };
4101
4102
 
4102
4103
  // ../core/dist/version.js
4103
- var PACKAGE_VERSION = true ? "3.10.3" : UNRELEASED_VERSION;
4104
+ var PACKAGE_VERSION = true ? "3.10.4" : UNRELEASED_VERSION;
4104
4105
 
4105
4106
  // ../core/dist/signing.js
4106
4107
  var encoder = new TextEncoder();
@@ -6533,4 +6534,4 @@ export {
6533
6534
  apiKeyCredential,
6534
6535
  AhaAPI
6535
6536
  };
6536
- //# sourceMappingURL=chunk-2E3QAXJD.js.map
6537
+ //# sourceMappingURL=chunk-KO36APMJ.js.map