@surrealdb/lezer 1.0.5 → 1.0.8
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/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-run-tests.log +13 -4
- package/dist/index.cjs +203 -201
- package/dist/index.js +203 -201
- package/package.json +1 -1
- package/src/parser.js +17 -17
- package/src/parser.terms.js +370 -369
- package/src/surrealql.grammar +22 -12
- package/src/tokens.js +2 -0
- package/test/statements/define.txt +56 -0
- package/test/statements/update.txt +8 -0
- package/test/values/numbers.txt +14 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$ lezer-generator src/surrealql.grammar -o src/parser.js && rollup -c
|
|
2
|
-
Precedence specified for unknown token "f'" (src/surrealql.grammar
|
|
3
|
-
Precedence specified for unknown token "f\"" (src/surrealql.grammar
|
|
2
|
+
Precedence specified for unknown token "f'" (src/surrealql.grammar 1651:15)
|
|
3
|
+
Precedence specified for unknown token "f\"" (src/surrealql.grammar 1651:20)
|
|
4
4
|
Wrote src/parser.js and src/parser.terms.js
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1m./dist/index.cjs, ./dist/index.js[22m...[39m
|
|
7
|
-
[32mcreated [1m./dist/index.cjs, ./dist/index.js[22m in [
|
|
7
|
+
[32mcreated [1m./dist/index.cjs, ./dist/index.js[22m in [1m91ms[22m[39m
|
|
@@ -39,15 +39,22 @@ $ bun run test/test-surrealql.js
|
|
|
39
39
|
[32m✔[0m Define database
|
|
40
40
|
[32m✔[0m Define user
|
|
41
41
|
[32m✔[0m Define event
|
|
42
|
+
[32m✔[0m Define event with async
|
|
42
43
|
[32m✔[0m Define field
|
|
43
44
|
[32m✔[0m Define field with default
|
|
44
45
|
[32m✔[0m Define field with assert
|
|
45
46
|
[32m✔[0m Define field readonly
|
|
46
47
|
[32m✔[0m Define field flexible type
|
|
48
|
+
[32m✔[0m Define field with flexible after type clause
|
|
49
|
+
[32m✔[0m Define field flexible after parameterized object type
|
|
47
50
|
[32m✔[0m Define field with permissions
|
|
48
51
|
[32m✔[0m Define field with reference
|
|
49
52
|
[32m✔[0m Define field with computed
|
|
53
|
+
[32m✔[0m Define field on array items
|
|
54
|
+
[32m✔[0m Define field on array items with bracket wildcard
|
|
55
|
+
[32m✔[0m Define field nested below array items
|
|
50
56
|
[32m✔[0m Define index unique
|
|
57
|
+
[32m✔[0m Define index on array items
|
|
51
58
|
[32m✔[0m Define index search analyzer
|
|
52
59
|
[32m✔[0m Define index mtree
|
|
53
60
|
[32m✔[0m Define index hnsw
|
|
@@ -68,7 +75,7 @@ $ bun run test/test-surrealql.js
|
|
|
68
75
|
[32m✔[0m Define config graphql
|
|
69
76
|
[32m✔[0m Define bucket
|
|
70
77
|
[32m✔[0m Define scope
|
|
71
|
-
[2m
|
|
78
|
+
[2m 42 tests: 42 passed[0m
|
|
72
79
|
|
|
73
80
|
[1mstatements/delete.txt[0m
|
|
74
81
|
[32m✔[0m Simple delete
|
|
@@ -245,13 +252,14 @@ $ bun run test/test-surrealql.js
|
|
|
245
252
|
[32m✔[0m Update with SET
|
|
246
253
|
[32m✔[0m Update with CONTENT
|
|
247
254
|
[32m✔[0m Update with MERGE
|
|
255
|
+
[32m✔[0m Update path target with MERGE expression
|
|
248
256
|
[32m✔[0m Update with REPLACE
|
|
249
257
|
[32m✔[0m Update with UNSET
|
|
250
258
|
[32m✔[0m Update with WHERE
|
|
251
259
|
[32m✔[0m Update with RETURN
|
|
252
260
|
[32m✔[0m Update with TIMEOUT
|
|
253
261
|
[32m✔[0m Update with PARALLEL
|
|
254
|
-
[2m
|
|
262
|
+
[2m 12 tests: 12 passed[0m
|
|
255
263
|
|
|
256
264
|
[1mstatements/upsert.txt[0m
|
|
257
265
|
[32m✔[0m Simple upsert
|
|
@@ -366,11 +374,12 @@ $ bun run test/test-surrealql.js
|
|
|
366
374
|
[32m✔[0m Float
|
|
367
375
|
[32m✔[0m Float with exponent
|
|
368
376
|
[32m✔[0m Float with f suffix
|
|
377
|
+
[32m✔[0m Underscore separators
|
|
369
378
|
[32m✔[0m Float special values
|
|
370
379
|
[32m✔[0m Decimal
|
|
371
380
|
[32m✔[0m Negative numbers
|
|
372
381
|
[32m✔[0m Positive explicit sign
|
|
373
|
-
[2m
|
|
382
|
+
[2m 9 tests: 9 passed[0m
|
|
374
383
|
|
|
375
384
|
[1mvalues/objects.txt[0m
|
|
376
385
|
[32m✔[0m Simple object
|
|
@@ -498,4 +507,4 @@ $ bun run test/test-surrealql.js
|
|
|
498
507
|
[32m✔[0m Subquery with create
|
|
499
508
|
[2m 3 tests: 3 passed[0m
|
|
500
509
|
|
|
501
|
-
[1mTotal[0m:
|
|
510
|
+
[1mTotal[0m: 363 | [32mPassed: 363[0m | [2mFailed: 0[0m
|