@speclynx/apidom-overlay 4.7.0 → 4.7.1

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,10 @@
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.7.1](https://github.com/speclynx/apidom/compare/v4.7.0...v4.7.1) (2026-04-16)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-overlay
9
+
6
10
  # [4.7.0](https://github.com/speclynx/apidom/compare/v4.6.0...v4.7.0) (2026-04-12)
7
11
 
8
12
  ### Features
@@ -91948,6 +91948,7 @@ class Arazzo1DereferenceVisitor {
91948
91948
  * Transclude referencing element with merged referenced element.
91949
91949
  */
91950
91950
  path.replaceWith(mergedElement);
91951
+ path.skip();
91951
91952
  }
91952
91953
  async JSONSchemaElement(path) {
91953
91954
  const referencingElement = path.node;
@@ -92108,6 +92109,7 @@ class Arazzo1DereferenceVisitor {
92108
92109
  const replacer = this.options.dereference.strategyOpts['arazzo-1']?.circularReplacer ?? this.options.dereference.circularReplacer;
92109
92110
  const replacement = replacer(refElement);
92110
92111
  path.replaceWith(replacement);
92112
+ path.skip();
92111
92113
  return;
92112
92114
  }
92113
92115
  }
@@ -92151,6 +92153,7 @@ class Arazzo1DereferenceVisitor {
92151
92153
  booleanJsonSchemaElement.meta.set('ref-origin', reference.uri);
92152
92154
  booleanJsonSchemaElement.meta.set('ref-type', referencingElement.element);
92153
92155
  path.replaceWith(booleanJsonSchemaElement);
92156
+ path.skip();
92154
92157
  return;
92155
92158
  }
92156
92159
 
@@ -92603,6 +92606,7 @@ class AsyncAPI2DereferenceVisitor {
92603
92606
  const replacer = this.options.dereference.strategyOpts['asyncapi-2']?.circularReplacer ?? this.options.dereference.circularReplacer;
92604
92607
  const replacement = replacer(refElement);
92605
92608
  path.replaceWith(replacement);
92609
+ path.skip();
92606
92610
  return;
92607
92611
  }
92608
92612
  }
@@ -92647,6 +92651,7 @@ class AsyncAPI2DereferenceVisitor {
92647
92651
  booleanJsonSchemaElement.meta.set('ref-origin', reference.uri);
92648
92652
  booleanJsonSchemaElement.meta.set('ref-type', referencingElement.element);
92649
92653
  path.replaceWith(booleanJsonSchemaElement);
92654
+ path.skip();
92650
92655
  return;
92651
92656
  }
92652
92657
 
@@ -92666,6 +92671,7 @@ class AsyncAPI2DereferenceVisitor {
92666
92671
  * Transclude referencing element with merged referenced element.
92667
92672
  */
92668
92673
  path.replaceWith(mergedElement);
92674
+ path.skip();
92669
92675
  } catch (error) {
92670
92676
  const $ref = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(referencingElement.$ref);
92671
92677
  this.handleError(`Error while dereferencing Reference Object. Cannot resolve $ref "${$ref}": ${error.message}`, error, referencingElement, '$ref', $ref, path);
@@ -93241,6 +93247,7 @@ class OpenAPI2DereferenceVisitor {
93241
93247
  const replacer = this.options.dereference.strategyOpts['openapi-2']?.circularReplacer ?? this.options.dereference.circularReplacer;
93242
93248
  const replacement = replacer(refElement);
93243
93249
  path.replaceWith(replacement);
93250
+ path.skip();
93244
93251
  return;
93245
93252
  }
93246
93253
  }
@@ -93288,6 +93295,7 @@ class OpenAPI2DereferenceVisitor {
93288
93295
  * Transclude referencing element with merged referenced element.
93289
93296
  */
93290
93297
  path.replaceWith(mergedElement);
93298
+ path.skip();
93291
93299
  } catch (error) {
93292
93300
  const $ref = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(referencingElement.$ref);
93293
93301
  this.handleError(`Error while dereferencing Reference Object. Cannot resolve $ref "${$ref}": ${error.message}`, error, referencingElement, '$ref', $ref, path);
@@ -93375,6 +93383,7 @@ class OpenAPI2DereferenceVisitor {
93375
93383
  const replacer = this.options.dereference.strategyOpts['openapi-2']?.circularReplacer ?? this.options.dereference.circularReplacer;
93376
93384
  const replacement = replacer(refElement);
93377
93385
  path.replaceWith(replacement);
93386
+ path.skip();
93378
93387
  return;
93379
93388
  }
93380
93389
  }
@@ -93529,6 +93538,7 @@ class OpenAPI2DereferenceVisitor {
93529
93538
  const replacer = this.options.dereference.strategyOpts['openapi-2']?.circularReplacer ?? this.options.dereference.circularReplacer;
93530
93539
  const replacement = replacer(refElement);
93531
93540
  path.replaceWith(replacement);
93541
+ path.skip();
93532
93542
  return;
93533
93543
  }
93534
93544
  }
