@crvouga/mockingbird-service-intercom 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-intercom
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-MKKGU7UB.js";
12
+ } from "./chunk-UWZVCPP7.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
  }
@@ -5058,4 +5058,4 @@ export {
5058
5058
  createServer2 as createServer,
5059
5059
  serveTarget
5060
5060
  };
5061
- //# sourceMappingURL=chunk-PHP3QSE7.js.map
5061
+ //# sourceMappingURL=chunk-NADJAZUV.js.map
@@ -3323,7 +3323,8 @@ var IdempotencyStore = class {
3323
3323
  /**
3324
3324
  * Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
3325
3325
  * the method, path and canonical body). Only `replayable` responses are stored (default:
3326
- * every status below 500, as Stripe does), so a transient failure can be retried.
3326
+ * every status below 500), so a transient failure can be retried. `replayable` also sees the
3327
+ * response, for vendors that decide from more than the status.
3327
3328
  */
3328
3329
  async run(key, fingerprint, errors, handler, replayable = (status) => status < 500) {
3329
3330
  const slot = `${this.namespace}\0${key}`;
@@ -3345,7 +3346,7 @@ var IdempotencyStore = class {
3345
3346
  }));
3346
3347
  try {
3347
3348
  const response = await handler();
3348
- if (!replayable(response.status))
3349
+ if (!replayable(response.status, response))
3349
3350
  return response;
3350
3351
  const body = await response.clone().text();
3351
3352
  this.responses.insert(key, {
@@ -4145,7 +4146,7 @@ var stateAdminRoutes = (routes) => {
4145
4146
  };
4146
4147
 
4147
4148
  // ../core/dist/version.js
4148
- var PACKAGE_VERSION = true ? "3.10.3" : UNRELEASED_VERSION;
4149
+ var PACKAGE_VERSION = true ? "3.10.4" : UNRELEASED_VERSION;
4149
4150
 
4150
4151
  // ../core/dist/signing.js
4151
4152
  var encoder = new TextEncoder();
@@ -7265,4 +7266,4 @@ export {
7265
7266
  IntercomError,
7266
7267
  IntercomAPI
7267
7268
  };
7268
- //# sourceMappingURL=chunk-MKKGU7UB.js.map
7269
+ //# sourceMappingURL=chunk-UWZVCPP7.js.map