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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

  • #1014 8feb199 Thanks @esaminu! - Make appKeyPrefix a required arg to WalletConnection constructor

    Users that were doing

    new WalletConnection(near);

    will now have to do

    new WalletConnection(near, "undefined");

    If they want to access the keys they had potentially accumulated

  • #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' },
    +});

Minor Changes

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 545ecfb to 6d93a0c Compare February 14, 2023 23:29
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.

0 participants