Skip to content

Commit b4279f8

Browse files
appflowyLucasXu0
andauthored
fix: ws connect with invalid token (#5282)
* chore: bump client api * chore: fix potentail ws connect with invalid token * fix: cargo clippy --------- Co-authored-by: Lucas.Xu <[email protected]>
1 parent dc813d8 commit b4279f8

File tree

12 files changed

+153
-118
lines changed

12 files changed

+153
-118
lines changed

frontend/appflowy_tauri/src-tauri/Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/appflowy_tauri/src-tauri/Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ collab-database = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFl
4747
collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "870cd70" }
4848
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "870cd70" }
4949

50+
# Please using the following command to update the revision id
51+
# Current directory: frontend
52+
# Run the script:
53+
# scripts/tool/update_client_api_rev.sh new_rev_id
54+
# ⚠️⚠️⚠️️
55+
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "ef8e6f3" }
56+
5057
[dependencies]
5158
serde_json.workspace = true
5259
serde.workspace = true
@@ -95,11 +102,3 @@ default = ["custom-protocol"]
95102
# this feature is used used for production builds where `devPath` points to the filesystem
96103
# DO NOT remove this
97104
custom-protocol = ["tauri/custom-protocol"]
98-
99-
[patch.crates-io]
100-
# Please using the following command to update the revision id
101-
# Current directory: frontend
102-
# Run the script:
103-
# scripts/tool/update_client_api_rev.sh new_rev_id
104-
# ⚠️⚠️⚠️️
105-
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "47e6f1e8" }

frontend/appflowy_web/wasm-libs/Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/appflowy_web/wasm-libs/Cargo.toml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlo
5050
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "870cd70" }
5151
yrs = "0.18.7"
5252

53+
# Please using the following command to update the revision id
54+
# Current directory: frontend
55+
# Run the script:
56+
# scripts/tool/update_client_api_rev.sh new_rev_id
57+
# ⚠️⚠️⚠️️
58+
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "ef8e6f3" }
59+
5360

5461

5562
[profile.dev]
@@ -61,12 +68,3 @@ codegen-units = 16
6168
lto = true
6269
opt-level = 3
6370
codegen-units = 1
64-
65-
66-
[patch.crates-io]
67-
# Please using the following command to update the revision id
68-
# Current directory: frontend
69-
# Run the script:
70-
# scripts/tool/update_client_api_rev.sh new_rev_id
71-
# ⚠️⚠️⚠️️
72-
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "47e6f1e8" }

frontend/appflowy_web_app/src-tauri/Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/appflowy_web_app/src-tauri/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ collab-database = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFl
4747
collab-plugins = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "870cd70" }
4848
collab-user = { version = "0.2", git = "https://github.com/AppFlowy-IO/AppFlowy-Collab", rev = "870cd70" }
4949

50+
# Please using the following command to update the revision id
51+
# Current directory: frontend
52+
# Run the script:
53+
# scripts/tool/update_client_api_rev.sh new_rev_id
54+
# ⚠️⚠️⚠️️
55+
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "ef8e6f3" }
56+
5057
[dependencies]
5158
serde_json.workspace = true
5259
serde.workspace = true
@@ -95,10 +102,3 @@ default = ["custom-protocol"]
95102
# DO NOT remove this
96103
custom-protocol = ["tauri/custom-protocol"]
97104

98-
[patch.crates-io]
99-
# Please using the following command to update the revision id
100-
# Current directory: frontend
101-
# Run the script:
102-
# scripts/tool/update_client_api_rev.sh new_rev_id
103-
# ⚠️⚠️⚠️️
104-
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "47e6f1e8" }

0 commit comments

Comments
 (0)