@speclynx/apidom-overlay 5.2.2 → 5.2.4

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
+ ## [5.2.4](https://github.com/speclynx/apidom/compare/v5.2.3...v5.2.4) (2026-09-15)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-overlay
9
+
10
+ ## [5.2.3](https://github.com/speclynx/apidom/compare/v5.2.2...v5.2.3) (2026-09-15)
11
+
12
+ **Note:** Version bump only for package @speclynx/apidom-overlay
13
+
6
14
  ## [5.2.2](https://github.com/speclynx/apidom/compare/v5.2.1...v5.2.2) (2026-09-03)
7
15
 
8
16
  **Note:** Version bump only for package @speclynx/apidom-overlay
@@ -7703,7 +7703,6 @@ class JSONEvaluationRealm extends _EvaluationRealm_mjs__WEBPACK_IMPORTED_MODULE_
7703
7703
  if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(left) && (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(right)) return left < right;
7704
7704
  return false;
7705
7705
  case '<=':
7706
- if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNothing)(left) || (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNothing)(right)) return false;
7707
7706
  if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(left) && (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(right)) return left <= right;
7708
7707
  if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(left) && (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(right)) return left <= right;
7709
7708
  return this.#deepEqual(left, right);
@@ -7713,7 +7712,6 @@ class JSONEvaluationRealm extends _EvaluationRealm_mjs__WEBPACK_IMPORTED_MODULE_
7713
7712
  if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(left) && (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(right)) return left > right;
7714
7713
  return false;
7715
7714
  case '>=':
7716
- if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNothing)(left) || (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNothing)(right)) return false;
7717
7715
  if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(left) && (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumber)(right)) return left >= right;
7718
7716
  if ((0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(left) && (0,_utils_guards_mjs__WEBPACK_IMPORTED_MODULE_1__.isString)(right)) return left >= right;
7719
7717
  return this.#deepEqual(left, right);
@@ -40278,10 +40276,12 @@ class ApiDOMEvaluationRealm extends _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MO
40278
40276
  }
40279
40277
  }
40280
40278
  compare(left, operator, right) {
40281
- // Handle Nothing (undefined) comparisons
40279
+ // Handle Nothing (undefined) comparisons (RFC 9535 §2.3.5.2.2)
40280
+ // `<=` and `>=` are defined by composition (`a < b || a == b`), so Nothing <= Nothing holds.
40282
40281
  if (left === undefined || right === undefined) {
40283
- if (operator === '==') return left === undefined && right === undefined;
40284
- if (operator === '!=') return !(left === undefined && right === undefined);
40282
+ const bothNothing = left === undefined && right === undefined;
40283
+ if (operator === '==' || operator === '<=' || operator === '>=') return bothNothing;
40284
+ if (operator === '!=') return !bothNothing;
40285
40285
  return false;
40286
40286
  }
40287
40287