@swagger-api/apidom-parser-adapter-api-design-systems-yaml 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-api-design-systems-yaml
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-api-design-systems-yaml
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-api-design-systems-yaml
@@ -1012,7 +1012,8 @@ visitor, {
1012
1012
  nodeTypeGetter = getNodeType,
1013
1013
  nodePredicate = isNode,
1014
1014
  nodeCloneFn = cloneNode,
1015
- detectCycles = true
1015
+ detectCycles = true,
1016
+ detectCyclesCallback = null
1016
1017
  } = {}) => {
1017
1018
  const visitorKeys = keyMap || {};
1018
1019
  let stack;
@@ -1084,6 +1085,10 @@ visitor, {
1084
1085
 
1085
1086
  // cycle detected; skipping over a sub-tree to avoid recursion
1086
1087
  if (detectCycles && ancestors.includes(node)) {
1088
+ if (typeof detectCyclesCallback === 'function') {
1089
+ // @ts-ignore
1090
+ detectCyclesCallback(node, key, parent, path, ancestors);
1091
+ }
1087
1092
  path.pop();
1088
1093
  continue;
1089
1094
  }
@@ -1186,7 +1191,8 @@ visitor, {
1186
1191
  nodeTypeGetter = getNodeType,
1187
1192
  nodePredicate = isNode,
1188
1193
  nodeCloneFn = cloneNode,
1189
- detectCycles = true
1194
+ detectCycles = true,
1195
+ detectCyclesCallback = null
1190
1196
  } = {}) => {
1191
1197
  const visitorKeys = keyMap || {};
1192
1198
  let stack;
@@ -1257,6 +1263,10 @@ visitor, {
1257
1263
 
1258
1264
  // cycle detected; skipping over a sub-tree to avoid recursion
1259
1265
  if (detectCycles && ancestors.includes(node)) {
1266
+ if (typeof detectCyclesCallback === 'function') {
1267
+ // @ts-ignore
1268
+ detectCyclesCallback(node, key, parent, path, ancestors);
1269
+ }
1260
1270
  path.pop();
1261
1271
  continue;
1262
1272
  }