Skip to content

Releases: near/near-sdk-rs

near-contract-standards-v5.0.0-alpha.3

20 Feb 08:11
5999e12
Compare
Choose a tag to compare

Fixed

  • Fixed a typo in the storage_deposit refund computation (introduced in 5.0.0-alpha.1 release) (#1146)

near-sdk-v5.0.0-alpha.2

17 Jan 14:20
5d340f2
Compare
Choose a tag to compare

Fixed

  • include near-sdk/src/private/result_type_ext.rs file into module tree (#1122)
  • Fixed contract_source_metadata compilation issue when multiple impl blocks are there (#1118)
  • remove leftover near_sdk::__private::schemars (#1120)

Other

  • [breaking] update nearcore crates from 0.17 -> 0.20 (#1130)
  • fix new 1.75 warnings (#1128)
  • Re-exported packages cleanup (#1114)

near-sdk-macros-v5.0.0-alpha.2

17 Jan 14:19
5d340f2
Compare
Choose a tag to compare
chore: release 5.0.0-alpha.2 (#1115)

Signed-off-by: Vlad Frolov <[email protected]>
Co-authored-by: Vlad Frolov <[email protected]>

near-contract-standards-v5.0.0-alpha.2

17 Jan 14:21
5d340f2
Compare
Choose a tag to compare

Other

  • fix new 1.75 warnings (#1128)
  • Re-exported packages cleanup (#1114)

near-sys-v0.2.1

19 Nov 12:22
12a9965
Compare
Choose a tag to compare

Other

  • Add release-plz to automate releases (#1069)

near-sdk-v5.0.0-alpha.1

19 Nov 12:23
12a9965
Compare
Choose a tag to compare

Added

  • adding nep-0330 contract source metadata info (#1106)
  • Support Result types in #[handle_result] regardless of how they're referred to (#1099)
  • accumulate compilation errors to provide them all at once (#1097)
  • [breaking] prohibit Self in non-init methods to prevent common footguns (#1073)
  • [breaking] Make PromiseIndex a newtype, so it cannot be misused (#1066)
  • Expose alt_bn128 curve host functions via near_sdk::env (#1028)
  • Deprecate Self in non-init function's return type (#1030)
  • new near_sdk::store::UnorderedMap::defrag method useful for gas tuning (#1023)
  • add ed25519_verify host function (#1010)
  • add Default implementation to JSON types (#1018)

Fixed

  • Fixed compilation-tests after stable Rust release 1.72 (#1081)
  • Un-deprecate private init functions (#1074)
  • (store::TreeMap) remove of the entry API now correctly updates the tree root when changed (#995)
  • strip return types of lifetimes (#982)
  • prohibit NEAR function generics (#980)
  • concretize Self references in method signatures (#1001)
  • make event emit public (#975)
  • Exposed missing iterator types used in near_sdk::store::UnorderedSet (#961)
  • add compiler error for using Result with init (#1024)
  • fully qualify the schema_container method call (#1003)
  • __abi-embed compilation error (#971)

Other

  • [breaking] Use type-safe NearToken instead of u128/U128 (#1104)
  • migrate to a external near-account-id crate for reusable AccountId type (#1108)
  • [breaking] Delete the deprecated metadata module from near-sdk-macros in favor of near-abi (#1098)
  • documented env::random_seed (#1096)
  • Update borsh to 1.0.0 (#1075)
  • bump version of near-workspaces (#1094)
  • upgrade syn crate from version 1 to 2 (#1088)
  • Move from Gas to NearGas from near-gas crate (#1082)
  • Respect {{ matrix.toolchain }} in "Test Core: test" job (#1085)
  • Add release-plz to automate releases (#1069)
  • add add_access_key test coverage (#1029)
  • disentangle bindgen extractor logic (#1025)
  • Bumped supported rust version to minimum 1.68 - reflected in BuildKite (#1014)
  • Update visibility of FreeList and method (#998)
  • Add documentation to collection cache types (#997)
  • abstract common functions in Keys and KeysRange (#989)
  • perf (TreeMap.range): Update the TreeMap->Range logic (#964)
  • Took out a footgun with allowances (#976)
  • Depreciated legacy tree map (#963)
  • Removed the not ready enum type (#977)
  • use insta crate for testing macro generated code (#1090)
  • Use global paths in macro expansions (#1060)
  • fix typo (#1052)
  • change private init method from error to warning (#1043)
  • cover all features with clippy (#1044)
  • use attr sig info in abi generator (#1036)
  • disentangle bindgen code generation (#1033)

near-sdk-macros-v5.0.0-alpha.1

19 Nov 12:22
12a9965
Compare
Choose a tag to compare
chore: release v5.0.0-alpha.1 (#1070)

near-contract-standards-v5.0.0-alpha.1

19 Nov 12:24
12a9965
Compare
Choose a tag to compare

Added

  • adding nep-0330 contract source metadata info (#1106)

Fixed

  • remove receiver approval (#1020)
  • rename param approvals to approved_account_ids (#1019)
  • Properly report an error when Approval Extension is not enabled vs when account is not approved (#1021)

Other

  • [breaking] Use type-safe NearToken instead of u128/U128 (#1104)
  • migrate to a external near-account-id crate for reusable AccountId type (#1108)
  • Update borsh to 1.0.0 (#1075)
  • Move from Gas to NearGas from near-gas crate (#1082)
  • Deprecate Fungible Token declarative macros. (#1054)
  • Add release-plz to automate releases (#1069)
  • (contract-standards) deprecate declarative macros in NFT helpers, promote explicit trait implementations instead (#1042)
  • Added a default method for TokenMetadata (#978)
  • Removed the not ready enum type (#977)
  • Fix empty owner tokens start_index error (#962)

4.1.1

10 Nov 17:14
55020df
Compare
Choose a tag to compare

This release fixes compilation for using the SDK without the "legacy" feature flag

Fixed

  • Fixed invalid import from "legacy" feature flag from stabilized collection. PR 960

4.1.0

09 Nov 18:42
Compare
Choose a tag to compare

The primary changes in this release from 4.0.0 are adding support for near ABI through cargo-near as well as moving near_sdk::store collections from being under the unstable feature flag.

To see all changes since 4.1.0, the releases or changelog should be used.

Changes since 4.1.0-pre.3:

Added

  • Added near_sdk::NearSchema derive macro for convenience in implementing schema types for abi. PR 891.
  • Added support for custom events with #[near_bindgen(event_json(standard = "___"))] syntax. PR 934

Changed

  • Added new legacy feature flag and put near_sdk::collections under it. near_sdk::store will be replacing them. PR 923.
  • Stabilize store::LookupMap and store::UnorderedMap collections. PR 922.
  • Stabilize store::LookupSet and store::UnorderedSet collections. PR 924.
  • abi feature flag is now enabled by default. PR 956.
  • Updated near-abi version to 0.3.0. PR 954.

Removed

Fixes

  • Updated the associated error type for Base58CryptoHash parsing through TryFrom to concrete type. PR 919