Skip to content

Commit

Permalink
Merge pull request #1009 from near/changeset-release/master
Browse files Browse the repository at this point in the history
Publish packages
  • Loading branch information
andy-haynes authored Mar 30, 2023
2 parents 75d1e19 + d64c3a3 commit 53a75b3
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 64 deletions.
5 changes: 0 additions & 5 deletions .changeset/beige-suits-march.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/gentle-points-shake.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/great-jobs-destroy.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/slimy-baboons-itch.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/wild-teachers-marry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yellow-cars-film.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/biometric-ed25519/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @near-js/biometric-ed25519

## 0.0.4

### Patch Changes

- Updated dependencies [[`8ee564c0`](https://github.com/near/near-api-js/commit/8ee564c0f4786e3c9281892c73761bd6a9205074), [`8feb1997`](https://github.com/near/near-api-js/commit/8feb199733a770b25b63b0bbc7d79fc8b0b1683c), [`c740afc8`](https://github.com/near/near-api-js/commit/c740afc897208d26165c4f8b2aae6db70694e70b), [`b823ada7`](https://github.com/near/near-api-js/commit/b823ada740e64a45d4b9671fab791968b51de61a), [`726b7953`](https://github.com/near/near-api-js/commit/726b795312230357aa2bb8a8db8a217a0f18a663), [`0c85da12`](https://github.com/near/near-api-js/commit/0c85da123473017683b2a53f83652938488dd086)]:
- near-api-js@2.0.0
2 changes: 1 addition & 1 deletion packages/biometric-ed25519/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-js/biometric-ed25519",
"description": "JavaScript library to handle webauthn and biometric keys",
"version": "0.0.3",
"version": "0.0.4",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/cookbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @near-js/cookbook

## 1.0.2

### Patch Changes

- Updated dependencies [[`8ee564c0`](https://github.com/near/near-api-js/commit/8ee564c0f4786e3c9281892c73761bd6a9205074), [`8feb1997`](https://github.com/near/near-api-js/commit/8feb199733a770b25b63b0bbc7d79fc8b0b1683c), [`c740afc8`](https://github.com/near/near-api-js/commit/c740afc897208d26165c4f8b2aae6db70694e70b), [`b823ada7`](https://github.com/near/near-api-js/commit/b823ada740e64a45d4b9671fab791968b51de61a), [`726b7953`](https://github.com/near/near-api-js/commit/726b795312230357aa2bb8a8db8a217a0f18a663), [`0c85da12`](https://github.com/near/near-api-js/commit/0c85da123473017683b2a53f83652938488dd086)]:
- near-api-js@2.0.0

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cookbook/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@near-js/cookbook",
"private": true,
"version": "1.0.1",
"version": "1.0.2",
"description": "",
"main": "main.js",
"author": "",
Expand Down
53 changes: 53 additions & 0 deletions packages/near-api-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# near-api-js

## 2.0.0

### Major Changes

- [#1006](https://github.com/near/near-api-js/pull/1006) [`8ee564c0`](https://github.com/near/near-api-js/commit/8ee564c0f4786e3c9281892c73761bd6a9205074) Thanks [@morgsmccauley](https://github.com/morgsmccauley)! - Make `Account.signAndSendTransaction` `public` so transactions can be sent directly from `Account` instances

- [#1014](https://github.com/near/near-api-js/pull/1014) [`8feb1997`](https://github.com/near/near-api-js/commit/8feb199733a770b25b63b0bbc7d79fc8b0b1683c) Thanks [@esaminu](https://github.com/esaminu)! - Make `appKeyPrefix` a required arg to `WalletConnection` constructor

Users that were doing

```typescript
new WalletConnection(near);
```

will now have to do

```typescript
new WalletConnection(near, "undefined");
```

If they want to access the keys they had potentially accumulated

- [#935](https://github.com/near/near-api-js/pull/935) [`c740afc8`](https://github.com/near/near-api-js/commit/c740afc897208d26165c4f8b2aae6db70694e70b) Thanks [@hcho112](https://github.com/hcho112)! - `account.viewFunction` now takes a single object argument rather than individual args. Callsites will now need to be updated like so:

```diff
-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' },
+});
```

- [#1056](https://github.com/near/near-api-js/pull/1056) [`b823ada7`](https://github.com/near/near-api-js/commit/b823ada740e64a45d4b9671fab791968b51de61a) Thanks [@andy-haynes](https://github.com/andy-haynes)! - Major functionality in near-api-js has now been broken up into packages under @near-js

Breaking changes:

- `KeyPairEd25519` no longer supports the `fromString` static method. This method is now only available on the `KeyPair` class.

### Minor Changes

- [#1045](https://github.com/near/near-api-js/pull/1045) [`0c85da12`](https://github.com/near/near-api-js/commit/0c85da123473017683b2a53f83652938488dd086) Thanks [@itegulov](https://github.com/itegulov)! - `Contract` can now optionally be instantiated with ABI

### Patch Changes

- [#1003](https://github.com/near/near-api-js/pull/1003) [`726b7953`](https://github.com/near/near-api-js/commit/726b795312230357aa2bb8a8db8a217a0f18a663) Thanks [@marcinbodnar](https://github.com/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.

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/near-api-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "near-api-js",
"description": "JavaScript library to interact with NEAR Protocol via RPC API",
"version": "1.1.0",
"version": "2.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/near/near-api-js.git"
Expand Down

0 comments on commit 53a75b3

Please sign in to comment.