@swagger-api/apidom-parser-adapter-openapi-yaml-2 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-openapi-yaml-2
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-openapi-yaml-2
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-openapi-yaml-2
@@ -21988,7 +21988,8 @@ visitor, {
21988
21988
  nodeTypeGetter = getNodeType,
21989
21989
  nodePredicate = isNode,
21990
21990
  nodeCloneFn = cloneNode,
21991
- detectCycles = true
21991
+ detectCycles = true,
21992
+ detectCyclesCallback = null
21992
21993
  } = {}) => {
21993
21994
  const visitorKeys = keyMap || {};
21994
21995
  let stack;
@@ -22060,6 +22061,10 @@ visitor, {
22060
22061
 
22061
22062
  // cycle detected; skipping over a sub-tree to avoid recursion
22062
22063
  if (detectCycles && ancestors.includes(node)) {
22064
+ if (typeof detectCyclesCallback === 'function') {
22065
+ // @ts-ignore
22066
+ detectCyclesCallback(node, key, parent, path, ancestors);
22067
+ }
22063
22068
  path.pop();
22064
22069
  continue;
22065
22070
  }
@@ -22162,7 +22167,8 @@ visitor, {
22162
22167
  nodeTypeGetter = getNodeType,
22163
22168
  nodePredicate = isNode,
22164
22169
  nodeCloneFn = cloneNode,
22165
- detectCycles = true
22170
+ detectCycles = true,
22171
+ detectCyclesCallback = null
22166
22172
  } = {}) => {
22167
22173
  const visitorKeys = keyMap || {};
22168
22174
  let stack;
@@ -22233,6 +22239,10 @@ visitor, {
22233
22239
 
22234
22240
  // cycle detected; skipping over a sub-tree to avoid recursion
22235
22241
  if (detectCycles && ancestors.includes(node)) {
22242
+ if (typeof detectCyclesCallback === 'function') {
22243
+ // @ts-ignore
22244
+ detectCyclesCallback(node, key, parent, path, ancestors);
22245
+ }
22236
22246
  path.pop();
22237
22247
  continue;
22238
22248
  }