Skip to content

Commit

Permalink
Merge branch 'master' into remove-bnjs
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsonevv committed Dec 21, 2023
2 parents 9060b78 + 7c9142f commit b402e39
Show file tree
Hide file tree
Showing 36 changed files with 2,349 additions and 1,956 deletions.
5 changes: 0 additions & 5 deletions .changeset/bright-nails-glow.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/funny-jars-camp.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/healthy-bees-shout.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/nervous-bugs-doubt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nice-worms-arrive.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/spicy-tomatoes-talk.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/strong-dots-design.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/wet-jars-attend.md

This file was deleted.

33 changes: 33 additions & 0 deletions packages/accounts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# @near-js/accounts

## 1.0.1

### Patch Changes

- Updated dependencies [[`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50)]:
- @near-js/crypto@1.1.0
- @near-js/signers@0.0.7
- @near-js/transactions@1.0.1
- @near-js/providers@0.0.9

## 1.0.0

### Major Changes

- [#1168](https://github.com/near/near-api-js/pull/1168) [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8) Thanks [@gagdiez](https://github.com/gagdiez)! - feat: updated borsh-js to v1.0.1

### Patch Changes

- [#1172](https://github.com/near/near-api-js/pull/1172) [`0f764ee0`](https://github.com/near/near-api-js/commit/0f764ee03b5747fbf8a971c7b04ef8326238a1d0) Thanks [@arrusev](https://github.com/arrusev)! - Implement local execution of contract view methods

- [#1195](https://github.com/near/near-api-js/pull/1195) [`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947) Thanks [@ShaunSHamilton](https://github.com/ShaunSHamilton)! - add check for global 'process' object

- [#1215](https://github.com/near/near-api-js/pull/1215) [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea) Thanks [@denbite](https://github.com/denbite)! - Internal logging library with capabilities for integration with modern logging libraries like Pino, Winston, etc

- [#1209](https://github.com/near/near-api-js/pull/1209) [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f) Thanks [@gtsonevv](https://github.com/gtsonevv)! - Replace tweetnacl by @noble/curves

- Updated dependencies [[`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947), [`0be6c420`](https://github.com/near/near-api-js/commit/0be6c4209f56c0595bf66e217b7ac01444981b99), [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea), [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f), [`038b9b9f`](https://github.com/near/near-api-js/commit/038b9b9fd57f73e537041d4b90ed07bf3cd811d9)]:
- @near-js/providers@0.0.8
- @near-js/utils@0.0.5
- @near-js/crypto@1.0.0
- @near-js/transactions@1.0.0
- @near-js/signers@0.0.6

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-js/accounts",
"version": "0.1.4",
"version": "1.0.1",
"description": "Classes encapsulating account-specific functionality",
"main": "lib/index.js",
"scripts": {
Expand Down
23 changes: 23 additions & 0 deletions packages/biometric-ed25519/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @near-js/biometric-ed25519

## 1.0.1

### Patch Changes

- Updated dependencies [[`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50)]:
- @near-js/crypto@1.1.0

## 1.0.0

### Major Changes

- [#1168](https://github.com/near/near-api-js/pull/1168) [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8) Thanks [@gagdiez](https://github.com/gagdiez)! - feat: updated borsh-js to v1.0.1

### Minor Changes

- [#1191](https://github.com/near/near-api-js/pull/1191) [`6a67ce35`](https://github.com/near/near-api-js/commit/6a67ce35a688c6cfa4105adf0e3b06fff19f0892) Thanks [@hcho112](https://github.com/hcho112)! - Handing null response on create key flow

### Patch Changes

- Updated dependencies [[`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947), [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea), [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f)]:
- @near-js/utils@0.0.5
- @near-js/crypto@1.0.0

## 0.3.0

### Minor Changes
Expand Down
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.4.0",
"version": "1.0.1",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
Expand Down
24 changes: 24 additions & 0 deletions packages/cookbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @near-js/cookbook

## 1.0.13

### Patch Changes

- Updated dependencies []:
- @near-js/accounts@1.0.1
- @near-js/keystores-node@0.0.7
- near-api-js@3.0.1
- @near-js/signers@0.0.7
- @near-js/transactions@1.0.1
- @near-js/providers@0.0.9

## 1.0.12

### Patch Changes

- Updated dependencies [[`0f764ee0`](https://github.com/near/near-api-js/commit/0f764ee03b5747fbf8a971c7b04ef8326238a1d0), [`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947), [`0be6c420`](https://github.com/near/near-api-js/commit/0be6c4209f56c0595bf66e217b7ac01444981b99), [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea), [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f), [`038b9b9f`](https://github.com/near/near-api-js/commit/038b9b9fd57f73e537041d4b90ed07bf3cd811d9)]:
- @near-js/accounts@1.0.0
- near-api-js@3.0.0
- @near-js/providers@0.0.8
- @near-js/transactions@1.0.0
- @near-js/keystores-node@0.0.6
- @near-js/signers@0.0.6

## 1.0.11

### 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.11",
"version": "1.0.13",
"description": "",
"main": "main.js",
"author": "",
Expand Down
19 changes: 19 additions & 0 deletions packages/crypto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @near-js/crypto

## 1.1.0

### Minor Changes

- [#1219](https://github.com/near/near-api-js/pull/1219) [`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50) Thanks [@gtsonevv](https://github.com/gtsonevv)! - add crypto-browserify

## 1.0.0

### Major Changes

- [#1168](https://github.com/near/near-api-js/pull/1168) [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8) Thanks [@gagdiez](https://github.com/gagdiez)! - feat: updated borsh-js to v1.0.1

### Patch Changes

- [#1209](https://github.com/near/near-api-js/pull/1209) [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f) Thanks [@gtsonevv](https://github.com/gtsonevv)! - Replace tweetnacl by @noble/curves

- Updated dependencies [[`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947), [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea)]:
- @near-js/utils@0.0.5

## 0.0.5

### Patch Changes
Expand Down
5 changes: 3 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-js/crypto",
"version": "0.0.5",
"version": "1.1.0",
"description": "Abstractions around NEAR-compatible elliptical curves and cryptographic keys",
"main": "lib/index.js",
"scripts": {
Expand All @@ -19,7 +19,8 @@
"@near-js/types": "workspace:*",
"@near-js/utils": "workspace:*",
"borsh": "1.0.0",
"@noble/curves": "1.2.0"
"@noble/curves": "1.2.0",
"crypto-browserify": "3.12.0"
},
"devDependencies": {
"@types/node": "18.11.18",
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/src/key_pair_ed25519.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { baseEncode, baseDecode } from '@near-js/utils';
import { ed25519 } from '@noble/curves/ed25519';
import { webcrypto } from 'crypto';
import crypto from 'crypto-browserify';

import { KeySize, KeyType } from './constants';
import { KeyPairBase, Signature } from './key_pair_base';
Expand Down Expand Up @@ -41,7 +41,7 @@ export class KeyPairEd25519 extends KeyPairBase {
* // returns [SECRET_KEY]
*/
static fromRandom() {
const secretKey = webcrypto.getRandomValues(new Uint8Array(KeySize.SECRET_KEY));
const secretKey = crypto.randomBytes(KeySize.SECRET_KEY);
const publicKey = ed25519.getPublicKey(secretKey);
const extendedSecretKey = new Uint8Array([...secretKey, ...publicKey]);
return new KeyPairEd25519(baseEncode(extendedSecretKey));
Expand Down
16 changes: 16 additions & 0 deletions packages/keystores-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @near-js/keystores-browser

## 0.0.7

### Patch Changes

- Updated dependencies [[`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50)]:
- @near-js/crypto@1.1.0
- @near-js/keystores@0.0.7

## 0.0.6

### Patch Changes

- Updated dependencies [[`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f)]:
- @near-js/crypto@1.0.0
- @near-js/keystores@0.0.6

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/keystores-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-js/keystores-browser",
"version": "0.0.5",
"version": "0.0.7",
"description": "KeyStore implementation for working with keys in browser LocalStorage",
"main": "lib/index.js",
"scripts": {
Expand Down
16 changes: 16 additions & 0 deletions packages/keystores-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @near-js/keystores-node

## 0.0.7

### Patch Changes

- Updated dependencies [[`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50)]:
- @near-js/crypto@1.1.0
- @near-js/keystores@0.0.7

## 0.0.6

### Patch Changes

- Updated dependencies [[`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f)]:
- @near-js/crypto@1.0.0
- @near-js/keystores@0.0.6

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/keystores-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-js/keystores-node",
"version": "0.0.5",
"version": "0.0.7",
"description": "KeyStore implementation for working with keys in the local filesystem",
"main": "lib/index.js",
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions packages/keystores/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @near-js/keystores

## 0.0.7

### Patch Changes

- Updated dependencies [[`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50)]:
- @near-js/crypto@1.1.0

## 0.0.6

### Patch Changes

- Updated dependencies [[`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f)]:
- @near-js/crypto@1.0.0

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/keystores/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-js/keystores",
"version": "0.0.5",
"version": "0.0.7",
"description": "Key storage and management implementations",
"main": "lib/index.js",
"scripts": {
Expand Down
45 changes: 45 additions & 0 deletions packages/near-api-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# near-api-js

## 3.0.1

### Patch Changes

- Updated dependencies [[`aeeb1502`](https://github.com/near/near-api-js/commit/aeeb15022a1c1deb99114eba0473739b0998fc50)]:
- @near-js/crypto@1.1.0
- @near-js/accounts@1.0.1
- @near-js/keystores@0.0.7
- @near-js/keystores-browser@0.0.7
- @near-js/keystores-node@0.0.7
- @near-js/signers@0.0.7
- @near-js/transactions@1.0.1
- @near-js/wallet-account@1.0.1
- @near-js/providers@0.0.9

## 3.0.0

### Major Changes

- [#1168](https://github.com/near/near-api-js/pull/1168) [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8) Thanks [@gagdiez](https://github.com/gagdiez)! - feat: updated borsh-js to v1.0.1

### Minor Changes

- [#1215](https://github.com/near/near-api-js/pull/1215) [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea) Thanks [@denbite](https://github.com/denbite)! - Internal logging library with capabilities for integration with modern logging libraries like Pino, Winston, etc

### Patch Changes

- [#1195](https://github.com/near/near-api-js/pull/1195) [`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947) Thanks [@ShaunSHamilton](https://github.com/ShaunSHamilton)! - add check for global 'process' object

- [#1209](https://github.com/near/near-api-js/pull/1209) [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f) Thanks [@gtsonevv](https://github.com/gtsonevv)! - Replace tweetnacl by @noble/curves

- [#1194](https://github.com/near/near-api-js/pull/1194) [`038b9b9f`](https://github.com/near/near-api-js/commit/038b9b9fd57f73e537041d4b90ed07bf3cd811d9) Thanks [@andrew-scott-fischer](https://github.com/andrew-scott-fischer)! - fixes override of global fetch property

- Updated dependencies [[`0f764ee0`](https://github.com/near/near-api-js/commit/0f764ee03b5747fbf8a971c7b04ef8326238a1d0), [`695220e7`](https://github.com/near/near-api-js/commit/695220e75bc43834a7700cfc5491a7eebd324947), [`0be6c420`](https://github.com/near/near-api-js/commit/0be6c4209f56c0595bf66e217b7ac01444981b99), [`ecf29e2d`](https://github.com/near/near-api-js/commit/ecf29e2d56611a7773c79d5bb5bd20c8b7e738ea), [`61349aec`](https://github.com/near/near-api-js/commit/61349aeca3af830f702b24654e0f13cd428192d8), [`cdd8d1c8`](https://github.com/near/near-api-js/commit/cdd8d1c8c37db641bd995b2c470ad0b4fdddb93f), [`038b9b9f`](https://github.com/near/near-api-js/commit/038b9b9fd57f73e537041d4b90ed07bf3cd811d9)]:
- @near-js/accounts@1.0.0
- @near-js/providers@0.0.8
- @near-js/utils@0.0.5
- @near-js/wallet-account@1.0.0
- @near-js/crypto@1.0.0
- @near-js/transactions@1.0.0
- @near-js/keystores@0.0.6
- @near-js/keystores-browser@0.0.6
- @near-js/keystores-node@0.0.6
- @near-js/signers@0.0.6

## 2.1.4

### Patch 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": "2.1.4",
"version": "3.0.1",
"repository": {
"type": "git",
"url": "git+https://github.com/near/near-api-js.git"
Expand Down
Loading

0 comments on commit b402e39

Please sign in to comment.