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

Publish packages #1

Merged
merged 1 commit into from
Nov 10, 2022
Merged

Publish packages #1

merged 1 commit into from
Nov 10, 2022

Conversation

github-actions[bot]
Copy link

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

near-api-js@2.0.0

Major Changes

  • #1006 8ee564c Thanks @morgsmccauley! - Make Account.signAndSendTransaction public so transactions can be sent directly from Account instances

  • #935 c740afc Thanks @hcho112! - account.viewFunction now takes a single object argument rather than individual args. Callsites will now need to be updated like so:

    -await account.viewFunction(
    -  'wrap.near',
    -  'storage_balance_of',
    -  { account_id: 'example.near' }
    -);
    +await account.viewFunction({
    +  contractId: 'wrap.near',
    +  methodName: 'storage_balance_of',
    +  args: { account_id: 'example.near' },
    +});

Patch Changes

  • #1003 726b795 Thanks @marcinbodnar! - Fix error types. WIth this changes both JsonRpcProvider.query and JsonRpcProvider.sendJsonRpc methods will return proper error type for these errors: AccountDoesNotExist, AccessKeyDoesNotExist, CodeDoesNotExist, InvalidNonce.

    An additional fix to getErrorTypeFromErrorMessage function. Now getErrorTypeFromErrorMessage will not change error type if it already exists.

@near-js/cookbook@1.0.2

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/master branch from 8b8d2a5 to a66cfc5 Compare November 10, 2022 07:49
@therealharpaljadeja therealharpaljadeja merged commit 355f891 into master Nov 10, 2022
@therealharpaljadeja therealharpaljadeja deleted the changeset-release/master branch November 10, 2022 15:12
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.

1 participant