@@ -93578,6 +93588,7 @@ class OpenAPI2DereferenceVisitor {
93578
93588
  * Transclude referencing element with merged referenced element.
93579
93589
  */
93580
93590
  path.replaceWith(mergedElement);
93591
+ path.skip();
93581
93592
  } catch (error) {
93582
93593
  const $ref = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(referencingElement.$ref);
93583
93594
  this.handleError(`Error while dereferencing JSON Reference Object. Cannot resolve $ref "${$ref}": ${error.message}`, error, referencingElement, '$ref', $ref, path);
@@ -94006,6 +94017,7 @@ class OpenAPI3_0DereferenceVisitor {
94006
94017
  const replacer = this.options.dereference.strategyOpts['openapi-3-0']?.circularReplacer ?? this.options.dereference.circularReplacer;
94007
94018
  const replacement = replacer(refElement);
94008
94019
  path.replaceWith(replacement);
94020
+ path.skip();
94009
94021
  return;
94010
94022
  }
94011
94023
  }
@@ -94055,6 +94067,7 @@ class OpenAPI3_0DereferenceVisitor {
94055
94067
  * Transclude referencing element with merged referenced element.
94056
94068
  */
94057
94069
  path.replaceWith(mergedElement);
94070
+ path.skip();
94058
94071
  } catch (error) {
94059
94072
  const $ref = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_5__["default"])(referencingElement.$ref);
94060
94073
  this.handleError(`Error while dereferencing Reference Object. Cannot resolve $ref "${$ref}": ${error.message}`, error, referencingElement, '$ref', $ref, path);
@@ -94142,6 +94155,7 @@ class OpenAPI3_0DereferenceVisitor {
94142
94155
  const replacer = this.options.dereference.strategyOpts['openapi-3-0']?.circularReplacer ?? this.options.dereference.circularReplacer;
94143
94156
  const replacement = replacer(refElement);
94144
94157
  path.replaceWith(replacement);
94158
+ path.skip();
94145
94159
  return;
94146
94160
  }
94147
94161
  }
@@ -95004,6 +95018,7 @@ class OpenAPI3_1DereferenceVisitor {
95004
95018
  const replacer = this.options.dereference.strategyOpts['openapi-3-1']?.circularReplacer ?? this.options.dereference.circularReplacer;
95005
95019
  const replacement = replacer(refElement);
95006
95020
  path.replaceWith(replacement);
95021
+ path.skip();
95007
95022
  return;
95008
95023
  }
95009
95024
  }
@@ -95156,6 +95171,7 @@ class OpenAPI3_1DereferenceVisitor {
95156
95171
  const replacer = this.options.dereference.strategyOpts['openapi-3-1']?.circularReplacer ?? this.options.dereference.circularReplacer;
95157
95172
  const replacement = replacer(refElement);
95158
95173
  path.replaceWith(replacement);
95174
+ path.skip();
95159
95175
  return;
95160
95176
  }
95161
95177
  }
@@ -95512,6 +95528,7 @@ class OpenAPI3_1DereferenceVisitor {
95512
95528
  const replacer = this.options.dereference.strategyOpts['openapi-3-1']?.circularReplacer ?? this.options.dereference.circularReplacer;
95513
95529
  const replacement = replacer(refElement);
95514
95530
  path.replaceWith(replacement);
95531
+ path.skip();
95515
95532
  return;
95516
95533
  }
95517
95534
  }
@@ -95553,6 +95570,7 @@ class OpenAPI3_1DereferenceVisitor {
95553
95570
  booleanJsonSchemaElement.meta.set('ref-origin', reference.uri);
95554
95571
  booleanJsonSchemaElement.meta.set('ref-type', referencingElement.element);
95555
95572
  path.replaceWith(booleanJsonSchemaElement);
95573
+ path.skip();
95556
95574
  return;
95557
95575
  }
95558
95576
 
@@ -100261,11 +100279,6 @@ function* traverseGenerator(root, visitor, options) {
100261
100279
  if (currentPath.shouldStop) {
100262
100280
  break;
100263
100281
  }
100264
- if (currentPath.shouldSkip) {
100265
- if (!isLeaving) {
100266
- continue;
100267
- }
100268
- }
100269
100282
  if (currentPath.removed) {
100270
100283
  edits.push([key, null]);
100271
100284
  if (!isLeaving) {
@@ -100275,12 +100288,19 @@ function* traverseGenerator(root, visitor, options) {
100275
100288
  const replacement = currentPath._getReplacementNode();
100276
100289
  edits.push([key, replacement]);
100277
100290
  if (!isLeaving) {
100291
+ if (currentPath.shouldSkip) {
100292
+ continue;
100293
+ }
100278
100294
  if (nodePredicate(replacement)) {
100279
100295
  node = replacement;
100280
100296
  } else {
100281
100297
  continue;
100282
100298
  }
100283
100299
  }
100300
+ } else if (currentPath.shouldSkip) {
100301
+ if (!isLeaving) {
100302
+ continue;
100303
+ }
100284
100304
  } else if (result !== undefined) {
100285
100305
  // Support return value replacement for backwards compatibility
100286
100306
  edits.push([key, result]);