Skip to content

Commit

Permalink
Merge branch 'master' into update-rpc-error-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsonevv authored May 8, 2024
2 parents bd19a27 + b61b66d commit 1a50916
Show file tree
Hide file tree
Showing 114 changed files with 5,876 additions and 3,874 deletions.
11 changes: 0 additions & 11 deletions .changeset/red-mice-argue.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twelve-rabbits-cough.md

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ globals:
jasmine: true
window: false
fail: true
BigInt: true
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
"turbo": "1.4.5",
"typedoc": "0.25.3",
"typescript": "4.9.4"
},
"resolutions": {
"near-sandbox": "0.0.18",
"near-api-js": "4.0.0"
}
}
59 changes: 58 additions & 1 deletion packages/accounts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# @near-js/accounts

## 1.2.0

### Minor Changes

- [#1317](https://github.com/near/near-api-js/pull/1317) [`06baa81d`](https://github.com/near/near-api-js/commit/06baa81dc604cfe0463476de7a4dcdd39a6f716a) Thanks [@gtsonevv](https://github.com/gtsonevv)! - Add support for nearcore 1.37 changes

### Patch Changes

- Updated dependencies [[`06baa81d`](https://github.com/near/near-api-js/commit/06baa81dc604cfe0463476de7a4dcdd39a6f716a)]:
- @near-js/types@0.2.0
- @near-js/crypto@1.2.3
- @near-js/providers@0.2.1
- @near-js/transactions@1.2.1
- @near-js/utils@0.2.1
- @near-js/signers@0.1.3

## 1.1.0

### Minor Changes

- [#1223](https://github.com/near/near-api-js/pull/1223) [`9060b781`](https://github.com/near/near-api-js/commit/9060b7811668d71bdf21170273a42842c3691f9b) Thanks [@gtsonevv](https://github.com/gtsonevv)! - Replace bn.js by BigInt.

- [#1325](https://github.com/near/near-api-js/pull/1325) [`cc401a6c`](https://github.com/near/near-api-js/commit/cc401a6c893398e2185c35765ca316f68ac86074) Thanks [@denbite](https://github.com/denbite)! - Extend Contract class to accept Connection object

- [#1334](https://github.com/near/near-api-js/pull/1334) [`3f363113`](https://github.com/near/near-api-js/commit/3f363113e102d0acf29b7b2635acf6160a028cc3) Thanks [@denbite](https://github.com/denbite)! - Introduce FailoverRpcProvider that switches between providers in case of a failure of one of them

### Patch Changes

- [#1292](https://github.com/near/near-api-js/pull/1292) [`f739324b`](https://github.com/near/near-api-js/commit/f739324b2959712281d957eb26a09e5d68e32c80) Thanks [@gtsonevv](https://github.com/gtsonevv)! - replace ajv with is-my-json-valid

- Updated dependencies [[`9060b781`](https://github.com/near/near-api-js/commit/9060b7811668d71bdf21170273a42842c3691f9b), [`3f363113`](https://github.com/near/near-api-js/commit/3f363113e102d0acf29b7b2635acf6160a028cc3)]:
- @near-js/transactions@1.2.0
- @near-js/types@0.1.0
- @near-js/utils@0.2.0
- @near-js/crypto@1.2.2
- @near-js/providers@0.2.0
- @near-js/signers@0.1.2

## 1.0.4

### Patch Changes

- Updated dependencies [[`42dc7e2a`](https://github.com/near/near-api-js/commit/42dc7e2ac794e973987bed7b89da5ef2d3c6c8ac)]:
- @near-js/transactions@1.1.2
- @near-js/providers@0.1.1

## 1.0.3

### Patch Changes

- Updated dependencies [[`662cc13d`](https://github.com/near/near-api-js/commit/662cc13d7961c3bdabed3ad51b1c57958739a3e6), [`c4655576`](https://github.com/near/near-api-js/commit/c4655576bacb1d8b85030dca5b9443649621c8ee)]:
- @near-js/providers@0.1.0
- @near-js/utils@0.1.0
- @near-js/crypto@1.2.1
- @near-js/transactions@1.1.1
- @near-js/signers@0.1.1

## 1.0.2

### Patch Changes
Expand Down Expand Up @@ -57,7 +114,7 @@

### Patch Changes

- [#1128](https://github.com/near/near-api-js/pull/1128) [`e21ff896`](https://github.com/near/near-api-js/commit/e21ff89601c858fb703169e3bb53c6d96cff5342) Thanks [@andy-haynes](https://github.com/andy-haynes)! - Compatiblity shim for NearSocial/VM
- [#1128](https://github.com/near/near-api-js/pull/1128) [`e21ff896`](https://github.com/near/near-api-js/commit/e21ff89601c858fb703169e3bb53c6d96cff5342) Thanks [@andy-haynes](https://github.com/andy-haynes)! - Compatibility shim for NearSocial/VM

- Updated dependencies [[`e21ff896`](https://github.com/near/near-api-js/commit/e21ff89601c858fb703169e3bb53c6d96cff5342), [`00b4d2ba`](https://github.com/near/near-api-js/commit/00b4d2ba3f9f3a1f90343e34cb9bde8cdb607ceb)]:
- @near-js/transactions@0.2.0
Expand Down
23 changes: 20 additions & 3 deletions packages/accounts/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true
preset: "ts-jest",
collectCoverage: true,
projects: [
{
displayName: "dom",
testEnvironment: "jsdom", // runs tests in a browser-like environment
testMatch: [
"**/test/**/*.test.js?(x)",
"**/test/**/*.test.dom.js?(x)",
],
},
{
displayName: "node",
testEnvironment: "node", // runs tests in a Node.js environment
testMatch: [
"**/test/**/*.test.js?(x)",
"**/test/**/*.test.node.js?(x)",
],
},
],
};
90 changes: 46 additions & 44 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
{
"name": "@near-js/accounts",
"version": "1.0.2",
"description": "Classes encapsulating account-specific functionality",
"main": "lib/index.js",
"scripts": {
"build": "pnpm compile",
"compile": "tsc -p tsconfig.json",
"lint:js": "eslint -c ../../.eslintrc.js.yml test/**/*.js --no-eslintrc",
"lint:js:fix": "eslint -c ../../.eslintrc.js.yml test/**/*.js --no-eslintrc --fix",
"lint:ts": "eslint -c ../../.eslintrc.ts.yml src/**/*.ts --no-eslintrc",
"lint:ts:fix": "eslint -c ../../.eslintrc.ts.yml src/**/*.ts --no-eslintrc --fix",
"test": "jest test"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@near-js/crypto": "workspace:*",
"@near-js/providers": "workspace:*",
"@near-js/signers": "workspace:*",
"@near-js/transactions": "workspace:*",
"@near-js/types": "workspace:*",
"@near-js/utils": "workspace:*",
"ajv": "8.11.2",
"ajv-formats": "2.1.1",
"bn.js": "5.2.1",
"borsh": "1.0.0",
"depd": "2.0.0",
"lru_map": "0.4.1",
"near-abi": "0.1.1"
},
"devDependencies": {
"@near-js/keystores": "workspace:*",
"@types/node": "18.11.18",
"bs58": "4.0.0",
"jest": "26.0.1",
"near-hello": "0.5.1",
"ts-jest": "26.5.6",
"typescript": "4.9.4",
"near-workspaces": "3.4.0"
},
"files": [
"lib"
]
"name": "@near-js/accounts",
"version": "1.2.0",
"description": "Classes encapsulating account-specific functionality",
"main": "lib/index.js",
"scripts": {
"build": "pnpm compile",
"compile": "tsc -p tsconfig.json",
"lint:js": "eslint -c ../../.eslintrc.js.yml test/**/*.js --no-eslintrc",
"lint:js:fix": "eslint -c ../../.eslintrc.js.yml test/**/*.js --no-eslintrc --fix",
"lint:ts": "eslint -c ../../.eslintrc.ts.yml src/**/*.ts --no-eslintrc",
"lint:ts:fix": "eslint -c ../../.eslintrc.ts.yml src/**/*.ts --no-eslintrc --fix",
"test": "jest test"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@near-js/crypto": "workspace:*",
"@near-js/providers": "workspace:*",
"@near-js/signers": "workspace:*",
"@near-js/transactions": "workspace:*",
"@near-js/types": "workspace:*",
"@near-js/utils": "workspace:*",
"borsh": "1.0.0",
"depd": "2.0.0",
"is-my-json-valid": "^2.20.6",
"lru_map": "0.4.1",
"near-abi": "0.1.1"
},
"devDependencies": {
"@near-js/keystores": "workspace:*",
"@types/node": "18.11.18",
"bs58": "4.0.0",
"jest": "26.0.1",
"near-hello": "0.5.1",
"near-workspaces": "3.5.0",
"ts-jest": "26.5.6",
"typescript": "4.9.4"
},
"files": [
"lib"
],
"resolutions": {
"near-sandbox": "0.0.18",
"near-api-js": "4.0.0"
}
}
Loading

0 comments on commit 1a50916

Please sign in to comment.