# 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] ## 1.0.0 - 2023-12-22 This is the first stable release of near-account-id crate! `AccountId` and `AccountIdRef` are two main types of this crate that have same relation as `String` and `str` in standard library of Rust. AccountId guarantees to hold a valid NEAR account id (unless users explicitly opt-in for the unvalidated constructors feature and break this promise). See all the changes listed in alpha releases below to learn about `AccountIdRef` and various new helper methods. ### Added - Add `get_parent_account_id` method ([#24](https://github.com/near/near-account-id-rs/pull/24)) ## [1.0.0-alpha.4](https://github.com/near/near-account-id-rs/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) - 2023-11-24 ### Fixed - Remove account_id validation from `new_unvalidated()` when `internal_unstable` feature is enabled (required by nearcore) ([#20](https://github.com/near/near-account-id-rs/pull/20)) ## [1.0.0-alpha.3](https://github.com/near/near-account-id-rs/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) - 2023-11-06 ### Other - Add schemars support ([#17](https://github.com/near/near-account-id-rs/pull/17)) ## [1.0.0-alpha.2](https://github.com/near/near-account-id-rs/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) - 2023-11-03 ### Other - `AccountType`, add `EthImplicitAccount` ([#14](https://github.com/near/near-account-id-rs/pull/14)) ## 1.0.0-alpha.1 - 2023-10-24 near-account-id was extracted from [nearcore](https://github.com/near/nearcore) as of 2023-08-01, and extended with the following features to reach stable 1.0.0 release. ### Added - Introduce `AccountIdRef`, move all `AccountId` methods to `AccountIdRef`, and more idiomatic AsRef/Borrow impls - Added `len` method ([#13](https://github.com/near/near-account-id/pull/13)) - Added const `AccountIdRef::new_or_panic` ([#12](https://github.com/near/near-account-id/pull/12)) - Added missing serde/borsh implementations for `AccountIdRef` - Upgrade `borsh` dependency to 1.0 ([#8](https://github.com/near/near-account-id/pull/8)) - Implemented `Arbitrary` for `AccountIdRef` ### Other - Use stable Rust version for maximal-deps test ([#7](https://github.com/near/near-account-id/pull/7)) - Added automated release pipeline (release-plz!) - bump MSRV to 1.65