@swaggerexpert/jsonpath 2.2.0 → 2.3.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/README.md CHANGED
@@ -152,7 +152,7 @@ interface CSTNode {
152
152
  ###### CST Optimized translator
153
153
 
154
154
  Same as CST, but optimizes the tree for more optimized representation. By default, it collapses
155
- fragmented `single-quoted` or `double-quoted` nodes into a single node.
155
+ fragmented `single-quoted`, `double-quoted` or `normal-single-quoted` nodes into a single node.
156
156
 
157
157
  ```js
158
158
  import { parse, CSTOptimizedTranslator } from '@swaggerexpert/jsonpath';
@@ -360,7 +360,7 @@ literal = number / string-literal /
360
360
  comparable = singular-query / ; singular query value
361
361
  function-expr / ; ValueType
362
362
  literal
363
- ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343
363
+ ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352
364
364
  comparison-op = "==" / "!=" /
365
365
  "<=" / ">=" /
366
366
  "<" / ">"
@@ -424,9 +424,9 @@ descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: s
424
424
 
425
425
  ; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths
426
426
  normalized-path = root-identifier *(normal-index-segment)
427
- normal-index-segment = "[" normal-selector "]"
427
+ normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used
428
428
  normal-selector = normal-name-selector / normal-index-selector
429
- normal-name-selector = %x27 *normal-single-quoted %x27 ; 'string'
429
+ normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used
430
430
  normal-single-quoted = normal-unescaped /
431
431
  ESC normal-escapable
432
432
  normal-unescaped = ; omit %x0-1F control codes
@@ -5,7 +5,7 @@ exports.default = void 0;
5
5
  var _CSTTranslator = _interopRequireDefault(require("./CSTTranslator.cjs"));
6
6
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
7
  class CSTOptimizedTranslator extends _CSTTranslator.default {
8
- collapsibleTypes = ['single-quoted', 'double-quoted'];
8
+ collapsibleTypes = ['single-quoted', 'double-quoted', 'normal-single-quoted'];
9
9
  constructor({
10
10
  collapsibleTypes
11
11
  } = {}) {
@@ -1,6 +1,6 @@
1
1
  import CSTTranslator from "./CSTTranslator.mjs";
2
2
  class CSTOptimizedTranslator extends CSTTranslator {
3
- collapsibleTypes = ['single-quoted', 'double-quoted'];
3
+ collapsibleTypes = ['single-quoted', 'double-quoted', 'normal-single-quoted'];
4
4
  constructor({
5
5
  collapsibleTypes
6
6
  } = {}) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.2.0",
6
+ "version": "2.3.0",
7
7
  "description": "RCF 9535 implementation of JSONPath",
8
8
  "main": "./cjs/index.cjs",
9
9
  "types": "./types/index.d.ts",