Skip to content

Conversation

@frol
Copy link
Contributor

@frol frol commented Nov 18, 2025

🤖 New release

  • near-api-types: 0.7.8 -> 0.8.0 (⚠ API breaking changes)
  • near-api: 0.7.8 -> 0.8.0 (⚠ API breaking changes)

near-api-types breaking changes

--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field DeterministicStateInitAction.state_init in /tmp/.tmpVrNUvT/near-api-rs/types/src/transaction/actions.rs:65

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/enum_variant_added.ron

Failed in:
  variant SecretKeyError:InvalidEd25519SecretKey in /tmp/.tmpVrNUvT/near-api-rs/types/src/errors.rs:96

--- failure function_missing: pub fn removed or renamed ---

Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function 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.45.0/src/lints/function_missing.ron

Failed in:
  function near_api_types::utils::base64_bytes::deserialize, previously in file /tmp/.tmpiMNqKd/near-api-types/src/utils/mod.rs:13
  function near_api_types::utils::base64_bytes::serialize, previously in file /tmp/.tmpiMNqKd/near-api-types/src/utils/mod.rs:6

--- failure module_missing: pub module removed or renamed ---

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

Failed in:
  mod near_api_types::utils::base64_bytes, previously in file /tmp/.tmpiMNqKd/near-api-types/src/utils/mod.rs:2

--- failure struct_pub_field_missing: pub struct's pub field removed or renamed ---

Description:
A publicly-visible struct has at least one public field 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.45.0/src/lints/struct_pub_field_missing.ron

Failed in:
  field 0 of struct ED25519SecretKey, previously in file /tmp/.tmpiMNqKd/near-api-types/src/crypto/secret_key.rs:139
  field code of struct DeterministicStateInitAction, previously in file /tmp/.tmpiMNqKd/near-api-types/src/transaction/actions.rs:64
  field data of struct DeterministicStateInitAction, previously in file /tmp/.tmpiMNqKd/near-api-types/src/transaction/actions.rs:65

--- failure struct_pub_field_now_doc_hidden: pub struct field is now #[doc(hidden)] ---

Description:
A pub field of a pub struct is now marked #[doc(hidden)] and is no longer part of the public API.
        ref: https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html#hidden
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/struct_pub_field_now_doc_hidden.ron

Failed in:
  field ED25519SecretKey.0 in file /tmp/.tmpVrNUvT/near-api-rs/types/src/crypto/secret_key.rs:137

near-api breaking changes

--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field ExecuteMetaTransaction.transaction in /tmp/.tmpVrNUvT/near-api-rs/api/src/common/send.rs:352
  field ExecuteSignedTransaction.transaction in /tmp/.tmpVrNUvT/near-api-rs/api/src/common/send.rs:81

--- failure enum_missing: pub enum removed or renamed ---

Description:
A publicly-visible enum cannot be imported by its prior path. A `pub use` may have been removed, or the enum 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.45.0/src/lints/enum_missing.ron

Failed in:
  enum near_api::errors::FastNearError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:249
  enum near_api::errors::NonEmptyVecError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:292
  enum near_api::errors::PublicKeyParsingError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:298
  enum near_api::errors::SecretBuilderError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:140
  enum near_api::errors::MultiTransactionError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:275
  enum near_api::errors::BuilderError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:152

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/enum_variant_added.ron

Failed in:
  variant QueryError:ArgumentValidationError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:32
  variant SecretError:PublicKeyError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:86
  variant ExecuteTransactionError:ArgumentValidationError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:221
  variant AccessKeyFileError:PublicKeyError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:100
  variant ValidationError:ArgumentValidationError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:278
  variant SignerError:PublicKeyError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:66
  variant ExecuteMetaTransactionsError:ArgumentValidationError in /tmp/.tmpVrNUvT/near-api-rs/api/src/errors.rs:241

--- 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.45.0/src/lints/enum_variant_missing.ron

Failed in:
  variant LedgerError::SetPublicKeyError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:120
  variant SignerError::PublicKeyIsNotAvailable, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:53
  variant ValidationError::RequestBuilderError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:265
  variant AccountCreationError::BuilderError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:160
  variant AccountCreationError::PublicKeyParsingError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:163
  variant ExecuteMetaTransactionsError::NonEmptyVecError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:231
  variant ExecuteTransactionError::NonEmptyVecError, previously in file /tmp/.tmpiMNqKd/near-api/src/errors.rs:210

--- failure inherent_method_const_removed: pub method is no longer const ---

