@metamask/eth-block-tracker 11.0.3 → 11.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +10 -9
package/README.md CHANGED
@@ -91,10 +91,9 @@ blockTracker.on('error', (err) => console.error(err));
91
91
  ### Setup
92
92
 
93
93
  - Install the current LTS version of [Node.js](https://nodejs.org)
94
- - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.
95
- - Install [Yarn v1](https://yarnpkg.com/en/docs/install)
96
- - Run `yarn setup` to install dependencies and run any requried post-install scripts
97
- - **Warning:** Do not use the `yarn` / `yarn install` command directly. Use `yarn setup` instead. The normal install command will skip required post-install scripts, leaving your development environment in an invalid state.
94
+ - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm install` will install the latest version and running `nvm use` will automatically choose the right node version for you.
95
+ - Install [Yarn](https://yarnpkg.com) v4 via [Corepack](https://github.com/nodejs/corepack?tab=readme-ov-file#how-to-install)
96
+ - Run `yarn install` to install dependencies and run any required post-install scripts
98
97
 
99
98
  ### Testing and Linting
100
99
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@metamask/eth-block-tracker",
3
- "version": "11.0.3",
4
- "description": "A block tracker for the Ethereum blockchain. Keeps track of the latest block.",
3
+ "version": "11.0.4",
4
+ "description": "A block tracker for the Ethereum blockchain. Keeps track of the latest block",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MetaMask/eth-block-tracker.git"
@@ -15,19 +15,19 @@
15
15
  "scripts": {
16
16
  "build": "tsc --project tsconfig.build.json",
17
17
  "build:clean": "rimraf dist && yarn build",
18
- "lint": "yarn lint:eslint && yarn lint:misc --check",
18
+ "lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check",
19
+ "lint:constraints": "yarn constraints",
19
20
  "lint:eslint": "eslint . --cache --ext js,ts",
20
- "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
21
+ "lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write",
21
22
  "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
22
- "prepublishOnly": "yarn build:clean && yarn lint && yarn test",
23
- "setup": "yarn install && yarn allow-scripts",
23
+ "prepack": "./scripts/prepack.sh",
24
24
  "test": "jest",
25
25
  "test:watch": "jest --watch"
26
26
  },
27
27
  "dependencies": {
28
28
  "@metamask/eth-json-rpc-provider": "^4.1.5",
29
29
  "@metamask/safe-event-emitter": "^3.1.1",
30
- "@metamask/utils": "^9.1.0",
30
+ "@metamask/utils": "^11.0.1",
31
31
  "json-rpc-random-id": "^1.0.1",
32
32
  "pify": "^5.0.0"
33
33
  },
@@ -45,12 +45,13 @@
45
45
  "@types/pify": "^5.0.1",
46
46
  "@typescript-eslint/eslint-plugin": "^5.61.0",
47
47
  "@typescript-eslint/parser": "^5.61.0",
48
+ "@yarnpkg/types": "^4.0.0",
48
49
  "eslint": "^8.21.0",
49
50
  "eslint-config-prettier": "^8.1.0",
50
51
  "eslint-import-resolver-typescript": "^2.7.1",
51
52
  "eslint-plugin-import": "^2.22.1",
52
53
  "eslint-plugin-jest": "^27.1.5",
53
- "eslint-plugin-jsdoc": "^39.9.1",
54
+ "eslint-plugin-jsdoc": "^41.0.0",
54
55
  "eslint-plugin-n": "^15.7.0",
55
56
  "eslint-plugin-prettier": "^4.2.1",
56
57
  "eslint-plugin-promise": "^6.1.1",
@@ -62,7 +63,7 @@
62
63
  "ts-node": "^10.7.0",
63
64
  "typescript": "~4.8.4"
64
65
  },
65
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
66
+ "packageManager": "yarn@4.5.3",
66
67
  "engines": {
67
68
  "node": "^18.16 || ^20 || >=22"
68
69
  },