Skip to content

Commit a819807

Browse files
Prepare release 3.5.0-rc0 (#414)
## Product change and motivation Bump version, prepare release notes
1 parent 4c73ae8 commit a819807

File tree

2 files changed

+28
-58
lines changed

2 files changed

+28
-58
lines changed

RELEASE_NOTES_LATEST.md

Lines changed: 27 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -3,82 +3,52 @@
33

44
Available through https://crates.io/crates/typeql.
55
```
6-
cargo add typeql@3.2.0
6+
cargo add typeql@3.5.0-rc0
77
```
88

99

1010
## New Features
11-
- **Add query end marker**
11+
12+
13+
## Bugs Fixed
14+
15+
16+
## Code Refactors
17+
- **Remove Java and update README**
18+
Remove deprecated Java code and grammar and update READMEs to align with the recent changes in TypeDB 3.x.
1219

13-
TypeQL query pipelines cannot be distinguished since query stages can be arbitrarily chained and concatenated. To resolve this, we introduce the `end;` marker. For example:
14-
```
15-
match ...
16-
insert ...
17-
end;
18-
match ...
19-
insert...
20-
```
2120

22-
Is now correctly interpretable as two separate match-insert queries! Compared to before:
21+
22+
## Other Improvements
23+
- **Bump behaviour**
24+
25+
- **Simplify type statements, allow empty define queries, bring back BDD**
26+
27+
Composite changes:
28+
1) We clean up the grammar for Type statements in both Patterns and Definables, which now allow commas after a `<kind> <variable>` query:
2329
```
24-
match ...
25-
insert ...
26-
match ...
27-
insert ...
30+
match entity $x, sub $y;
2831
```
32+
is now legal with the comma. This is a more regular language that is easier to generate.
2933

30-
Where it was not clear if this is one match-insert-match-insert pipeline, two match-insert pipelines, or 4 separate queries, or anything in between!
31-
32-
For simplicity, any query can be terminated with an 'end;` marker, though it is redundant in for schema queries and 'fetch' queries:
34+
2) we allow empty define/undefine/redefine queries:
3335
```
34-
define ...;
35-
end; # redundant!
36-
37-
match ...
38-
insert ...
39-
end; # not redundant!
40-
41-
match ...
42-
insert ...
43-
fetch { ... };
44-
end; # redundant!
36+
define
4537
```
4638

39+
This addresses: https://github.com/typedb/typedb/issues/7531
4740

48-
- **Add prefix query parser**
41+
3) We also re-enable half of our 2.x BDD suite, which parses every query in the behaviour repository (though we leave out the other 2.x half, which converts the parsed results back into strings, reparses, and validates the cycle is equivalent), ensuring we don't get parsing errors when we don't expect them and we do when they are expected.
4942

50-
We create a "query prefix parsing" API, which attempts to parse the maximal query prefix from the input.
5143

52-
This is designed to help applications like Console consume a single complete query at a time from a set of concatenated queries.
44+
- **Update README**
5345

54-
55-
- **Allow relates overrides to have lists**
56-
57-
We fix one syntactic inconsistency, grammatically allowing list overrides for relation's roles:
58-
```
59-
define
60-
relation sub-rel, relates sub-role[] as super-role[];
61-
```
62-
63-
## Bugs Fixed
64-
65-
66-
## Code Refactors
67-
- **Refactor grammar: partial rules, cleanup**
46+
- **Update factory/automation.yml**
47+
Fix build. Remove excessive branches
6848

69-
We rename rules used for partial parsing to have suffix `_partial` rather than `_no_test` (randomized tests only use complete queries).
7049

71-
72-
73-
## Other Improvements
74-
- **Fix unit test checks**
75-
76-
- **Improve TypeQL syntax errors**
77-
7850
- **Update README.md**
79-
80-
- **Update dependencies reference**
81-
Update dependencies reference to avoid conflicts with TypeDB server.
51+
Update contributors
8252

8353

8454

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0
1+
3.5.0-rc0

0 commit comments

Comments
 (0)