@swagger-api/apidom-parser-adapter-json-schema-json-2020-12 1.0.0-beta.43 → 1.0.0-beta.45

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.45](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2025-08-01)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json-schema-json-2020-12
9
+
10
+ # [1.0.0-beta.44](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2025-07-07)
11
+
12
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json-schema-json-2020-12
13
+
6
14
  # [1.0.0-beta.43](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2025-06-13)
7
15
 
8
16
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json-schema-json-2020-12
@@ -18327,7 +18327,8 @@ visitor, {
18327
18327
  nodeTypeGetter = getNodeType,
18328
18328
  nodePredicate = isNode,
18329
18329
  nodeCloneFn = cloneNode,
18330
- detectCycles = true
18330
+ detectCycles = true,
18331
+ detectCyclesCallback = null
18331
18332
  } = {}) => {
18332
18333
  const visitorKeys = keyMap || {};
18333
18334
  let stack;
@@ -18399,6 +18400,10 @@ visitor, {
18399
18400
 
18400
18401
  // cycle detected; skipping over a sub-tree to avoid recursion
18401
18402
  if (detectCycles && ancestors.includes(node)) {
18403
+ if (typeof detectCyclesCallback === 'function') {
18404
+ // @ts-ignore
18405
+ detectCyclesCallback(node, key, parent, path, ancestors);
18406
+ }
18402
18407
  path.pop();
18403
18408
  continue;
18404
18409
  }
@@ -18501,7 +18506,8 @@ visitor, {
18501
18506
  nodeTypeGetter = getNodeType,
18502
18507
  nodePredicate = isNode,
18503
18508
  nodeCloneFn = cloneNode,
18504
- detectCycles = true
18509
+ detectCycles = true,
18510
+ detectCyclesCallback = null
18505
18511
  } = {}) => {
18506
18512
  const visitorKeys = keyMap || {};
18507
18513
  let stack;
@@ -18572,6 +18578,10 @@ visitor, {
18572
18578
 
18573
18579
  // cycle detected; skipping over a sub-tree to avoid recursion
18574
18580
  if (detectCycles && ancestors.includes(node)) {
18581
+ if (typeof detectCyclesCallback === 'function') {
18582
+ // @ts-ignore
18583
+ detectCyclesCallback(node, key, parent, path, ancestors);
18584
+ }
18575
18585
  path.pop();
18576
18586
  continue;
18577
18587
  }