4.0.0-pre.3
Pre-release
Pre-release
austinabell
released this
12 Oct 23:40
·
325 commits
to master
since this release
This release comes with a few very minor API changes but also some new features. For up-to-date changes, see CHANGELOG.
4.0.0-pre.3
[10-12-2021]
- Introduce
#[callback_result]
annotation, which acts like#[callback]
except that it returnsResult<T, PromiseError>
to allow error handling. PR 554- Adds
#[callback_unwrap]
to replacecallback
- Adds
- mock: Update
method_names
field ofAddKeyWithFunctionCall
to aVec<String>
fromVec<Vec<u8>>
. PR 555- Method names were changed to be strings in
4.0.0-pre.2
but this one was missed
- Method names were changed to be strings in
- env: Update the register used for temporary
env
methods tou64::MAX - 2
from0
. PR 557.- When mixing using
sys
andenv
, reduces chance of collision for using0
- When mixing using
- store: Implement caching
LookupMap
type. This is the new iteration of the previous version ofnear_sdk::collections::LookupMap
that has an updated API, and is located atnear_sdk::store::LookupMap
. PR 487.- The internal storage format has changed from
collections::LookupMap
so the type cannot be swapped out without some migration.
- The internal storage format has changed from
- store: Implement caching
UnorderedMap
type. PR 584.- Similar change to
LookupMap
update, and is an iterable version of that data structure. - Data structure has also changed internal storage format and cannot be swapped with
collections::UnorderedMap
without manual migration.
- Similar change to