Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: specify exact version with deprecation #242

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/migration_guides/v0.10.2_to_v1.0.0_nearcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ index f38e88411..1587f4131 100644
--- a/Cargo.toml
+++ b/Cargo.toml
-borsh = { version = "0.10.2", features = ["rc"] }
+borsh = { version = "1.0.0-alpha.5", features = ["derive", "rc"] }
+borsh = { version = "=1.0.0-alpha.5", features = ["derive", "rc"] }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise, the version is interpreted as ^1.0.0-alpha.5 and 1.0.0-alpha.6 is picked up, which has try_to_vec already removed, not merely deprecated

```

## 2. We receive a great number of deprecation warnings of `borsh::BorshSerialize::try_to_vec` method (`near-primitives-core` and other packages):
Expand Down Expand Up @@ -413,6 +413,6 @@ diff --git a/Cargo.toml b/Cargo.toml
index f38e88411..1587f4131 100644
--- a/Cargo.toml
+++ b/Cargo.toml
-borsh = { version = "1.0.0-alpha.5", features = ["derive", "rc"] }
-borsh = { version = "=1.0.0-alpha.5", features = ["derive", "rc"] }
+borsh = { version = "1.0.0", features = ["derive", "rc"] }
```
4 changes: 2 additions & 2 deletions docs/migration_guides/v0.9_to_v1.0.0_near_sdk_rs.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ index a015a64..e6099d4 100644
@@ -26,3 +26,3 @@ near-sys = { path = "../near-sys", version = "0.2" }
base64 = "0.13"
-borsh = { version = "0.9", features = ["const-generics"] }
+borsh = { version = "1.0.0-alpha.5", features = ["derive"] }
+borsh = { version = "=1.0.0-alpha.5", features = ["derive"] }
bs58 = "0.4"
@@ -35,3 +35,4 @@ once_cell = { version = "1.17", default-features = false }
@@ -58,3 +59,3 @@ unstable = []
Expand Down Expand Up @@ -578,7 +578,7 @@ index a015a64..e6099d4 100644
+++ b/near-sdk/Cargo.toml
@@ -26,3 +26,3 @@ near-sys = { path = "../near-sys", version = "0.2" }
base64 = "0.13"
-borsh = { version = "1.0.0-alpha.5", features = ["derive"] }
-borsh = { version = "=1.0.0-alpha.5", features = ["derive"] }
+borsh = { version = "1.0.0", features = ["derive"] }
bs58 = "0.4"
```
Expand Down