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

chore: release v5.0.0-alpha.1 #1070

Merged
merged 5 commits into from
Nov 19, 2023
Merged

chore: release v5.0.0-alpha.1 #1070

merged 5 commits into from
Nov 19, 2023

Conversation

frol
Copy link
Collaborator

@frol frol commented Aug 17, 2023

🤖 New release

  • near-sdk: 4.1.1 -> 5.0.0 (⚠️ API breaking changes)
  • near-sdk-macros: 4.1.1 -> 5.0.0
  • near-sys: 0.2.0 -> 0.2.1 (✓ API compatible changes)
  • near-contract-standards: 4.1.1 -> 5.0.0 (✓ API compatible changes)

⚠️ near-sdk breaking changes

--- failure enum_variant_missing: pub enum variant removed or renamed ---

Description:
A publicly-visible enum has at least one variant that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.2/src/lints/enum_variant_missing.ron

Failed in:
  variant PromiseError::NotReady, previously in file /tmp/.tmpGbdLOj/near-sdk/src/types/vm_types.rs:41
  variant PromiseResult::NotReady, previously in file /tmp/.tmpGbdLOj/near-sdk/src/types/vm_types.rs:18

--- failure pub_module_level_const_missing: pub module-level const is missing ---

Description:
A public const is missing, renamed, or changed from const to static.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.2/src/lints/pub_module_level_const_missing.ron

Failed in:
  ONE_YOCTO in file /tmp/.tmpGbdLOj/near-sdk/src/types/mod.rs:50
  STORAGE_PRICE_PER_BYTE in file /tmp/.tmpGbdLOj/near-sdk/src/environment/env.rs:804
  ONE_NEAR in file /tmp/.tmpGbdLOj/near-sdk/src/types/mod.rs:53

--- failure struct_missing: pub struct removed or renamed ---

Description:
A publicly-visible struct cannot be imported by its prior path. A `pub use` may have been removed, or the struct itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.2/src/lints/struct_missing.ron

Failed in:
  struct near_sdk::__private::Metadata, previously in file /tmp/.tmpGbdLOj/near-sdk/src/private/metadata.rs:7
  struct near_sdk::ParseAccountIdError, previously in file /tmp/.tmpGbdLOj/near-sdk/src/types/account_id.rs:124
  struct near_sdk::Gas, previously in file /tmp/.tmpGbdLOj/near-sdk/src/types/gas.rs:21
  struct near_sdk::json_types::ValidAccountId, previously in file /tmp/.tmpGbdLOj/near-sdk/src/types/account_id.rs:40
  struct near_sdk::AccountId, previously in file /tmp/.tmpGbdLOj/near-sdk/src/types/account_id.rs:40
  struct near_sdk::__private::MethodMetadata, previously in file /tmp/.tmpGbdLOj/near-sdk/src/private/metadata.rs:22

--- failure type_marked_deprecated: #[deprecated] added on type ---

Description:
A type is now #[deprecated]. Downstream crates will get a compiler warning when using this type.
        ref: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-deprecated-attribute
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.2/src/lints/type_marked_deprecated.ron

Failed in:
  Struct LegacyTreeMap in /tmp/.tmpbkllow/near-sdk-rs/near-sdk/src/collections/legacy_tree_map.rs:25
Changelog

near-sdk

5.0.0 - 2023-11-18

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)
  • Expose missing UnorderedSet iter types (#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)

Fixed

  • Exposed missing iterator types used in near_sdk::store::UnorderedSet. PR 961

near-sys

0.2.1 - 2023-11-18

Other

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

near-contract-standards

5.0.0 - 2023-11-18

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)


This PR was generated with release-plz.

@frol
Copy link
Collaborator Author

frol commented Aug 17, 2023

I love release-plz! I plan to cut 5.0.0-alpha.1 release and a couple of more releases before final 5.0.0.

P.S. Hmm, CI fails due to changes in Cargo.locks in examples (where near-sdk version gets updated). I wonder how to fix it properly (Cargo.lock files should be updated in release-plz CI job, it seems)

@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from 7cbe80b to 160744f Compare August 18, 2023 06:35
@uint
Copy link
Contributor

uint commented Aug 18, 2023

This looks amazing!

@uint
Copy link
Contributor

uint commented Aug 18, 2023

Just a reminder to tick off this list before the final 5.0.0: #946

@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch 3 times, most recently from c2196b5 to 7d91f80 Compare August 23, 2023 12:32
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from 7d91f80 to f23bbb0 Compare August 28, 2023 22:38
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from f23bbb0 to 64a9155 Compare September 12, 2023 08:00
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch 3 times, most recently from 4a70fd7 to a169fb2 Compare September 27, 2023 17:31
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch 2 times, most recently from 691163b to 1a883f1 Compare October 4, 2023 06:19
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch 5 times, most recently from 9f615d7 to 5a607fd Compare October 9, 2023 09:52
@frol
Copy link
Collaborator Author

frol commented Oct 9, 2023

Just to clarify, this is an automated PR created by release-plz, I plan to turn it into 5.0.0-alpha.1 release.

@frol frol changed the title chore: release chore: release 5.0.0-alpha.1 Oct 9, 2023
@frol frol changed the title chore: release 5.0.0-alpha.1 chore: release Oct 17, 2023
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch 4 times, most recently from 42d08de to ffe042f Compare October 22, 2023 09:30
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from ffe042f to 85dac05 Compare November 3, 2023 13:24
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from 85dac05 to 851edd8 Compare November 7, 2023 09:13
Signed-off-by: Vlad Frolov <304265+frol@users.noreply.github.com>
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from 851edd8 to c6a1551 Compare November 18, 2023 12:13
@frol frol force-pushed the release-plz/2023-08-17T22-35-48Z branch from 5397973 to 30eacb2 Compare November 18, 2023 20:00
@frol frol mentioned this pull request Nov 19, 2023
9 tasks
@frol
Copy link
Collaborator Author

frol commented Nov 19, 2023

I don't know what is the issue with "buildkite/contract-builder", and I don't have access to view the logs, so I plan to ignore it.

@frol frol changed the title chore: release chore: release v5.0.0-alpha.1 Nov 19, 2023
@frol frol merged commit 12a9965 into master Nov 19, 2023
14 of 15 checks passed
@frol frol deleted the release-plz/2023-08-17T22-35-48Z branch November 19, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants