Skip to content

Commit dc61e21

Browse files
committed
chore: release 4.1.0
1 parent 17dd339 commit dc61e21

4 files changed

Lines changed: 32 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
toolchain: nightly
2121
components: rustfmt, clippy
2222
- uses: Swatinem/rust-cache@v2
23+
with:
24+
cache-bin: false
2325
- name: Check format
2426
run: cargo fmt --all -- --check
2527

@@ -42,6 +44,8 @@ jobs:
4244
toolchain: stable
4345
components: rustfmt, clippy
4446
- uses: Swatinem/rust-cache@v2
47+
with:
48+
cache-bin: false
4549

4650
- name: Check with clippy
4751
run: cargo clippy -p longbridge --all-features
@@ -74,6 +78,8 @@ jobs:
7478
toolchain: stable
7579
components: rustfmt, clippy
7680
- uses: Swatinem/rust-cache@v2
81+
with:
82+
cache-bin: false
7783

7884
- name: Check with clippy
7985
run: cargo clippy -p longbridge-python --all-features
@@ -119,6 +125,8 @@ jobs:
119125
components: rustfmt, clippy
120126
targets: ${{ matrix.target }}
121127
- uses: Swatinem/rust-cache@v2
128+
with:
129+
cache-bin: false
122130

123131
- name: Setup QEMU
124132
if: matrix.target == 'aarch64-unknown-linux-musl'
@@ -180,6 +188,8 @@ jobs:
180188
components: rustfmt, clippy
181189
targets: ${{ matrix.settings.target }}
182190
- uses: Swatinem/rust-cache@v2
191+
with:
192+
cache-bin: false
183193

184194
- name: Check with clippy
185195
run: cargo clippy -p longbridge-nodejs --all-features
@@ -247,6 +257,8 @@ jobs:
247257
toolchain: stable
248258
components: rustfmt, clippy
249259
- uses: Swatinem/rust-cache@v2
260+
with:
261+
cache-bin: false
250262

251263
- name: Check with clippy
252264
run: cargo clippy -p longbridge-java --all-features
@@ -283,6 +295,8 @@ jobs:
283295
toolchain: stable
284296
components: rustfmt, clippy
285297
- uses: Swatinem/rust-cache@v2
298+
with:
299+
cache-bin: false
286300

287301
- name: Get CMake
288302
uses: lukka/get-cmake@latest
@@ -330,6 +344,8 @@ jobs:
330344
toolchain: stable
331345
components: rustfmt, clippy
332346
- uses: Swatinem/rust-cache@v2
347+
with:
348+
cache-bin: false
333349

334350
- name: Install target
335351
run: |
@@ -376,6 +392,8 @@ jobs:
376392
toolchain: stable
377393
components: rustfmt, clippy
378394
- uses: Swatinem/rust-cache@v2
395+
with:
396+
cache-bin: false
379397

380398
- name: Install target
381399
run: |

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# [4.1.0]
8+
9+
## Breaking changes
10+
11+
- **All languages (Rust, Python, Node.js, Java, C, C++):** `AlertContext::enable()` and `AlertContext::disable()` have been replaced by a single `AlertContext::update(item, enabled)` method. Pass the `AlertItem` from `list()` directly — `enabled = true` enables, `enabled = false` disables. This fixes `invalid frequency` / `invalid indicator id` API errors caused by the old methods sending incomplete fields.
12+
713
# [4.0.6]
814

915
## Added

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ resolver = "3"
33
members = ["rust", "python", "nodejs", "java", "c"]
44

55
[workspace.package]
6-
version = "4.0.6"
6+
version = "4.1.0"
77
edition = "2024"
88

99
[profile.release]
1010
lto = true
1111

1212
[workspace.dependencies]
13-
longbridge-geo = { path = "rust/crates/geo", version = "4.0.6" }
14-
longbridge-wscli = { path = "rust/crates/wsclient", version = "4.0.6" }
15-
longbridge-httpcli = { path = "rust/crates/httpclient", version = "4.0.6" }
16-
longbridge-proto = { path = "rust/crates/proto", version = "4.0.6" }
17-
longbridge-candlesticks = { path = "rust/crates/candlesticks", version = "4.0.6" }
18-
longbridge-oauth = { path = "rust/crates/oauth", version = "4.0.6" }
19-
longbridge = { path = "rust", version = "4.0.6" }
13+
longbridge-geo = { path = "rust/crates/geo", version = "4.1.0" }
14+
longbridge-wscli = { path = "rust/crates/wsclient", version = "4.1.0" }
15+
longbridge-httpcli = { path = "rust/crates/httpclient", version = "4.1.0" }
16+
longbridge-proto = { path = "rust/crates/proto", version = "4.1.0" }
17+
longbridge-candlesticks = { path = "rust/crates/candlesticks", version = "4.1.0" }
18+
longbridge-oauth = { path = "rust/crates/oauth", version = "4.1.0" }
19+
longbridge = { path = "rust", version = "4.1.0" }
2020

2121
tokio = "1.47.1"
2222
tokio-tungstenite = "0.27.0"

python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[project]
22
name = "longbridge"
3-
version = "4.0.6"
43
classifiers = [
54
"Development Status :: 3 - Alpha",
65
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)