Skip to content

Releases: near/near-api-js

[email protected]

03 Oct 23:56
ef6d7fb
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v1.0.0 (!)

25 Aug 20:19
Compare
Choose a tag to compare

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 - 9c8d5d2
  • #934 - build(deps-dev): bump lerna from 5.3.0 to 5.4.3 - ae77e1b
  • #909 - Applied engines property on package.json - d4344ed
  • #913 - chore: Update CODEOWNERS - 3d3c259
  • #908 - Naj 6 move current near api js to be a lerna package lernify the repo - 7f16b10
  • #906 - fix: Fix eslint script/errors and run in PR builds - c0fe0a6
  • #899 - chore: Create Pull Request template - 87081fc
  • #939 - fix(near-api-js): optional headers in NearConfig - 92d20e9
  • #828 - Deprecated functionality deleted - f87aa7d
  • #890 - ci: Run tests on pull requests - 629dc30
  • #903 - Update README.md - 804a29a
  • #886 - build(deps-dev): bump danger from 10.7.0 to 11.1.1 - 320facb
  • #864 - build(deps): bump bn.js from 5.2.0 to 5.2.1 - 1ea0aa5
  • #871 - build(deps-dev): bump ts-morph from 11.0.3 to 15.1.0 - 42337af
  • #884 - build(deps): bump shell-quote from 1.7.2 to 1.7.3 - e7f4f60
  • #881 - Delete stale.yml - 22aa58b
  • #910 - NAJ-113-delete-hacks-related-to-error-types - 5696829

Documentation

Functional

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

Commits:

v0.45.1...v1.0.0

v0.45.1

09 Jun 17:27
Compare
Choose a tag to compare

Highlights:

  • Patch for JSVM feature

Commits

  • Merge pull request #874 from near/hotfix/jsvm-support 9e737e3
  • fix: stringified object args for js contract f83ad4b
  • fix: encode argument format c0ffcc9
  • fix: update viewFucntion method name for js contract c0c7f30
  • fix: cleanup 959496a
  • feat: view function update for near js sdk db0fe8a
  • fix: add jsvm accountId to connection object 46e7973

v0.45.0...v0.45.1

v0.45.0

08 Jun 18:39
Compare
Choose a tag to compare

Highlights

  • Support for Near JS SDK
  • Method to bypass 2fa with fak
  • State cleanup on disable multisig

