@speclynx/apidom-parser-adapter-openapi-yaml-3-0 4.0.4 → 4.1.0

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
+ # [4.1.0](https://github.com/speclynx/apidom/compare/v4.0.5...v4.1.0) (2026-03-16)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-yaml-3-0
9
+
10
+ ## [4.0.5](https://github.com/speclynx/apidom/compare/v4.0.4...v4.0.5) (2026-03-13)
11
+
12
+ **Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-yaml-3-0
13
+
6
14
  ## [4.0.4](https://github.com/speclynx/apidom/compare/v4.0.3...v4.0.4) (2026-03-12)
7
15
 
8
16
  ### Bug Fixes
@@ -48121,9 +48121,9 @@ const mergeVisitors = (visitors, options = {}) => {
48121
48121
  }
48122
48122
 
48123
48123
  // Handle path-based control flow
48124
+ // Note: no break here — other merged visitors must still process this node
48124
48125
  if (proxyPath.shouldStop) {
48125
48126
  skipping[i] = breakSymbol;
48126
- break;
48127
48127
  }
48128
48128
  if (proxyPath.shouldSkip) {
48129
48129
  skipping[i] = currentNode;
@@ -48154,6 +48154,11 @@ const mergeVisitors = (visitors, options = {}) => {
48154
48154
  }
48155
48155
  }
48156
48156
  }
48157
+
48158
+ // stop traversal only when all visitors have stopped
48159
+ if (skipping.every(s => s === breakSymbol)) {
48160
+ path.stop();
48161
+ }
48157
48162
  if (hasChanged) {
48158
48163
  path.replaceWith(currentNode);
48159
48164
  return currentNode;
@@ -48179,9 +48184,9 @@ const mergeVisitors = (visitors, options = {}) => {
48179
48184
  }
48180
48185
 
48181
48186
  // Handle path-based control flow
48187
+ // Note: no break here — other merged visitors must still process this node
48182
48188
  if (proxyPath.shouldStop) {
48183
48189
  skipping[i] = breakSymbol;
48184
- break;
48185
48190
  }
48186
48191
  if (proxyPath.removed) {
48187
48192
  path.remove();
@@ -48201,6 +48206,11 @@ const mergeVisitors = (visitors, options = {}) => {
48201
48206
  skipping[i] = internalSkipSymbol;
48202
48207
  }
48203
48208
  }
48209
+
48210
+ // stop traversal only when all visitors have stopped
48211
+ if (skipping.every(s => s === breakSymbol)) {
48212
+ path.stop();
48213
+ }
48204
48214
  return undefined;
48205
48215
  }
48206
48216
  };
@@ -48229,9 +48239,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
48229
48239
  if (typeof visitFn === 'function') {
48230
48240
  const proxyPath = createPathProxy(path, currentNode);
48231
48241
  const result = await visitFn.call(visitors[i], proxyPath);
48242
+
48243
+ // Handle path-based control flow
48244
+ // Note: no break here — other merged visitors must still process this node
48232
48245
  if (proxyPath.shouldStop) {
48233
48246
  skipping[i] = breakSymbol;
48234
- break;
48235
48247
  }
48236
48248
  if (proxyPath.shouldSkip) {
48237
48249
  skipping[i] = currentNode;
@@ -48261,6 +48273,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
48261
48273
  }
48262
48274
  }
48263
48275
  }
48276
+
48277
+ // stop traversal only when all visitors have stopped
48278
+ if (skipping.every(s => s === breakSymbol)) {
48279
+ path.stop();
48280
+ }
48264
48281
  if (hasChanged) {
48265
48282
  path.replaceWith(currentNode);
48266
48283
  return currentNode;
@@ -48275,9 +48292,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
48275
48292
  if (typeof visitFn === 'function') {
48276
48293
  const proxyPath = createPathProxy(path, currentNode);
48277
48294
  const result = await visitFn.call(visitors[i], proxyPath);
48295
+
48296
+ // Handle path-based control flow
48297
+ // Note: no break here — other merged visitors must still process this node
48278
48298
  if (proxyPath.shouldStop) {
48279
48299
  skipping[i] = breakSymbol;
48280
- break;
48281
48300
  }
48282
48301
  if (proxyPath.removed) {
48283
48302
  path.remove();
@@ -48296,6 +48315,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
48296
48315
  skipping[i] = internalSkipSymbol;
48297
48316
  }
48298
48317
  }
48318
+
48319
+ // stop traversal only when all visitors have stopped
48320
+ if (skipping.every(s => s === breakSymbol)) {
48321
+ path.stop();
48322
+ }
48299
48323
  return undefined;
48300
48324
  }
48301
48325
  };