diff --git a/CHANGELOG.md b/CHANGELOG.md index de465d806..477f8f65a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,50 @@ ## [Unreleased] +## [5.0.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v4.1.1...near-sdk-v5.0.0) - 2023-10-02 + +### Added +- [**breaking**] Make `PromiseIndex` a newtype, so it cannot be misused ([#1066](https://github.com/near/near-sdk-rs/pull/1066)) +- Expose alt_bn128 curve host functions via near_sdk::env ([#1028](https://github.com/near/near-sdk-rs/pull/1028)) +- Deprecate `Self` in non-init function's return type ([#1030](https://github.com/near/near-sdk-rs/pull/1030)) +- new `near_sdk::store::UnorderedMap::defrag` method useful for gas tuning ([#1023](https://github.com/near/near-sdk-rs/pull/1023)) +- add ed25519_verify host function ([#1010](https://github.com/near/near-sdk-rs/pull/1010)) +- add `Default` implementation to JSON types ([#1018](https://github.com/near/near-sdk-rs/pull/1018)) + +### Fixed +- Fixed compilation-tests after stable Rust release 1.72 ([#1081](https://github.com/near/near-sdk-rs/pull/1081)) +- Un-deprecate private init functions ([#1074](https://github.com/near/near-sdk-rs/pull/1074)) +- *(store::TreeMap)* remove of the entry API now correctly updates the tree root when changed ([#995](https://github.com/near/near-sdk-rs/pull/995)) +- strip return types of lifetimes ([#982](https://github.com/near/near-sdk-rs/pull/982)) +- prohibit NEAR function generics ([#980](https://github.com/near/near-sdk-rs/pull/980)) +- concretize `Self` references in method signatures ([#1001](https://github.com/near/near-sdk-rs/pull/1001)) +- make event `emit` public ([#975](https://github.com/near/near-sdk-rs/pull/975)) +- Expose missing UnorderedSet iter types ([#961](https://github.com/near/near-sdk-rs/pull/961)) +- add compiler error for using Result with init ([#1024](https://github.com/near/near-sdk-rs/pull/1024)) +- fully qualify the schema_container method call ([#1003](https://github.com/near/near-sdk-rs/pull/1003)) +- `__abi-embed` compilation error ([#971](https://github.com/near/near-sdk-rs/pull/971)) + +### Other +- Move from Gas to NearGas from near-gas crate ([#1082](https://github.com/near/near-sdk-rs/pull/1082)) +- Respect `{{ matrix.toolchain }}` in "Test Core: test" job ([#1085](https://github.com/near/near-sdk-rs/pull/1085)) +- Add release-plz to automate releases ([#1069](https://github.com/near/near-sdk-rs/pull/1069)) +- add `add_access_key` test coverage ([#1029](https://github.com/near/near-sdk-rs/pull/1029)) +- disentangle bindgen extractor logic ([#1025](https://github.com/near/near-sdk-rs/pull/1025)) +- Bumped supported rust version to minimum 1.68 - reflected in BuildKite ([#1014](https://github.com/near/near-sdk-rs/pull/1014)) +- Update visibility of FreeList and method ([#998](https://github.com/near/near-sdk-rs/pull/998)) +- Add documentation to collection cache types ([#997](https://github.com/near/near-sdk-rs/pull/997)) +- abstract common functions in `Keys` and `KeysRange` ([#989](https://github.com/near/near-sdk-rs/pull/989)) +- perf (`TreeMap.range`): Update the TreeMap->Range logic ([#964](https://github.com/near/near-sdk-rs/pull/964)) +- Took out a footgun with allowances ([#976](https://github.com/near/near-sdk-rs/pull/976)) +- Depreciated legacy tree map ([#963](https://github.com/near/near-sdk-rs/pull/963)) +- Removed the not ready enum type ([#977](https://github.com/near/near-sdk-rs/pull/977)) +- Use global paths in macro expansions ([#1060](https://github.com/near/near-sdk-rs/pull/1060)) +- fix typo ([#1052](https://github.com/near/near-sdk-rs/pull/1052)) +- change private init method from error to warning ([#1043](https://github.com/near/near-sdk-rs/pull/1043)) +- cover all features with clippy ([#1044](https://github.com/near/near-sdk-rs/pull/1044)) +- use attr sig info in abi generator ([#1036](https://github.com/near/near-sdk-rs/pull/1036)) +- disentangle bindgen code generation ([#1033](https://github.com/near/near-sdk-rs/pull/1033)) + ### Fixed - Exposed missing iterator types used in `near_sdk::store::UnorderedSet`. [PR 961](https://github.com/near/near-sdk-rs/pull/961) diff --git a/Cargo.toml b/Cargo.toml index 32956114e..b605a7872 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ exclude = ["examples/"] [workspace.package] -version = "4.1.1" +version = "5.0.0" # Special triple # comment for ci. [patch.crates-io] diff --git a/near-contract-standards/CHANGELOG.md b/near-contract-standards/CHANGELOG.md new file mode 100644 index 000000000..68e180199 --- /dev/null +++ b/near-contract-standards/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [5.0.0](https://github.com/near/near-sdk-rs/compare/near-contract-standards-v4.1.1...near-contract-standards-v5.0.0) - 2023-10-02 + +### Fixed +- remove receiver approval ([#1020](https://github.com/near/near-sdk-rs/pull/1020)) +- rename param `approvals` to `approved_account_ids` ([#1019](https://github.com/near/near-sdk-rs/pull/1019)) +- Properly report an error when Approval Extension is not enabled vs when account is not approved ([#1021](https://github.com/near/near-sdk-rs/pull/1021)) + +### Other +- Move from Gas to NearGas from near-gas crate ([#1082](https://github.com/near/near-sdk-rs/pull/1082)) +- Deprecate Fungible Token declarative macros. ([#1054](https://github.com/near/near-sdk-rs/pull/1054)) +- Add release-plz to automate releases ([#1069](https://github.com/near/near-sdk-rs/pull/1069)) +- *(contract-standards)* deprecate declarative macros in NFT helpers, promote explicit trait implementations instead ([#1042](https://github.com/near/near-sdk-rs/pull/1042)) +- Added a default method for TokenMetadata ([#978](https://github.com/near/near-sdk-rs/pull/978)) +- Removed the not ready enum type ([#977](https://github.com/near/near-sdk-rs/pull/977)) +- Fix empty owner tokens `start_index` error ([#962](https://github.com/near/near-sdk-rs/pull/962)) diff --git a/near-contract-standards/Cargo.toml b/near-contract-standards/Cargo.toml index 263deee55..fe77ebbd5 100644 --- a/near-contract-standards/Cargo.toml +++ b/near-contract-standards/Cargo.toml @@ -13,7 +13,7 @@ NEAR smart contracts standard library. """ [dependencies] -near-sdk = { path = "../near-sdk", version = "~4.1.1", default-features = false, features = ["legacy"] } +near-sdk = { path = "../near-sdk", version = "~5.0.0", default-features = false, features = ["legacy"] } serde = "1" serde_json = "1" schemars = "0.8" diff --git a/near-sdk/Cargo.toml b/near-sdk/Cargo.toml index 95442e78f..1399828a4 100644 --- a/near-sdk/Cargo.toml +++ b/near-sdk/Cargo.toml @@ -21,7 +21,7 @@ required-features = ["abi", "unstable"] # Provide near_bidgen macros. serde = { version = "1", features = ["derive"] } serde_json = "1" -near-sdk-macros = { path = "../near-sdk-macros", version = "~4.1.1" } +near-sdk-macros = { path = "../near-sdk-macros", version = "~5.0.0" } near-sys = { path = "../near-sys", version = "0.2" } base64 = "0.13" borsh = { version = "0.9", features = ["const-generics"] } diff --git a/near-sys/CHANGELOG.md b/near-sys/CHANGELOG.md new file mode 100644 index 000000000..252d84e07 --- /dev/null +++ b/near-sys/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.2.1](https://github.com/near/near-sdk-rs/compare/near-sys-v0.2.0...near-sys-v0.2.1) - 2023-10-02 + +### Other +- Add release-plz to automate releases ([#1069](https://github.com/near/near-sdk-rs/pull/1069)) diff --git a/near-sys/Cargo.toml b/near-sys/Cargo.toml index b8f66d5e5..403c26c07 100644 --- a/near-sys/Cargo.toml +++ b/near-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "near-sys" -version = "0.2.0" +version = "0.2.1" authors = ["Near Inc "] edition = "2021" license = "MIT OR Apache-2.0"