Commits

  • Merge pull request #870 from near/WAL-338-abstractions-if-using-js-sdk c158218
  • fix: argument duplicate 0260347
  • fix: typo 0a17a04
  • feat: support for custom jsvmAccountId 15f1873
  • chore: instruction updates b6918e8
  • feat: initial pass at supporting JS contract 58396df
  • Merge pull request #808 from AhaLabs/fix/make_stale_bot_wait_longer 6f83d39
  • Merge pull request #834 from near/dependabot/npm_and_yarn/examples/cookbook/node-fetch-2.6.7 55a11da
  • build(deps): bump node-fetch from 2.6.6 to 2.6.7 in /examples/cookbook b5cb148
  • Merge pull request #826 from near/dependabot/npm_and_yarn/minimist-1.2.6 af6dd63
  • Merge pull request #825 from lebedev/patch-1 9f7a2a7
  • Merge pull request #823 from near/feat-disable-2fa-with-fak da1194c
  • refactor: remove optional chaining f661ae4
  • Merge pull request #802 from near/contract-deploy-validate-existing-state 4163807
  • refactor: disableActions retrieval ordering and error throwing 3c78e65
  • refactor: format ternary 329492c
  • refactor: remove reimplimented code 037dde4
  • feat: add method to bypass 2fa with fak 7071651
  • refactor: remove optional chaining 1ebbbe2
  • fix: return invalid_code on method_not_found 34a492f
  • refactor: remove point free style from 'this' method fedd3d5
  • refactor: combine checkMultisigStateStatus into checkMultisigCodeAndStateStatus 3df552a
  • Bump minimist from 1.2.5 to 1.2.6 f4332d9
  • feat: add checkMultisigCodeAndStateStatus ae5e8a5
  • Fix broken link in README c29990a
  • fix: update multisig errors and fix gas issues 249a1ba
  • refactor: inline contractHasExistingStateError 6d57d90
  • refactor: format switch statement 394a41e
  • fix: add test transaction to determine contract state c299da0
  • fix: add catch addRequest on deployMultisig 746cea9
  • feat: add state cleanup on disable multisig 0608170
  • fix: make PR stale after 14 days of no activity 69c9aa9
  • refactor: remove optional chaining operator 17eb11a
  • fix: avoid deploying a contract to an account with existing state 90aaa04
  • change wrap-near cookbook recipe to use testnet (#773) e927253
  • Added git hook (#723) 0139380
  • Bump borsh from 0.6.0 to 0.7.0 (#741) 3a5cb60
  • near.deps check added (#752) 75e3d77

v0.44.2...v0.45.0

v0.44.2

16 Dec 18:48
Compare
Choose a tag to compare

Highlights:

  • fix allows near-api-js to work with new RPC servers

Commits:

  • charset utf-8 deleted from request header (#751) ee85db5

v0.44.1...v0.44.2

v0.44.1

09 Dec 11:49
Compare
Choose a tag to compare

Highlights:

  • findSeatPrice() function adjusted for Protocol version 49+

Commits:

v0.44.0...v0.44.1

v0.44.0

06 Dec 14:38
Compare
Choose a tag to compare

Highlights:

  • Added support for RPC Server API Keys
  • Introduced verify method on PublicKey type to verify signature correctness
  • Key file permissions changed to 0o600

Commits:

v0.43.1...v0.44.0

v0.43.1

30 Sep 22:47
Compare
Choose a tag to compare

Highlights:

  • block_id is undefined bug fixed in provider.qery()

Commits:

v0.43.0...v0.43.1

v0.43.0

29 Sep 17:33
Compare
Choose a tag to compare

Highlights:

  • error-polyfill issue fixed (it was breaking modern build tools)
  • added ability to turn off logging
  • added support for a custom way to stringify arguments
  • add support for borsh in view functions
  • release files whitelisted
  • dependencies updated
  • lot's of bug fixes

Commits:

  • Bump hosted-git-info from 2.8.8 to 2.8.9 (#589) da2a35d
  • Bump path-parse from 1.0.6 to 1.0.7 (#665) 60978e8
  • Bump browserslist from 4.16.3 to 4.17.1 (#697) a006819
  • fix: disable internal logging with env variable (#695) f131a95
  • Revert "Fix bug in config.js for localnet (#682)" 2216a00
  • Bump tmpl from 1.0.4 to 1.0.5 (#687) 8fbdf6a
  • Bump axios from 0.21.1 to 0.21.4 (#694) 23d9ed0
  • Fix bug in config.js for localnet (#682) 9cbc119
  • fix/remove-error-polyfill unused dependecy that breaks modern build tools (#689) 7d90251
  • Added ability to call cookbook files regardless of terminal directory (#684) 1a99d74
  • Merge pull request #668 from aurora-is-near/borsh_in_view_2 e29a418
  • Remove use dict arguments 2a63db0
  • Generate build f97ca1a
  • Add support for custom way to stringify arguments. 965a48d
  • Add support for borsh in view functions 4351d46
  • Bump borsh from 0.5.0 to 0.6.0 (#672) 44972f7
  • Increase length of accounts used in tests (#679) 1eb380e
  • Merge pull request #675 from near/fix/update-example-anchors e142eff
  • batch-transaction fix (#669) 28c8941
  • fix quick reference link f4a2a8f
  • update links to cookbook and quickstart b405032
  • delete key example fixed (#673) 5f3c420
  • Merge pull request #674 from near/fix/wrap-near 963a9d9
  • fix(examples/wrap-near): docs, serialization 563b624
  • docs(examples/cookbook): mv help info to file tops (#670) c84aef6
  • fix: get-tx-detail example now uses archival rpc endpoint (#667) c6aa044
  • build: cookbook uses root NAJ (#671) 574c5a3
  • bug(test): remove old versioning which is unused in nearcore nodes 26b3dd2
  • remove unnesessary connect (#650) b14ac3d
  • Bump borsh from 0.4.0 to 0.5.0 (#651) 6383018
  • requestSignIn deprecation message fix (#646) c567a8e
  • add verify signature example (#638) bba9384
  • use block_id in rpc query (#639) d3f3126
  • Danger setup (#645) eff486a
  • Release files whitelisted (#631) fd43f77
  • Expired error handled (#633) 696ab8e
  • Bump ws from 7.4.4 to 7.5.3 (#643) 7e43449
  • Bump ts-morph from 10.1.0 to 11.0.3 (#642) 6be1e9b
  • Bump @types/http-errors from 1.8.0 to 1.8.1 (#634) cfa888c

v0.42.0...v0.43.0

v0.42.0

13 Jul 05:05
Compare
Choose a tag to compare

Highlights:

  • Cookbook examples are added, check them inside of the repo!
  • DEFAULT_FUNCTION_CALL_GAS exported and can be used in projects
  • Lot's of bug fixes

Commits:

  • Don't include examples into npm package e4435a0
  • updat error to NotEnoughAllowance from NotEnoughBalance (#619) 51ccadf
  • Shouldn't check if account exists if contractId not passed (#629) e59f4dc
  • feat: prepare tests for the stabilization of EXPERIMENTAL_tx_status method (#623) ec373a6
  • Merge pull request #621 from near/feat/add-txStatus-example fd85aa7
  • Update examples/cookbook/transactions/get-tx-status.js 2ea1d62
  • Update examples/cookbook/transactions/get-tx-status.js 803b958
  • add to readme 7896ce1
  • add get tx status example 1a1eb6d
  • Merge pull request #616 from near/feat/add-deploy-contract-example ca4aecb
  • update readme 1125e25
  • add deploy contract to quick ref 0b00dee
  • add deploy contract to cookbook c58e55b
  • Merge pull request #606 from near/feat/add-quick-reference edb66d3
  • move quick reference closer to the top for visibility 5b8e8e9
  • Merge branch 'master' of github.com:near/near-api-js into feat/add-quick-reference 0984eb7
  • Merge pull request #603 from near/fix-empty-resp 98f9f16
  • nit 2e59ecd
  • add quick reference d09b4c0
  • Merge pull request #604 from near/feat/add-cookbook-examples 314c24b
  • update readme 320cf88
  • add cookbook examples 232d88b
  • Use TypeScript files for tests (#599) c73eb80
  • remove deprecated calls (#600) 93a04ba
  • lint and rebuild bace1ee
  • avoid exponential backoff reject the result by backoff on rpc response not result 33c927d
  • reliable undefined check 1a3bc71
  • fail on undefined only edcf049
  • fix: jsonrpc empty string response should success c729bac
  • Document createAndDeployContract amount param (#601) 897a650
  • build artifacts updated (#595) c5762ea
  • Bump ts-morph from 10.0.2 to 10.1.0 (#592) 9f07c00
  • fix: fix AccessKeyInfoView type (#575) fabdbb3
  • DEFAULT_FUNC_CALL_GAS constant exported (#586) 98e40d9
  • Merge pull request #588 from near/fix/update-typedocs-and-theme 595a5ae
  • update typedocs 20d18d2

v0.41.0...v0.42.0