|
3 | 3 |
|
4 | 4 | Available through https://crates.io/crates/typeql. |
5 | 5 | ``` |
6 | | -cargo add typeql@3.8.0 |
| 6 | +cargo add typeql@3.8.2 |
7 | 7 | ``` |
8 | 8 |
|
9 | 9 |
|
10 | 10 | ## New Features |
11 | | -- **Add built-in functions iid() and label()** |
| 11 | +- **Allow leading underscore in type labels** |
12 | 12 |
|
13 | | - We add `iid()` and `label()` to the built-in functions in the TypeQL grammar. |
| 13 | + We relax our identifier rules, allowing `_` as a leading underscore in type labels. This does NOT extend to variables, since we have some complexity around anonymous variables for the time being we don't want to modify. |
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
17 | 17 | ## Bugs Fixed |
18 | | -- **Use XID_START and XID_CONTINUE character classes** |
19 | | - |
20 | | - We use `XID_START` and `XID_CONTINUE` character classes provided by pest instead of manually listing unicode codepoint ranges for our identifiers. We also change the definition of the word boundary (`WB`) to be "any character that is not an identifier continuation character" that resolves parsing bugs such as `let $var= 4;` failing to parse: `=` is not `PUNCTUATION`, so not valid word boundary. |
21 | | - |
22 | | - |
23 | | - |
24 | | -## Code Refactors |
25 | 18 |
|
26 | 19 |
|
27 | | -## Other Improvements |
28 | | -- **Expose value parser** |
29 | | - |
30 | | - We expose value parsing as a top-level function, and update the value literal definitions. This lets us re-use the value parser for test frameworks in other repositories. |
| 20 | +## Code Refactors |
| 21 | +- **Introduce Collector variant of Reducer to accomodate the unimplemented list reducer** |
| 22 | + It was placed under Stat, which it is not and caused confusion & crashes in core. |
31 | 23 |
|
32 | 24 |
|
33 | | -- **Update TypeQL banner image link in README** |
34 | | - |
35 | | -- **Add contributing guidelines to CONTRIBUTING.md** |
36 | 25 |
|
37 | | -- **Allow trailing commas (#421)** |
| 26 | +## Other Improvements |
| 27 | +- **Add tests for end; clause in query pipelines** |
38 | 28 |
|
39 | | - To simplify writing and generating queries, we allow trailing commas anywhere we use a comma separated list of variables, statements, reductions, etc. |
| 29 | + Add tests for `end;` statements |
40 | 30 |
|
| 31 | +- **Allow decimal syntax without a period** |
41 | 32 |
|
42 | | -- **Remove discussion and Stack Overflow links** |
43 | | - |
44 | | -- **Allow trailing commas** |
| 33 | + To give both humans and LLMs more flexibility when writing `decimal` value types, we no longer requiring the `.0` in `xxx.0dec`. This is unambiguous since the `dec` suffix already syntactically differentiates when a value is a decimal. |
45 | 34 |
|
46 | | - To simplify writing and generating queries, we allow trailing commas anywhere we use a comma separated list of variables, statements, reductions, etc. |
47 | 35 |
|
48 | 36 |
|
49 | 37 |
|
0 commit comments