@metamask-previews/json-rpc-middleware-stream 9.0.0-preview-eb6c0745c → 9.0.0-preview-76b7c67
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.
- package/CHANGELOG.md +10 -79
- package/package.json +15 -16
package/CHANGELOG.md
CHANGED
|
@@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Add support for Node.js 26 ([#10981](https://github.com/MetaMask/core/pull/10981))
|
|
13
|
+
|
|
10
14
|
### Changed
|
|
11
15
|
|
|
12
|
-
- Bump `@metamask/utils` from `^11.12.0` to `^12.0.
|
|
16
|
+
- Bump `@metamask/utils` from `^11.12.0` to `^12.0.2` ([#10192](https://github.com/MetaMask/core/pull/10192), [#11107](https://github.com/MetaMask/core/pull/11107), [#11474](https://github.com/MetaMask/core/pull/11474))
|
|
13
17
|
|
|
14
18
|
## [9.0.0]
|
|
15
19
|
|
|
@@ -145,7 +149,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
145
149
|
|
|
146
150
|
### Added
|
|
147
151
|
|
|
148
|
-
-
|
|
152
|
+
- This package was migrated from `MetaMask/json-rpc-middleware-stream` to the
|
|
153
|
+
`MetaMask/core` monorepo ([#1762](https://github.com/MetaMask/core/pull/1762))
|
|
154
|
+
- See [`MetaMask/json-rpc-middleware-stream`](https://github.com/MetaMask/json-rpc-middleware-stream/blob/main/CHANGELOG.md)
|
|
155
|
+
for the original changelog.
|
|
149
156
|
|
|
150
157
|
## Changed
|
|
151
158
|
|
|
@@ -153,73 +160,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
153
160
|
- Bump `@metamask/json-rpc-engine` from `^7.1.0` to `^7.2.0` ([#1762](https://github.com/MetaMask/core/pull/1762))
|
|
154
161
|
- Bump `@metamask/utils` from `^8.1.0` to `^8.2.0` ([#1762](https://github.com/MetaMask/core/pull/1762))
|
|
155
162
|
|
|
156
|
-
## [5.0.1]
|
|
157
|
-
|
|
158
|
-
### Changed
|
|
159
|
-
|
|
160
|
-
- Upgrade typescript version to 4.8.4 ([#68](https://github.com/MetaMask/json-rpc-middleware-stream/pull/68))
|
|
161
|
-
|
|
162
|
-
## [5.0.0]
|
|
163
|
-
|
|
164
|
-
### Changed
|
|
165
|
-
|
|
166
|
-
- **BREAKING**: Increase minimum Node.js version to 16 ([#59](https://github.com/MetaMask/json-rpc-middleware-stream/pull/59))
|
|
167
|
-
- **BREAKING**: Update `readable-stream` from `^2.3.3` to `^3.6.2` ([#55](https://github.com/MetaMask/json-rpc-middleware-stream/pull/55))
|
|
168
|
-
- **BREAKING**: Switch from legacy `json-rpc-engine`@`^6.1.0` to `@metamask/json-rpc-engine`@`^7.1.1` ([#54](https://github.com/MetaMask/json-rpc-middleware-stream/pull/54))
|
|
169
|
-
- Add dependency `@metamask/utils` ([#54](https://github.com/MetaMask/json-rpc-middleware-stream/pull/54))
|
|
170
|
-
|
|
171
|
-
## [4.2.3]
|
|
172
|
-
|
|
173
|
-
### Fixed
|
|
174
|
-
|
|
175
|
-
- Moved json-rpc-engine from devDependencies to dependencies ([#56](https://github.com/MetaMask/json-rpc-middleware-stream/pull/56))
|
|
176
|
-
|
|
177
|
-
## [4.2.2]
|
|
178
|
-
|
|
179
|
-
### Changed
|
|
180
|
-
|
|
181
|
-
- Bump @metamask/safe-event-emitter from 2.0.0 to 3.0.0 ([#44](https://github.com/MetaMask/json-rpc-middleware-stream/pull/44))
|
|
182
|
-
|
|
183
|
-
### Fixed
|
|
184
|
-
|
|
185
|
-
- Fix race condition in `createStreamMiddleware` ([#47](https://github.com/MetaMask/json-rpc-middleware-stream/pull/47))
|
|
186
|
-
- Previously this middleware would fail to process synchronous responses on initialized streams
|
|
187
|
-
|
|
188
|
-
## [4.2.1]
|
|
189
|
-
|
|
190
|
-
### Fixed
|
|
191
|
-
|
|
192
|
-
- Add early return in createStreamMiddleware.processsResponse method if JSON RPC request is not found ([#35](https://github.com/MetaMask/json-rpc-middleware-stream/pull/35))
|
|
193
|
-
|
|
194
|
-
## [4.2.0]
|
|
195
|
-
|
|
196
|
-
### Changed
|
|
197
|
-
|
|
198
|
-
- Change error throw when response is seen for unknown request into warning displayed in console ([#32](https://github.com/MetaMask/json-rpc-middleware-stream/pull/32))
|
|
199
|
-
|
|
200
|
-
## [4.1.0]
|
|
201
|
-
|
|
202
|
-
### Changed
|
|
203
|
-
|
|
204
|
-
- Added retry limit of 3 to requests ([#30](https://github.com/MetaMask/json-rpc-middleware-stream/pull/30))
|
|
205
|
-
|
|
206
|
-
## [4.0.0] - 2022-10-03
|
|
207
|
-
|
|
208
|
-
### Changed
|
|
209
|
-
|
|
210
|
-
- BREAKING: Add Node 12 as minimum required version [#15](https://github.com/MetaMask/json-rpc-middleware-stream/pull/15)
|
|
211
|
-
- Retry pending requests when notification to reconnect is received ([#27](https://github.com/MetaMask/json-rpc-middleware-stream/pull/27))
|
|
212
|
-
|
|
213
|
-
### Security
|
|
214
|
-
|
|
215
|
-
- Add `@lavamoat/allow-scripts` to make dependency install scripts opt-in ([#25](https://github.com/MetaMask/json-rpc-middleware-stream/pull/25))
|
|
216
|
-
|
|
217
|
-
## [3.0.0] - 2020-12-08
|
|
218
|
-
|
|
219
|
-
### Added
|
|
220
|
-
|
|
221
|
-
- TypeScript typings ([#11](https://github.com/MetaMask/json-rpc-middleware-stream/pull/11))
|
|
222
|
-
|
|
223
163
|
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@9.0.0...HEAD
|
|
224
164
|
[9.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@8.0.8...@metamask/json-rpc-middleware-stream@9.0.0
|
|
225
165
|
[8.0.8]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@8.0.7...@metamask/json-rpc-middleware-stream@8.0.8
|
|
@@ -236,13 +176,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
236
176
|
[7.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.2...@metamask/json-rpc-middleware-stream@7.0.0
|
|
237
177
|
[6.0.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.1...@metamask/json-rpc-middleware-stream@6.0.2
|
|
238
178
|
[6.0.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.0...@metamask/json-rpc-middleware-stream@6.0.1
|
|
239
|
-
[6.0.0]: https://github.com/MetaMask/core/
|
|
240
|
-
[5.0.1]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@5.0.0...json-rpc-middleware-stream@5.0.1
|
|
241
|
-
[5.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.3...json-rpc-middleware-stream@5.0.0
|
|
242
|
-
[4.2.3]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.2...json-rpc-middleware-stream@4.2.3
|
|
243
|
-
[4.2.2]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.1...json-rpc-middleware-stream@4.2.2
|
|
244
|
-
[4.2.1]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.0...json-rpc-middleware-stream@4.2.1
|
|
245
|
-
[4.2.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.1.0...json-rpc-middleware-stream@4.2.0
|
|
246
|
-
[4.1.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.0.0...json-rpc-middleware-stream@4.1.0
|
|
247
|
-
[4.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@3.0.0...json-rpc-middleware-stream@4.0.0
|
|
248
|
-
[3.0.0]: https://github.com/MetaMask/core/releases/tag/json-rpc-middleware-stream@3.0.0
|
|
179
|
+
[6.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/json-rpc-middleware-stream@6.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/json-rpc-middleware-stream",
|
|
3
|
-
"version": "9.0.0-preview-
|
|
3
|
+
"version": "9.0.0-preview-76b7c67",
|
|
4
4
|
"description": "A small toolset for streaming JSON-RPC data and matching requests and responses",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|
|
@@ -32,43 +32,42 @@
|
|
|
32
32
|
"registry": "https://registry.npmjs.org/"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
|
+
"allow-scripts": "yarn workspace @metamask/core-monorepo run allow-scripts",
|
|
35
36
|
"build": "tsc --project tsconfig.build.json",
|
|
36
37
|
"build:all": "tsc --build tsconfig.build.json --verbose",
|
|
37
38
|
"build:clean": "yarn build:only-clean && yarn build",
|
|
38
39
|
"build:docs": "typedoc",
|
|
39
40
|
"build:only-clean": "rimraf './dist' './tsconfig.build.tsbuildinfo'",
|
|
40
|
-
"changelog:update": "../../scripts/update-changelog.sh @metamask/json-rpc-middleware-stream
|
|
41
|
-
"changelog:validate": "../../scripts/validate-changelog.sh
|
|
42
|
-
"lint:tsconfigs": "node --import ../../scripts/resolver/register.ts
|
|
43
|
-
"lint:tsconfigs:fix": "node --import ../../scripts/resolver/register.ts
|
|
41
|
+
"changelog:update": "../../scripts/update-changelog.sh @metamask/json-rpc-middleware-stream",
|
|
42
|
+
"changelog:validate": "../../scripts/validate-changelog.sh",
|
|
43
|
+
"lint:tsconfigs": "node --import ../../scripts/resolver/register.ts ../../scripts/lint-tsconfigs/lint-tsconfigs.ts",
|
|
44
|
+
"lint:tsconfigs:fix": "node --import ../../scripts/resolver/register.ts ../../scripts/lint-tsconfigs/lint-tsconfigs.ts --fix",
|
|
44
45
|
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
45
|
-
"test": "
|
|
46
|
-
"test:clean": "
|
|
47
|
-
"test:
|
|
48
|
-
"test:
|
|
46
|
+
"test": "vitest",
|
|
47
|
+
"test:clean": "vitest --clearCache",
|
|
48
|
+
"test:coverage": "vitest --coverage",
|
|
49
|
+
"test:verbose": "vitest --reporter=verbose",
|
|
50
|
+
"test:watch": "vitest --watch"
|
|
49
51
|
},
|
|
50
52
|
"dependencies": {
|
|
51
53
|
"@metamask/json-rpc-engine": "^11.0.0",
|
|
52
54
|
"@metamask/safe-event-emitter": "^3.1.3",
|
|
53
|
-
"@metamask/utils": "^12.0.
|
|
55
|
+
"@metamask/utils": "^12.0.2",
|
|
54
56
|
"readable-stream": "^3.6.2"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
|
-
"@metamask/auto-changelog": "^
|
|
58
|
-
"@types/jest": "^30.0.0",
|
|
59
|
+
"@metamask/auto-changelog": "^7.1.0",
|
|
59
60
|
"@types/readable-stream": "^2.3.0",
|
|
60
61
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
61
|
-
"deepmerge": "^4.3.1",
|
|
62
62
|
"extension-port-stream": "^3.0.0",
|
|
63
|
-
"jest": "^30.5.2",
|
|
64
63
|
"rimraf": "^6.1.3",
|
|
65
|
-
"ts-jest": "^29.4.14",
|
|
66
64
|
"typedoc": "^0.28.20",
|
|
67
65
|
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
68
66
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
67
|
+
"vitest": "5.0.3",
|
|
69
68
|
"webextension-polyfill-ts": "^0.26.0"
|
|
70
69
|
},
|
|
71
70
|
"engines": {
|
|
72
|
-
"node": "^22.14.0 || ^24"
|
|
71
|
+
"node": "^22.14.0 || ^24 || ^26"
|
|
73
72
|
}
|
|
74
73
|
}
|