@crvouga/mockingbird-service-payload-cms 3.10.4 → 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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog — @crvouga/mockingbird-service-payload-cms
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
+
3
10
  ## 3.10.4 (2026-11-02)
4
11
 
5
12
  ### Fixes and improvements
@@ -9,7 +9,7 @@ import {
9
9
  parseFaultHeader,
10
10
  resolveAdminPrefix,
11
11
  restoreClock
12
- } from "./chunk-T5APRFS6.js";
12
+ } from "./chunk-U2VRUXU3.js";
13
13
 
14
14
  // src/server.ts
15
15
  import { readFile as readFile6 } from "node:fs/promises";
@@ -3060,7 +3060,7 @@ async function preflightFleet(config, options) {
3060
3060
  break;
3061
3061
  }
3062
3062
  }
3063
- targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.4" });
3063
+ targets.set(name, { ...target, packageVersion: packageVersion ?? "3.10.5" });
3064
3064
  } catch (error) {
3065
3065
  throw new Error(`service ${name}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
3066
3066
  }
@@ -5032,4 +5032,4 @@ export {
5032
5032
  createServer2 as createServer,
5033
5033
  serveTarget
5034
5034
  };
5035
- //# sourceMappingURL=chunk-GYXE63NY.js.map
5035
+ //# sourceMappingURL=chunk-RDNETMOF.js.map
@@ -20,6 +20,7 @@ var parsePath = (rawKey) => {
20
20
  return path;
21
21
  };
22
22
  var isIndex = (segment) => /^(0|[1-9][0-9]*)$/.test(segment);
23
+ var MAX_ARRAY_INDEX = 4294967294;
23
24
  var put = (target, key, value) => {
24
25
  if (key === "__proto__") {
25
26
  Object.defineProperty(target, key, {
@@ -82,8 +83,17 @@ var decodeFormPairs = (pairs) => {
82
83
  var densify = (value) => {
83
84
  if (typeof value === "string")
84
85
  return value;
85
- if (Array.isArray(value))
86
- return value.filter((item) => item !== void 0).map(densify);
86
+ if (Array.isArray(value)) {
87
+ const dense = [];
88
+ for (const key of Object.keys(value)) {
89
+ if (!isIndex(key) || Number(key) > MAX_ARRAY_INDEX)
90
+ continue;
91
+ const item = value[Number(key)];
92
+ if (item !== void 0)
93
+ dense.push(densify(item));
94
+ }
95
+ return dense;
96
+ }
87
97
  const out = {};
88
98
  for (const [key, item] of Object.entries(value))
89
99
  put(out, key, densify(item));
@@ -3767,7 +3777,7 @@ var stateAdminRoutes = (routes) => {
3767
3777
  };
3768
3778
 
3769
3779
  // ../core/dist/version.js
3770
- var PACKAGE_VERSION = true ? "3.10.4" : UNRELEASED_VERSION;
3780
+ var PACKAGE_VERSION = true ? "3.10.5" : UNRELEASED_VERSION;
3771
3781
 
3772
3782
  // ../core/dist/webhooks.js
3773
3783
  var json4 = (status, body) => new Response(JSON.stringify(body), {
@@ -5531,4 +5541,4 @@ export {
5531
5541
  compileWhere,
5532
5542
  PayloadCmsAPI
5533
5543
  };
5534
- //# sourceMappingURL=chunk-T5APRFS6.js.map
5544
+ //# sourceMappingURL=chunk-U2VRUXU3.js.map