Skip to content
by Unity Nodes
near-api-jsStable

near-api-js 1.0.0

v1.0.0github.com

https://github.com/near/near-api-js/compare/v0.45.1...v1.0.0

Highlights:

  • near-api-js v1.0.0 marks the beginning of proper semver versioning for near-api-js! From now on, breaking changes will be correctly represented by major version bumps, new features or added functionality will be represented as minor version bumps, and bug fixes will be represented by patch version bumps! See https://semver.org/ for more info.
  • You can now provide blockQuery as an argument to viewFunction and viewState calls (#863)
  • Lots of deprecated code has been removed, which simplifies TypeDoc descriptions for many commonly used functions
  • Account.viewFunction() now accepted its arguments as an object instead of positional arguments, making it consistent with other methods that have already undergone this migration such as Account.functionCall(), Account.signAndSendTransaction(). Using positional arguments for this function has been deprecated. (#918)
  • You can now await until sign in process is completely finished; this avoids a possible race condition where previously you could try to read a key from the keystore before it has been moved from 'temporary' to finalized state during initialization. (#842)
  • Attempting to use WalletConnection or WalletConnectedAccount objects outside of the browser context will now generate a user-friendly error message instead of throwing when trying to access local storage or the window object. (#896)
  • near-api-js now supports the latest version of Typescript (4.7)
  • Fixed a bug in JsonRpcProvider.txStatusReceipts() - providing txHash as a string rather than Uint8Array now works as expected (#866)
  • Account.findAccessKey() now throws a typed error if no key exists in keystore for the current account (#904)

Internal / Project Changes

  • near-api-js is now a mono-repo! We are working towards modularization of the functionality that near-api-js provides, to allow more explicit dependency handling for code that runs in different environments (browser, node, react-native, etc.), better discoverability and documentation.
  • We are moving to a CI based development flow! Expect a more rapid cadence of releases as we get the CI pipeline fully configured and automate things like changelog generation.

Pull Requests:

Internal:

  • #940 - build(deps-dev): bump danger from 11.1.1 to 11.1.2 - 9c8d5d25
  • #934 - build(deps-dev): bump lerna from 5.3.0 to 5.4.3 - ae77e1b4
  • #909 - Applied engines property on package.json - d4344edb
  • #913 - chore: Update CODEOWNERS - 3d3c259d
  • #908 - Naj 6 move current near api js to be a lerna package lernify the repo - 7f16b10e
  • #906 - fix: Fix eslint script/errors and run in PR builds - c0fe0a68
  • #899 - chore: Create Pull Request template - 87081fc2
  • #939 - fix(near-api-js): optional headers in NearConfig - 92d20e98
  • #828 - Deprecated functionality deleted - f87aa7d7
  • #890 - ci: Run tests on pull requests - 629dc30e
  • #903 - Update README.md - 804a29aa
  • #886 - build(deps-dev): bump danger from 10.7.0 to 11.1.1 - 320facbc
  • #864 - build(deps): bump bn.js from 5.2.0 to 5.2.1 - 1ea0aa56
  • #871 - build(deps-dev): bump ts-morph from 11.0.3 to 15.1.0 - 42337af0
  • #884 - build(deps): bump shell-quote from 1.7.2 to 1.7.3 - e7f4f609
  • #881 - Delete stale.yml - 22aa58b3
  • #910 - NAJ-113-delete-hacks-related-to-error-types - 5696829f

Documentation

  • #911 - docs revision 1 - ae9fa770
  • #901 - Fixed typo in quick reference docs - c2c35205
  • #859 - fix: typo isSingnedIn -> isSignedIn - 690c8687
  • #848 - Adding callbackUrl and meta to Call Contract - fae90841

Functional

  • #918 - feat: changed viewFuction to support both POJO and existing arguments - 3850213e
  • #896 - feat: explicit walletconnection errors on server - 3ba84236
  • #904 - Update error thrown when signTransaction() fails due to missing accessKey - 743a19ed
  • #842 - Be able to await until sign in process done completely - 4c68be25
  • #856 - modify interface Transaction in provider.ts - 83d7695d
  • #866 - Fix for json-rpc method EXPERIMENTAL_tx_status - 3e917adb
  • #863 - Support blockId in account viewFunction and fix viewState - 824059be
  • #883 - feat: warning that deleting an account does not transfer assets besides near - 3206032d

Commits:

https://github.com/near/near-api-js/compare/v0.45.1...v1.0.0