Description:
A publicly-visible method or associated fn is no longer `const` and can no longer be used in a `const` context.
        ref: https://doc.rust-lang.org/reference/const_eval.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/inherent_method_const_removed.ron

Failed in:
  Signer::from_ledger_with_hd_path in /tmp/.tmpVrNUvT/near-api-rs/api/src/signer/mod.rs:634
  Signer::from_ledger_with_hd_path in /tmp/.tmpVrNUvT/near-api-rs/api/src/signer/mod.rs:634

--- failure struct_pub_field_missing: pub struct's pub field removed or renamed ---

Description:
A publicly-visible struct has at least one public field 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.45.0/src/lints/struct_pub_field_missing.ron

Failed in:
  field tr of struct ExecuteSignedTransaction, previously in file /tmp/.tmpiMNqKd/near-api/src/common/send.rs:80
  field tr of struct ExecuteMetaTransaction, previously in file /tmp/.tmpiMNqKd/near-api/src/common/send.rs:343
Changelog

near-api-types

0.8.0 - 2025-12-04

Added

  • Add NEP-413 message verification (#98)
  • updated acount id to v2, updated openapi-types, fixed DeterministicStateInit action serialization (#97)

Other

  • restricted usage of unwrap and expects, removed some unwraps in signing (#96)
  • [breaking] defer errors for contract interaction (#93)

near-api

0.8.0 - 2025-12-04

Added

  • Add NEP-413 message verification (#98)
  • [breaking] signer interface improvement (#89)

Other

  • clean up comments in utils.rs
  • [breaking] simplify and remove PublicKeyProvider to improve code clarity (#95)
  • restricted usage of unwrap and expects, removed some unwraps in signing (#96)
  • migrated examples and tests to TestResult from unwraps
  • [breaking] defer errors for contract interaction (#93)


This PR was generated with release-plz.

@github-project-automation github-project-automation bot moved this to NEW❗ in DevTools Nov 18, 2025
@frol frol changed the title chore(near-api): release v0.7.8 chore: release Nov 24, 2025
@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch 2 times, most recently from 34f467d to 2c1c6ad Compare November 24, 2025 17:10
@frol frol changed the title chore: release chore: release v0.8.0 Nov 25, 2025
@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch from 2c1c6ad to 8e1d158 Compare November 25, 2025 16:52
@akorchyn akorchyn force-pushed the release-plz-2025-11-18T13-50-15Z branch from 8e1d158 to 2732d93 Compare November 25, 2025 17:35
@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch from 2732d93 to 14b2743 Compare November 25, 2025 17:40
@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.15%. Comparing base (9d6bca6) to head (1c07147).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #87   +/-   ##
=======================================
  Coverage   52.15%   52.15%           
=======================================
  Files          38       38           
  Lines        4953     4953           
=======================================
  Hits         2583     2583           
  Misses       2370     2370           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch 9 times, most recently from 84c3fc1 to c06d120 Compare December 2, 2025 17:53
@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch from c06d120 to 1b7c8c6 Compare December 2, 2025 22:05
Copilot AI review requested due to automatic review settings December 4, 2025 12:05
@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch from 1b7c8c6 to a4a83a9 Compare December 4, 2025 12:05
Copilot finished reviewing on behalf of frol December 4, 2025 12:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This is a release PR that bumps both near-api-types and near-api from version 0.7.8 to 0.8.0, introducing breaking changes to the public API. The release includes improvements to error handling, signer interfaces, NEP-413 message verification support, and fixes for serialization issues.

Key Changes:

  • Version bump to 0.8.0 with breaking API changes for both packages
  • Added NEP-413 message verification functionality
  • Improved error handling by restricting unwrap/expect usage and deferring errors for contract interaction
  • Enhanced signer interface and removed PublicKeyProvider for better code clarity

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
types/CHANGELOG.md Documents breaking changes and new features for near-api-types v0.8.0
api/CHANGELOG.md Documents breaking changes and new features for near-api v0.8.0
Cargo.toml Updates workspace version from 0.7.8 to 0.8.0 and near-api-types dependency version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@frol frol force-pushed the release-plz-2025-11-18T13-50-15Z branch from a4a83a9 to ab615e8 Compare December 4, 2025 14:09
@akorchyn akorchyn enabled auto-merge (squash) December 5, 2025 19:33
@akorchyn akorchyn merged commit db278e4 into main Dec 5, 2025
15 checks passed
@akorchyn akorchyn deleted the release-plz-2025-11-18T13-50-15Z branch December 5, 2025 19:37
@github-project-automation github-project-automation bot moved this from NEW❗ to Shipped 🚀 in DevTools Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

3 participants