Skip to content

Commit 0720b9f

Browse files
authored
Release/681.0.0 (#7168)
## 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 -->
1 parent 420b45b commit 0720b9f

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-monorepo",
3-
"version": "680.0.0",
3+
"version": "681.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {

packages/assets-controllers/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Bump `@metamask/core-backend` from `^4.0.0` to `^4.1.0`
13+
1014
### Fixed
1115

1216
- Enable RPC fallback when Accounts API fails or times out in `TokenBalancesController` ([#7155](https://github.com/MetaMask/core/pull/7155))

packages/assets-controllers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"@metamask/accounts-controller": "^34.0.0",
8787
"@metamask/approval-controller": "^8.0.0",
8888
"@metamask/auto-changelog": "^3.4.4",
89-
"@metamask/core-backend": "^4.0.0",
89+
"@metamask/core-backend": "^4.1.0",
9090
"@metamask/ethjs-provider-http": "^0.3.0",
9191
"@metamask/keyring-controller": "^24.0.0",
9292
"@metamask/keyring-internal-api": "^9.0.0",
@@ -118,7 +118,7 @@
118118
"@metamask/account-tree-controller": "^3.0.0",
119119
"@metamask/accounts-controller": "^34.0.0",
120120
"@metamask/approval-controller": "^8.0.0",
121-
"@metamask/core-backend": "^4.0.0",
121+
"@metamask/core-backend": "^4.1.0",
122122
"@metamask/keyring-controller": "^24.0.0",
123123
"@metamask/network-controller": "^25.0.0",
124124
"@metamask/permission-controller": "^12.0.0",

packages/core-backend/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.1.0]
11+
1012
### Changed
1113

1214
- 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
2022
- Centralize all disconnection logic in `ws.onclose` handler for single source of truth
2123
- Centralize all state changes within `#establishConnection` method - state transitions only occur in `onopen` (CONNECTING → CONNECTED) and `onclose` (any state → DISCONNECTED)
2224
- 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))
2327

2428
### Removed
2529

2630
- Remove `BackendWebSocketService Channel Message` trace as it provided no useful performance insights ([#7101](https://github.com/MetaMask/core/pull/7101))
2731

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+
2836
## [4.0.0]
2937

3038
### Changed
@@ -151,7 +159,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
151159
- **Type definitions** - Comprehensive TypeScript types for transactions, balances, WebSocket messages, and service configurations
152160
- **Logging infrastructure** - Structured logging with module-specific loggers for debugging and monitoring
153161

154-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/core-backend@4.0.0...HEAD
162+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/core-backend@4.1.0...HEAD
163+
[4.1.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@4.0.0...@metamask/core-backend@4.1.0
155164
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@3.0.0...@metamask/core-backend@4.0.0
156165
[3.0.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@2.1.0...@metamask/core-backend@3.0.0
157166
[2.1.0]: https://github.com/MetaMask/core/compare/@metamask/core-backend@2.0.0...@metamask/core-backend@2.1.0

packages/core-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-backend",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"description": "Core backend services for MetaMask",
55
"keywords": [
66
"MetaMask",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ __metadata:
26512651
"@metamask/base-controller": "npm:^9.0.0"
26522652
"@metamask/contract-metadata": "npm:^2.4.0"
26532653
"@metamask/controller-utils": "npm:^11.15.0"
2654-
"@metamask/core-backend": "npm:^4.0.0"
2654+
"@metamask/core-backend": "npm:^4.1.0"
26552655
"@metamask/eth-query": "npm:^4.0.0"
26562656
"@metamask/ethjs-provider-http": "npm:^0.3.0"
26572657
"@metamask/keyring-api": "npm:^21.0.0"
@@ -2702,7 +2702,7 @@ __metadata:
27022702
"@metamask/account-tree-controller": ^3.0.0
27032703
"@metamask/accounts-controller": ^34.0.0
27042704
"@metamask/approval-controller": ^8.0.0
2705-
"@metamask/core-backend": ^4.0.0
2705+
"@metamask/core-backend": ^4.1.0
27062706
"@metamask/keyring-controller": ^24.0.0
27072707
"@metamask/network-controller": ^25.0.0
27082708
"@metamask/permission-controller": ^12.0.0
@@ -3038,7 +3038,7 @@ __metadata:
30383038
languageName: unknown
30393039
linkType: soft
30403040

3041-
"@metamask/core-backend@npm:^4.0.0, @metamask/core-backend@workspace:packages/core-backend":
3041+
"@metamask/core-backend@npm:^4.1.0, @metamask/core-backend@workspace:packages/core-backend":
30423042
version: 0.0.0-use.local
30433043
resolution: "@metamask/core-backend@workspace:packages/core-backend"
30443044
dependencies:

0 commit comments

Comments
 (0)