Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 191.0.0 #4639

Merged
merged 3 commits into from
Aug 26, 2024
Merged

Release 191.0.0 #4639

merged 3 commits into from
Aug 26, 2024

Conversation

ritave
Copy link
Member

@ritave ritave commented Aug 26, 2024

Explanation

This release adds a new constant to controller-utils ApprovalType object.

References

This is required for #4598 and MetaMask/metamask-extension#26304 (comment)

Changelog

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 highlighted breaking changes using the "BREAKING" category above as appropriate

@ritave ritave requested review from a team as code owners August 26, 2024 12:25
@Mrtenz Mrtenz changed the title Initialize Release 191.0.0 Release 191.0.0 Aug 26, 2024
@ritave ritave merged commit 4918816 into main Aug 26, 2024
116 checks passed
@ritave ritave deleted the release/191.0.0 branch August 26, 2024 13:28
@AugmentedMode AugmentedMode mentioned this pull request Aug 28, 2024
3 tasks
AugmentedMode added a commit that referenced this pull request Aug 28, 2024
## Explanation

### Dependency Updates:
- **BREAKING**: Added `@noble/hashes` dependency version `^1.4.0`.
- **BREAKING**: Added `ethereum-cryptography` dependency version
`^2.1.2`.

These dependencies were added to support hashing C2 requests for
comparison against a C2 blocklist, enhancing the security and
cryptographic capabilities within the package.

## Changelog

### `@metamask/phishing-controller`

#### Breaking
- **BREAKING**: Added `@noble/hashes` dependency version `^1.4.0`.
- **BREAKING**: Added `ethereum-cryptography` dependency version
`^2.1.2`.
- **BREAKING**: `PhishingControllerMessenger` must allow internal events
defined in the `PhishingControllerEvents` type
([#4633](#4633)).

#### Added
- **ADDED**: Added the ability to block Client Side C2 Requests by
managing a hashed C2 Request Blocklist.

- **ADDED**: Defined and exported new types:
`PhishingControllerGetStateAction`,
`PhishingControllerStateChangeEvent`, `PhishingControllerEvents`
([#4633](#4633)).
- Added `requestBlocklist` type to `ListTypes`.
- **ADDED**: `isBlockedRequest` method to `PhishingController`.
- **ADDED**: Logic to update and check `requestBlocklist` in
`#updateStalelist`.
- **ADDED**: `isMaliciousRequestDomain` method to `PhishingDetector`.
- **ADDED**: Handling of `requestBlocklist` in `PhishingDetector`
configuration.
- **ADDED**: `sha256` and `toHex` imports from `ethereum-cryptography`.
- **ADDED**: `sha256Hash` function to generate SHA-256 hash of a domain.
- **ADDED**: Allowlist functionality to the C2 domain detection system.

#### Changed
- `PhishingControllerActions` is widened to include the
`PhishingController:getState` action
([#4633](#4633)).
- Bumped `@metamask/base-controller` from `^6.0.2` to `^6.0.3`
([#4625](#4625)).
- Bumped `@metamask/controller-utils` from `^11.0.2` to `^11.1.0`
([#4639](#4639)).

## 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 highlighted breaking changes using the "BREAKING" category
above as appropriate.

---------

Co-authored-by: Jongsun Suh <jongsun.suh@icloud.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