You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Explanation
Improve traces for BackendWebsocket and improve codease
## References
<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?
For example:
* Fixes #12345
* Related to #67890
-->
## Checklist
- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] 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
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Publishes `@metamask/core-backend@4.1.0` with improved WebSocket
tracing/reconnection and updates `assets-controllers` to
`core-backend^4.1.0`, along with monorepo/version and lockfile bumps.
>
> - **Backend (`packages/core-backend`)**
> - Release `4.1.0` with:
> - Improved WebSocket lifecycle tracing in `BackendWebSocketService`
> - Updated default reconnection backoff (`reconnectDelay` 10s,
`maxReconnectDelay` 60s)
> - Simplified disconnection handling; add manual disconnect constants
> - Tooling: `typescript` v5.3, `@ts-bridge/cli` bump; fix missing dep
in build script
> - **Assets Controllers (`packages/assets-controllers`)**
> - Bump `@metamask/core-backend` dev/peer deps to `^4.1.0`
> - Changelog notes RPC fallback/timeouts (context)
> - **Repo**
> - Bump root version to `681.0.0`
> - Update `yarn.lock` to reflect dependency changes
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
fc4a74f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Copy file name to clipboardExpand all lines: packages/core-backend/CHANGELOG.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [4.1.0]
11
+
10
12
### Changed
11
13
12
14
- Improve WebSocket connection lifecycle tracing in `BackendWebSocketService` ([#7101](https://github.com/MetaMask/core/pull/7101))
@@ -20,11 +22,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
22
- Centralize all disconnection logic in `ws.onclose` handler for single source of truth
21
23
- Centralize all state changes within `#establishConnection` method - state transitions only occur in `onopen` (CONNECTING → CONNECTED) and `onclose` (any state → DISCONNECTED)
22
24
- Add `MANUAL_DISCONNECT_CODE` (4999) and `MANUAL_DISCONNECT_REASON` constants to distinguish manual from unexpected disconnects
25
+
- Update `typescript` to v5.3 ([#7081](https://github.com/MetaMask/core/pull/7081))
26
+
- Bump `@ts-bridge/cli` from `^0.6.1` to `^0.6.4` ([#7039](https://github.com/MetaMask/core/pull/7039))
23
27
24
28
### Removed
25
29
26
30
- Remove `BackendWebSocketService Channel Message` trace as it provided no useful performance insights ([#7101](https://github.com/MetaMask/core/pull/7101))
27
31
32
+
### Fixed
33
+
34
+
- Fix build script not working because of missing `@ts-bridge/cli` dependency ([#7040](https://github.com/MetaMask/core/pull/7040))
35
+
28
36
## [4.0.0]
29
37
30
38
### Changed
@@ -151,7 +159,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
151
159
-**Type definitions** - Comprehensive TypeScript types for transactions, balances, WebSocket messages, and service configurations
152
160
-**Logging infrastructure** - Structured logging with module-specific loggers for debugging and monitoring
0 commit comments