@speclynx/apidom-parser-adapter-openapi-yaml-3-1 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-1
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-1
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
@@ -48099,18 +48099,13 @@ const specification = {
48099
48099
  "use strict";
48100
48100
  __webpack_require__.r(__webpack_exports__);
48101
48101
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48102
- /* harmony export */ ancestorLineageToJSONPointer: () => (/* binding */ ancestorLineageToJSONPointer),
48103
48102
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
48104
48103
  /* harmony export */ });
48105
48104
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55156);
48106
48105
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25162);
48107
- /* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44673);
48108
- /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61198);
48109
- /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(76332);
48110
- /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68201);
48111
- /* harmony import */ var _namespace_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57195);
48112
-
48113
-
48106
+ /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76332);
48107
+ /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68201);
48108
+ /* harmony import */ var _namespace_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57195);
48114
48109
 
48115
48110
 
48116
48111
 
@@ -48118,46 +48113,21 @@ __webpack_require__.r(__webpack_exports__);
48118
48113
  /**
48119
48114
  * @public
48120
48115
  */
48121
- /**
48122
- * Translates visitor ancestor lineage to a JSON Pointer tokens.
48123
- * Ancestor lineage is constructed of following visitor method arguments:
48124
- *
48125
- * - ancestors
48126
- * - parent
48127
- * - element
48128
- * @public
48129
- */
48130
- const ancestorLineageToJSONPointer = elementPath => {
48131
- const jsonPointerTokens = elementPath.reduce((path, element, index) => {
48132
- if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isMemberElement)(element)) {
48133
- const token = String((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(element.key));
48134
- path.push(token);
48135
- } else if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(elementPath[index - 2])) {
48136
- const arrayElement = elementPath[index - 2];
48137
- const token = String(arrayElement.content?.indexOf(element) ?? -1);
48138
- path.push(token);
48139
- }
48140
- return path;
48141
- }, []);
48142
- return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_3__.compile)(jsonPointerTokens);
48143
- };
48144
-
48145
48116
  /**
48146
48117
  * @public
48147
48118
  */
48148
48119
  const createToolbox = () => {
48149
48120
  const namespace = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["default"]();
48150
48121
  const predicates = {
48151
- ..._predicates_mjs__WEBPACK_IMPORTED_MODULE_5__,
48152
- ..._predicates_mjs__WEBPACK_IMPORTED_MODULE_4__,
48122
+ ..._predicates_mjs__WEBPACK_IMPORTED_MODULE_3__,
48123
+ ..._predicates_mjs__WEBPACK_IMPORTED_MODULE_2__,
48153
48124
  isStringElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isStringElement,
48154
48125
  isArrayElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isArrayElement,
48155
48126
  isObjectElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isObjectElement
48156
48127
  };
48157
- namespace.use(_namespace_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]);
48128
+ namespace.use(_namespace_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
48158
48129
  return {
48159
48130
  predicates,
48160
- ancestorLineageToJSONPointer,
48161
48131
  namespace
48162
48132
  };
48163
48133
  };
@@ -53730,9 +53700,9 @@ const mergeVisitors = (visitors, options = {}) => {
53730
53700
  }
53731
53701
 
53732
53702
  // Handle path-based control flow
53703
+ // Note: no break here — other merged visitors must still process this node
53733
53704
  if (proxyPath.shouldStop) {
53734
53705
  skipping[i] = breakSymbol;
53735
- break;
53736
53706
  }
53737
53707
  if (proxyPath.shouldSkip) {
53738
53708
  skipping[i] = currentNode;
@@ -53763,6 +53733,11 @@ const mergeVisitors = (visitors, options = {}) => {
53763
53733
  }
53764
53734
  }
53765
53735
  }
53736
+
53737
+ // stop traversal only when all visitors have stopped
53738
+ if (skipping.every(s => s === breakSymbol)) {
53739
+ path.stop();
53740
+ }
53766
53741
  if (hasChanged) {
53767
53742
  path.replaceWith(currentNode);
53768
53743
  return currentNode;
@@ -53788,9 +53763,9 @@ const mergeVisitors = (visitors, options = {}) => {
53788
53763
  }
53789
53764
 
53790
53765
  // Handle path-based control flow
53766
+ // Note: no break here — other merged visitors must still process this node
53791
53767
  if (proxyPath.shouldStop) {
53792
53768
  skipping[i] = breakSymbol;
53793
- break;
53794
53769
  }
53795
53770
  if (proxyPath.removed) {
53796
53771
  path.remove();
@@ -53810,6 +53785,11 @@ const mergeVisitors = (visitors, options = {}) => {
53810
53785
  skipping[i] = internalSkipSymbol;
53811
53786
  }
53812
53787
  }
53788
+
53789
+ // stop traversal only when all visitors have stopped
53790
+ if (skipping.every(s => s === breakSymbol)) {
53791
+ path.stop();
53792
+ }
53813
53793
  return undefined;
53814
53794
  }
53815
53795
  };
@@ -53838,9 +53818,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
53838
53818
  if (typeof visitFn === 'function') {
53839
53819
  const proxyPath = createPathProxy(path, currentNode);
53840
53820
  const result = await visitFn.call(visitors[i], proxyPath);
53821
+
53822
+ // Handle path-based control flow
53823
+ // Note: no break here — other merged visitors must still process this node
53841
53824
  if (proxyPath.shouldStop) {
53842
53825
  skipping[i] = breakSymbol;
53843
- break;
53844
53826
  }
53845
53827
  if (proxyPath.shouldSkip) {
53846
53828
  skipping[i] = currentNode;
@@ -53870,6 +53852,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
53870
53852
  }
53871
53853
  }
53872
53854
  }
53855
+
53856
+ // stop traversal only when all visitors have stopped
53857
+ if (skipping.every(s => s === breakSymbol)) {
53858
+ path.stop();
53859
+ }
53873
53860
  if (hasChanged) {
53874
53861
  path.replaceWith(currentNode);
53875
53862
  return currentNode;
@@ -53884,9 +53871,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
53884
53871
  if (typeof visitFn === 'function') {
53885
53872
  const proxyPath = createPathProxy(path, currentNode);
53886
53873
  const result = await visitFn.call(visitors[i], proxyPath);
53874
+
53875
+ // Handle path-based control flow
53876
+ // Note: no break here — other merged visitors must still process this node
53887
53877
  if (proxyPath.shouldStop) {
53888
53878
  skipping[i] = breakSymbol;
53889
- break;
53890
53879
  }
53891
53880
  if (proxyPath.removed) {
53892
53881
  path.remove();
@@ -53905,6 +53894,11 @@ const mergeVisitorsAsync = (visitors, options = {}) => {
53905
53894
  skipping[i] = internalSkipSymbol;
53906
53895
  }
53907
53896
  }
53897
+
53898
+ // stop traversal only when all visitors have stopped
53899
+ if (skipping.every(s => s === breakSymbol)) {
53900
+ path.stop();
53901
+ }
53908
53902
  return undefined;
53909
53903
  }
53910
53904
  };