Skip to content

Commit a996fc1

Browse files
authored
Prepare for release 3.2.0-rc0 (#752)
## Usage and product changes Update version and release notes ## Implementation
1 parent e8eddbe commit a996fc1

File tree

6 files changed

+36
-64
lines changed

6 files changed

+36
-64
lines changed

RELEASE_NOTES_LATEST.md

Lines changed: 24 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Documentation: https://typedb.com/docs/drivers/rust/overview
99

1010

1111
```sh
12-
cargo add typedb-driver@3.1.0
12+
cargo add typedb-driver@3.2.0-rc0
1313
```
1414

1515

1616
### Java driver
1717

18-
Available through [https://repo.typedb.com](https://cloudsmith.io/~typedb/repos/public-release/packages/detail/maven/typedb-driver/3.1.0/a=noarch;xg=com.typedb/)
18+
Available through [https://repo.typedb.com](https://cloudsmith.io/~typedb/repos/public-release/packages/detail/maven/typedb-driver/3.2.0-rc0/a=noarch;xg=com.typedb/)
1919
Documentation: https://typedb.com/docs/drivers/java/overview
2020

2121
```xml
@@ -29,7 +29,7 @@ Documentation: https://typedb.com/docs/drivers/java/overview
2929
<dependency>
3030
<groupid>com.typedb</groupid>
3131
<artifactid>typedb-driver</artifactid>
32-
<version>3.1.0</version>
32+
<version>3.2.0-rc0</version>
3333
</dependency>
3434
</dependencies>
3535
```
@@ -42,63 +42,35 @@ Documentation: https://typedb.com/docs/drivers/python/overview
4242
Available through https://pypi.org
4343

4444
```
45-
pip install typedb-driver==3.1.0
45+
pip install typedb-driver==3.2.0rc0
4646
```
4747

48-
## New Features
49-
50-
- **Add Python 3.13 release jobs**
51-
TypeDB Driver for Python 3.13 is now officially published.
52-
53-
54-
- **Introduce a single driver creation endpoint for all editions of TypeDB**
55-
Introduce a single driver creation endpoint for all editions of TypeDB: all `new_core`, `new_cloud`, `TypeDB.core`, `TypeDB.cloud`, and other alternatives in TypeDB drivers now have a single `new` / `driver` method that accepts a single string as an address.
56-
57-
Use it for any edition of TypeDB 3.x (Community Edition, Cloud, Enterprise) the following way (check out `README` or driver documentation for full usage examples):
58-
Rust:
59-
```rust
60-
let driver = TypeDBDriver::new(
61-
TypeDBDriver::DEFAULT_ADDRESS,
62-
Credentials::new("admin", "password"),
63-
DriverOptions::new(false, None).unwrap(),
64-
)
65-
.await
66-
.unwrap();
67-
```
6848

69-
Python:
70-
```py
71-
driver = TypeDB.driver(TypeDB.DEFAULT_ADDRESS, Credentials("admin", "password"), DriverOptions())
72-
```
73-
74-
Java:
75-
```java
76-
Driver driver = TypeDB.driver(TypeDB.DEFAULT_ADDRESS, new Credentials("admin", "password"), new DriverOptions(false, null));
77-
```
78-
79-
Currently, TypeDB 3.x supports only a single server address, so the list-based method overloading is unnecessary. We plan to preserve the same simplified API after introducing multi-node servers, extending the accepted formats of the input address string instead. Stay tuned for details!
49+
## New Features
50+
- **Introduce Rust driver token-based authentication**
51+
We update the protocol version and introduce token-based authentication for all the available drivers. Now, instead of sending usernames and passwords for authentication purposes, authorization tokens are implicitly added to every network request to a TypeDB server. It enhances the authentication speed and security.
52+
53+
These tokens are acquired as a result of driver instantiation and are renewed automatically. This feature does not require any user-side changes.
54+
55+
Additionally, as a part of the HTTP client introduction work, we rename Concept Documents key style from snake_case to camelCase, which is a common convention for JSONs (it affects only value types: `value_type` -> `valueType`).
56+
57+
8058

8159
## Bugs Fixed
8260

8361

8462
## Code Refactors
8563

8664

87-
8865
## Other Improvements
89-
90-
- **Fix python example build**
91-
92-
- **Update dependencies for the 3.0.1 release**
93-
Update dependencies.
94-
95-
- **RustFmt**
96-
97-
- **Clean up Driver field, update core artifact to 3.0.6**
98-
99-
- **Fix checkstyle**
100-
101-
- **Check in Cargo.toml files**
102-
103-
- **Update Rust version to 1.81.0**
104-
66+
- **Update dependencies**
67+
After a recent update of the crates, rustls added aws-lc-rs as a default dependency. This caused runtime issues during loading of the shared library where the dynamic linker could not find some symbols from aws-lc:
68+
69+
```
70+
ImportError: dlopen(.../native_driver_python.so, 0x0002): symbol not found in flat namespace '_aws_lc_0_28_0_EVP_aead_aes_128_gcm'
71+
```
72+
73+
We decided to force the use of ring as the cryptographic provider for rustls instead.
74+
75+
76+

VERSION

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

c/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ features = {}
2121

2222
[dependencies.log]
2323
features = ["kv", "kv_unstable", "std", "value-bag"]
24-
version = "0.4.26"
24+
version = "0.4.27"
2525
default-features = false
2626

2727
[dependencies.typedb-driver]

dependencies/typedb/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def typedb_protocol():
2828
git_repository(
2929
name = "typedb_protocol",
3030
remote = "https://github.com/typedb/typedb-protocol",
31-
commit = "9e46e089a005d6ca9f017ffb482337b9d5718695", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_protocol
31+
tag = "3.2.0-rc0", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_protocol
3232
)
3333

3434
def typedb_behaviour():

rust/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
[dev-dependencies.async-std]
3030
features = ["alloc", "async-attributes", "async-channel", "async-global-executor", "async-io", "async-lock", "attributes", "crossbeam-utils", "default", "futures-channel", "futures-core", "futures-io", "futures-lite", "gloo-timers", "kv-log-macro", "log", "memchr", "once_cell", "pin-project-lite", "pin-utils", "slab", "std", "wasm-bindgen-futures"]
31-
version = "1.13.0"
31+
version = "1.13.1"
3232
default-features = false
3333

3434
[dev-dependencies.config]
@@ -55,18 +55,18 @@
5555

5656
[dependencies.tokio]
5757
features = ["bytes", "default", "fs", "full", "io-std", "io-util", "libc", "macros", "mio", "net", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "sync", "time", "tokio-macros"]
58-
version = "1.43.0"
58+
version = "1.44.2"
5959
default-features = false
6060

6161
[dependencies.typedb-protocol]
6262
features = []
63-
rev = "9e46e089a005d6ca9f017ffb482337b9d5718695"
6463
git = "https://github.com/typedb/typedb-protocol"
64+
tag = "3.2.0-rc0"
6565
default-features = false
6666

6767
[dependencies.log]
6868
features = ["kv", "kv_unstable", "std", "value-bag"]
69-
version = "0.4.26"
69+
version = "0.4.27"
7070
default-features = false
7171

7272
[dependencies.tokio-stream]
@@ -86,7 +86,7 @@
8686

8787
[dependencies.uuid]
8888
features = ["default", "fast-rng", "rng", "serde", "std", "v4"]
89-
version = "1.15.1"
89+
version = "1.16.0"
9090
default-features = false
9191

9292
[dependencies.prost]
@@ -106,7 +106,7 @@
106106

107107
[dependencies.http]
108108
features = ["default", "std"]
109-
version = "1.2.0"
109+
version = "1.3.1"
110110
default-features = false
111111

112112
[dependencies.maybe-async]

rust/tests/behaviour/steps/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ features = {}
1616

1717
[dependencies.tokio]
1818
features = ["bytes", "default", "fs", "full", "io-std", "io-util", "libc", "macros", "mio", "net", "parking_lot", "process", "rt", "rt-multi-thread", "signal", "signal-hook-registry", "socket2", "sync", "time", "tokio-macros"]
19-
version = "1.43.0"
19+
version = "1.44.2"
2020
default-features = false
2121

2222
[dependencies.smol]
@@ -36,7 +36,7 @@ features = {}
3636

3737
[dependencies.async-std]
3838
features = ["alloc", "async-attributes", "async-channel", "async-global-executor", "async-io", "async-lock", "attributes", "crossbeam-utils", "default", "futures-channel", "futures-core", "futures-io", "futures-lite", "gloo-timers", "kv-log-macro", "log", "memchr", "once_cell", "pin-project-lite", "pin-utils", "slab", "std", "wasm-bindgen-futures"]
39-
version = "1.13.0"
39+
version = "1.13.1"
4040
default-features = false
4141

4242
[dependencies.macro_rules_attribute]
@@ -61,7 +61,7 @@ features = {}
6161

6262
[dependencies.uuid]
6363
features = ["default", "fast-rng", "rng", "serde", "std", "v4"]
64-
version = "1.15.1"
64+
version = "1.16.0"
6565
default-features = false
6666

6767
[dependencies.itertools]

0 commit comments

Comments
 (0)