@speclynx/apidom-parser-adapter-asyncapi-yaml-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-yaml-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-yaml-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
@@ -56001,9 +56001,9 @@ const mergeVisitors = (visitors, options = {}) => {
56001
56001
  }
56002
56002
 
56003
56003
  // Handle path-based control flow
56004
+ // Note: no break here — other merged visitors must still process this node
56004
56005
  if (proxyPath.shouldStop) {
56005
56006
  skipping[i] = breakSymbol;
56006
- break;
56007
56007
  }
56008
56008
  if (proxyPath.shouldSkip) {
56009
56009
  skipping[i] = currentNode;
@@ -56034,6 +56034,11 @@ const mergeVisitors = (visitors, options = {}) => {
56034
56034
  }
56035
56035
  }
56036
56036
  }
56037
+
56038
+ // stop traversal only when all visitors have stopped
56039
+ if (skipping.every(s => s === breakSymbol)) {
56040
+ path.stop();
56041
+ }
56037
56042
  if (hasChanged) {
56038
56043
  path.replaceWith(currentNode);
56039
56044
  return currentNode;
@@ -56059,9 +56064,9 @@ const mergeVisitors = (visitors, options = {}) => {
56059
56064
  }
56060
56065
 
56061
56066
  // Handle path-based control flow
56067
+ // Note: no break here — other merged visitors must still process this node
56062
56068
  if (proxyPath.shouldStop) {
56063
56069
  skipping[i] = breakSymbol;
56064
- break;
56065
56070
  }
56066
56071
  if (proxyPath.removed) {
56067
56072
  path.remove();
@@ -56081,6 +56086,11 @@ const mergeVisitors = (visitors, options = {}) => {
56081
56086
  skipping[i] = internalSkipSymbol;
56082
56087
  }
56083
56088
  }
56089
+
56090
+ // stop traversal only when all visitors have stopped
56091
+ if (skipping.every(s => s === breakSymbol)) {
56092
+ path.stop();
56093
+ }
56084
56094
  return undefined;
56085
56095
  }
56086
56096
  };
@@ -56109,9 +56119,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
56109
56119
  if (typeof visitFn === 'function') {
56110
56120
  const proxyPath = createPathProxy(path, currentNode);
56111
56121
  const result = await visitFn.call(visitors[i], proxyPath);
56122
+
56123
+ // Handle path-based control flow
56124
+ // Note: no break here — other merged visitors must still process this node
56112
56125
  if (proxyPath.shouldStop) {
56113
56126
  skipping[i] = breakSymbol;
56114
- break;
56115
56127
  }
56116
56128
  if (proxyPath.shouldSkip) {
56117
56129
  skipping[i] = currentNode;
@@ -56141,6 +56153,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
56141
56153
  }
56142
56154
  }
56143
56155
  }
56156
+
56157
+ // stop traversal only when all visitors have stopped
56158
+ if (skipping.every(s => s === breakSymbol)) {
56159
+ path.stop();
56160
+ }
56144
56161
  if (hasChanged) {
56145
56162
  path.replaceWith(currentNode);
56146
56163
  return currentNode;
@@ -56155,9 +56172,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
56155
56172
  if (typeof visitFn === 'function') {
56156
56173
  const proxyPath = createPathProxy(path, currentNode);
56157
56174
  const result = await visitFn.call(visitors[i], proxyPath);
56175
+
56176
+ // Handle path-based control flow
56177
+ // Note: no break here — other merged visitors must still process this node
56158
56178
  if (proxyPath.shouldStop) {
56159
56179
  skipping[i] = breakSymbol;
56160
- break;
56161
56180
  }
56162
56181
  if (proxyPath.removed) {
56163
56182
  path.remove();
@@ -56176,6 +56195,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
56176
56195
  skipping[i] = internalSkipSymbol;
56177
56196
  }
56178
56197
  }
56198
+
56199
+ // stop traversal only when all visitors have stopped
56200
+ if (skipping.every(s => s === breakSymbol)) {
56201
+ path.stop();
56202
+ }
56179
56203
  return undefined;
56180
56204
  }
56181
56205
  };