Skip to content

Release/258.0.0#4979

Merged
adonesky1 merged 7 commits intomainfrom
release/258.0.0
Nov 26, 2024
Merged

Release/258.0.0#4979
adonesky1 merged 7 commits intomainfrom
release/258.0.0

Conversation

@adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Nov 25, 2024

Changelog

@metamask/queued-request-controller

7.1.0

Removed

  • createQueuedRequestMiddleware no longer takes a useRequestQueue parameter. All requests are now queued if shouldEnqueueRequest(req) returns true. (#4941)

`@metamask/selected-network-controller

19.1.0

Removed

  • The SelectedNetworkController constructor no longer expects a useRequestPreference boolean nor an onPreferencesStateChange listener. Removal of these parameters means that domains state will always be added for sites that are granted permissions. (#4941)

@adonesky1 adonesky1 marked this pull request as ready for review November 25, 2024 22:36
@adonesky1 adonesky1 requested review from a team as code owners November 25, 2024 22:36
@adonesky1 adonesky1 requested a review from a team November 25, 2024 22:36
@socket-security
Copy link

socket-security bot commented Nov 25, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/@metamask/selected-network-controller@19.0.0

View full report↗︎


### Removed

- `createQueuedRequestMiddleware` no longer takes a `useRequestQueue` parameter. All requests are now queued if `shouldEnqueueRequest(req)` returns true. ([#4941](https://github.com/MetaMask/core/pull/4941))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this option will cause a type error if a client is still attempting to pass it, so should we mark it as a breaking change and release it under 8.0.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes I suppose thats true. I'm used to doing this in JS in extension so never get these errors 😅


### Removed

- The `SelectedNetworkController` constructor no longer expects a `useRequestPreference` boolean nor an `onPreferencesStateChange` listener. Removal of these parameters means that `domains` state will always be added for sites that are granted permissions. ([#4941](https://github.com/MetaMask/core/pull/4941))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar as above, removing these options will cause type errors if they're still attempting to be passed. Should we release this under 20.0.0?

matthewwalsh0
matthewwalsh0 previously approved these changes Nov 26, 2024
matthewwalsh0
matthewwalsh0 previously approved these changes Nov 26, 2024
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Two suggested additions, then I can approve this

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@adonesky1 adonesky1 merged commit c68bd9b into main Nov 26, 2024
@adonesky1 adonesky1 deleted the release/258.0.0 branch November 26, 2024 15:34
matthewwalsh0 pushed a commit that referenced this pull request Nov 26, 2024
## Changelog

### `@metamask/queued-request-controller`

## 7.1.0

### Removed

- `createQueuedRequestMiddleware` no longer takes a `useRequestQueue`
parameter. All requests are now queued if `shouldEnqueueRequest(req)`
returns true. ([#4941](#4941))


### `@metamask/selected-network-controller

## 19.1.0

### Removed

- The `SelectedNetworkController` constructor no longer expects a
`useRequestPreference` boolean nor an `onPreferencesStateChange`
listener. Removal of these parameters means that `domains` state will
always be added for sites that are granted permissions.
([#4941](#4941))

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants