@crvouga/mockingbird-service-aha 3.10.3 → 3.10.5
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 +13 -0
- package/dist/{chunk-TYJVLMNR.js → chunk-ADYZRHXX.js} +3 -3
- package/dist/{chunk-2E3QAXJD.js → chunk-Z7OP6ANU.js} +17 -6
- package/dist/chunk-Z7OP6ANU.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/server.d.ts +3 -2
- package/dist/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-2E3QAXJD.js.map +0 -7
- /package/dist/{chunk-TYJVLMNR.js.map → chunk-ADYZRHXX.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-aha
|
|
2
2
|
|
|
3
|
+
## 3.10.5 (2026-11-02)
|
|
4
|
+
|
|
5
|
+
### Fixes and improvements
|
|
6
|
+
|
|
7
|
+
- stop walkSchema recursing forever on a self-referential $ref ([69464a9](https://github.com/crvouga/mockingbird/commit/69464a9d9e7f468c5e1095125108d4d3d5515431))
|
|
8
|
+
- densify sparse bracket arrays by their written indices ([84a28cb](https://github.com/crvouga/mockingbird/commit/84a28cb182e3d7df91102897f0fc11fca714ba5f))
|
|
9
|
+
|
|
10
|
+
## 3.10.4 (2026-11-02)
|
|
11
|
+
|
|
12
|
+
### Fixes and improvements
|
|
13
|
+
|
|
14
|
+
- do not save idempotent results for requests that fail validation ([f2161aa](https://github.com/crvouga/mockingbird/commit/f2161aadeae30bcc586e26131da12a7030bdeb11))
|
|
15
|
+
|
|
3
16
|
## 3.10.3 (2026-11-02)
|
|
4
17
|
|
|
5
18
|
### Fixes and improvements
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseFaultHeader,
|
|
10
10
|
resolveAdminPrefix,
|
|
11
11
|
restoreClock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z7OP6ANU.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.
|
|
3060
|
+
targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.5" });
|
|
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-
|
|
5083
|
+
//# sourceMappingURL=chunk-ADYZRHXX.js.map
|
|
@@ -495,6 +495,7 @@ var parsePath = (rawKey) => {
|
|
|
495
495
|
return path;
|
|
496
496
|
};
|
|
497
497
|
var isIndex = (segment) => /^(0|[1-9][0-9]*)$/.test(segment);
|
|
498
|
+
var MAX_ARRAY_INDEX = 4294967294;
|
|
498
499
|
var put = (target, key2, value) => {
|
|
499
500
|
if (key2 === "__proto__") {
|
|
500
501
|
Object.defineProperty(target, key2, {
|
|
@@ -557,8 +558,17 @@ var decodeFormPairs = (pairs) => {
|
|
|
557
558
|
var densify = (value) => {
|
|
558
559
|
if (typeof value === "string")
|
|
559
560
|
return value;
|
|
560
|
-
if (Array.isArray(value))
|
|
561
|
-
|
|
561
|
+
if (Array.isArray(value)) {
|
|
562
|
+
const dense = [];
|
|
563
|
+
for (const key2 of Object.keys(value)) {
|
|
564
|
+
if (!isIndex(key2) || Number(key2) > MAX_ARRAY_INDEX)
|
|
565
|
+
continue;
|
|
566
|
+
const item = value[Number(key2)];
|
|
567
|
+
if (item !== void 0)
|
|
568
|
+
dense.push(densify(item));
|
|
569
|
+
}
|
|
570
|
+
return dense;
|
|
571
|
+
}
|
|
562
572
|
const out = {};
|
|
563
573
|
for (const [key2, item] of Object.entries(value))
|
|
564
574
|
put(out, key2, densify(item));
|
|
@@ -3348,7 +3358,8 @@ var IdempotencyStore = class {
|
|
|
3348
3358
|
/**
|
|
3349
3359
|
* Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
|
|
3350
3360
|
* the method, path and canonical body). Only `replayable` responses are stored (default:
|
|
3351
|
-
* every status below 500
|
|
3361
|
+
* every status below 500), so a transient failure can be retried. `replayable` also sees the
|
|
3362
|
+
* response, for vendors that decide from more than the status.
|
|
3352
3363
|
*/
|
|
3353
3364
|
async run(key2, fingerprint, errors, handler, replayable = (status) => status < 500) {
|
|
3354
3365
|
const slot = `${this.namespace}\0${key2}`;
|
|
@@ -3370,7 +3381,7 @@ var IdempotencyStore = class {
|
|
|
3370
3381
|
}));
|
|
3371
3382
|
try {
|
|
3372
3383
|
const response = await handler();
|
|
3373
|
-
if (!replayable(response.status))
|
|
3384
|
+
if (!replayable(response.status, response))
|
|
3374
3385
|
return response;
|
|
3375
3386
|
const body = await response.clone().text();
|
|
3376
3387
|
this.responses.insert(key2, {
|
|
@@ -4100,7 +4111,7 @@ var stateAdminRoutes = (routes) => {
|
|
|
4100
4111
|
};
|
|
4101
4112
|
|
|
4102
4113
|
// ../core/dist/version.js
|
|
4103
|
-
var PACKAGE_VERSION = true ? "3.10.
|
|
4114
|
+
var PACKAGE_VERSION = true ? "3.10.5" : UNRELEASED_VERSION;
|
|
4104
4115
|
|
|
4105
4116
|
// ../core/dist/signing.js
|
|
4106
4117
|
var encoder = new TextEncoder();
|
|
@@ -6533,4 +6544,4 @@ export {
|
|
|
6533
6544
|
apiKeyCredential,
|
|
6534
6545
|
AhaAPI
|
|
6535
6546
|
};
|
|
6536
|
-
//# sourceMappingURL=chunk-
|
|
6547
|
+
//# sourceMappingURL=chunk-Z7OP6ANU.js.map
|