Commit ce424cb
authored
fix(json-rpc-engine): Export MiddlewareContext class (#6971)
## Explanation
Export the `MiddlewareContext` class in addition to its type.
## References
N/A
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Exports the MiddlewareContext class from json-rpc-engine/v2 and
updates tests and changelog references.
>
> - **Exports (`packages/json-rpc-engine/src/v2/index.ts`)**:
> - Add `MiddlewareContext` class to v2 public exports; keep
`EmptyContext` as type-only export.
> - **Tests (`packages/json-rpc-engine/src/v2/index.test.ts`)**:
> - Update export snapshot (sorted) to include `MiddlewareContext`.
> - **Changelog (`packages/json-rpc-engine/CHANGELOG.md`)**:
> - Add PR reference `#6971` to `JsonRpcEngineV2` entry.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
e8f2750. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 0715a3f commit ce424cb
File tree
3 files changed
+8
-6
lines changed- packages/json-rpc-engine
- src/v2
3 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
13 | | - | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments