Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MetaMask/utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.8.1
Choose a base ref
...
head repository: MetaMask/utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.9.0
Choose a head ref
  • 2 commits
  • 7 files changed
  • 4 contributors

Commits on Dec 17, 2025

  1. feat: Add SHA-256 utility (#273)

    We have a bunch of SHA-256 utilities scattered in different repos, this
    attempts to upstream a stable one that uses the faster native option
    when possible.
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Adds a `sha256` utility that prefers Web Crypto and falls back to
    `@noble/hashes`, with tests and public export.
    > 
    > - **Utilities**
    > - Add `sha256(bytes: Uint8Array)` in `src/hashing.ts` using
    `globalThis.crypto.subtle.digest('SHA-256')` when available, falling
    back to `@noble/hashes/sha256`.
    > - **Tests**
    > - New `src/hashing.test.ts` verifying digests, fallback behavior when
    `crypto.subtle`/`digest` are unavailable, and Node 18 `webcrypto` setup.
    > - **Exports**
    > - Re-export `sha256` from `src/index.ts`; update snapshots in
    `src/index.test.ts` and `src/node.test.ts` to include `"sha256"`.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    8961a54. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    
    Co-authored-by: Maarten Zuidhoorn <[email protected]>
    FrederikBolding and Mrtenz authored Dec 17, 2025
    Configuration menu
    Copy the full SHA
    be13e2b View commit details
    Browse the repository at this point in the history
  2. 11.9.0 (#274)

    This is the release candidate for version 11.9.0.
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Release 11.9.0 adding `sha256` utility, updating changelog links, and
    bumping package version.
    > 
    > - **Release 11.9.0**:
    > - **Changelog**: Add `11.9.0` section noting new `sha256` utility;
    update `[Unreleased]` and add `[11.9.0]` compare links in
    `CHANGELOG.md`.
    >   - **Version**: Bump `package.json` `version` to `11.9.0`.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    5b6c19c. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    
    Co-authored-by: github-actions <[email protected]>
    Co-authored-by: Frederik Bolding <[email protected]>
    3 people authored Dec 17, 2025
    Configuration menu
    Copy the full SHA
    b83ef12 View commit details
    Browse the repository at this point in the history
Loading