@speclynx/apidom-parser-adapter-asyncapi-json-2 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-asyncapi-json-2
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-asyncapi-json-2
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
@@ -43274,9 +43274,9 @@ const mergeVisitors = (visitors, options = {}) => {
43274
43274
  }
43275
43275
 
43276
43276
  // Handle path-based control flow
43277
+ // Note: no break here — other merged visitors must still process this node
43277
43278
  if (proxyPath.shouldStop) {
43278
43279
  skipping[i] = breakSymbol;
43279
- break;
43280
43280
  }
43281
43281
  if (proxyPath.shouldSkip) {
43282
43282
  skipping[i] = currentNode;
@@ -43307,6 +43307,11 @@ const mergeVisitors = (visitors, options = {}) => {
43307
43307
  }
43308
43308
  }
43309
43309
  }
43310
+
43311
+ // stop traversal only when all visitors have stopped
43312
+ if (skipping.every(s => s === breakSymbol)) {
43313
+ path.stop();
43314
+ }
43310
43315
  if (hasChanged) {
43311
43316
  path.replaceWith(currentNode);
43312
43317
  return currentNode;
@@ -43332,9 +43337,9 @@ const mergeVisitors = (visitors, options = {}) => {
43332
43337
  }
43333
43338
 
43334
43339
  // Handle path-based control flow
43340
+ // Note: no break here — other merged visitors must still process this node
43335
43341
  if (proxyPath.shouldStop) {
43336
43342
  skipping[i] = breakSymbol;
43337
- break;
43338
43343
  }
43339
43344
  if (proxyPath.removed) {
43340
43345
  path.remove();
@@ -43354,6 +43359,11 @@ const mergeVisitors = (visitors, options = {}) => {
43354
43359
  skipping[i] = internalSkipSymbol;
43355
43360
  }
43356
43361
  }
43362
+
43363
+ // stop traversal only when all visitors have stopped
43364
+ if (skipping.every(s => s === breakSymbol)) {
43365
+ path.stop();
43366
+ }
43357
43367
  return undefined;
43358
43368
  }
43359
43369
  };
@@ -43382,9 +43392,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
43382
43392
  if (typeof visitFn === 'function') {
43383
43393
  const proxyPath = createPathProxy(path, currentNode);
43384
43394
  const result = await visitFn.call(visitors[i], proxyPath);
43395
+
43396
+ // Handle path-based control flow
43397
+ // Note: no break here — other merged visitors must still process this node
43385
43398
  if (proxyPath.shouldStop) {
43386
43399
  skipping[i] = breakSymbol;
43387
- break;
43388
43400
  }
43389
43401
  if (proxyPath.shouldSkip) {
43390
43402
  skipping[i] = currentNode;
@@ -43414,6 +43426,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
43414
43426
  }
43415
43427
  }
43416
43428
  }
43429
+
43430
+ // stop traversal only when all visitors have stopped
43431
+ if (skipping.every(s => s === breakSymbol)) {
43432
+ path.stop();
43433
+ }
43417
43434
  if (hasChanged) {
43418
43435
  path.replaceWith(currentNode);
43419
43436
  return currentNode;
@@ -43428,9 +43445,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
43428
43445
  if (typeof visitFn === 'function') {
43429
43446
  const proxyPath = createPathProxy(path, currentNode);
43430
43447
  const result = await visitFn.call(visitors[i], proxyPath);
43448
+
43449
+ // Handle path-based control flow
43450
+ // Note: no break here — other merged visitors must still process this node
43431
43451
  if (proxyPath.shouldStop) {
43432
43452
  skipping[i] = breakSymbol;
43433
- break;
43434
43453
  }
43435
43454
  if (proxyPath.removed) {
43436
43455
  path.remove();
@@ -43449,6 +43468,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
43449
43468
  skipping[i] = internalSkipSymbol;
43450
43469
  }
43451
43470
  }
43471
+
43472
+ // stop traversal only when all visitors have stopped
43473
+ if (skipping.every(s => s === breakSymbol)) {
43474
+ path.stop();
43475
+ }
43452
43476
  return undefined;
43453
43477
  }
43454
43478
  };