@travetto/model-query-language 6.0.0-rc.2 → 6.0.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/README.md CHANGED
@@ -25,6 +25,7 @@ This module provides a textual query language for the [Data Model Querying](http
25
25
  * `in`, `not-in` - Supports checking if a field is in a list of literal values
26
26
  * `and`, `&&` - Intersection of clauses
27
27
  * `or`, `||` - Union of clauses
28
+
28
29
  All sub fields are dot separated for access, e.g. `user.address.city`.A query language version of the previous query could look like:
29
30
 
30
31
  **Code: Query language with boolean checks and exists check**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-query-language",
3
- "version": "6.0.0-rc.2",
3
+ "version": "6.0.1",
4
4
  "description": "Datastore query language.",
5
5
  "keywords": [
6
6
  "datastore",
@@ -26,12 +26,12 @@
26
26
  "directory": "module/model-query"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/model": "^6.0.0-rc.2",
30
- "@travetto/model-query": "^6.0.0-rc.2",
31
- "@travetto/schema": "^6.0.0-rc.2"
29
+ "@travetto/model": "^6.0.1",
30
+ "@travetto/model-query": "^6.0.1",
31
+ "@travetto/schema": "^6.0.1"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/test": "^6.0.0-rc.2"
34
+ "@travetto/test": "^6.0.2"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/test": {
package/src/parser.ts CHANGED
@@ -114,7 +114,7 @@ export class QueryLanguageParser {
114
114
  stack.push(top = []);
115
115
  } else {
116
116
  const group = stack.pop()!;
117
- top = stack[stack.length - 1];
117
+ top = stack.at(-1)!;
118
118
  this.condense(group, 'or');
119
119
  top.push(group[0]);
120
120
  this.unary(top);