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: v8.3.0
Choose a base ref
...
head repository: MetaMask/utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.4.0
Choose a head ref
  • 7 commits
  • 11 files changed
  • 6 contributors

Commits on Feb 20, 2024

  1. Bump ip from 2.0.0 to 2.0.1 (#169)

    Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
    - [Commits](indutny/node-ip@v2.0.0...v2.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: ip
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ec0237c View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Assign unique name to sandbox directory (#171)

    `withinSandbox` is designed for tests that need to act on the
    filesystem. It creates a temporary directory and passes it to the
    function so that it can do whatever it needs to do within the directory
    in a safer fashion.
    
    The name of the sandbox directory is generated from the current time to
    ensure that each one is unique. However, this causes problems when Jest
    is running more than one test file, each of which make use of the
    sandbox. Jest runs test files in parallel, so paired with the naming —
    and the fact that time can be frozen in tests — it is possible for two
    tests to create and use the same sandbox simultaneously. `withinSandbox`
    double-checks that the directory it would have created does not already
    exist, so when the first test creates the directory it will cause the
    second test to fail. Also, since `withinSandbox` removes the sandbox
    directory after it runs its function, this will also cause the second
    test to fail if it's still running and using that directory.
    
    To fix this, this commit changes `withinSandbox` to use a UUID to name
    the sandbox directory instead of the current time.
    mcmire authored Mar 5, 2024
    Configuration menu
    Copy the full SHA
    de4b119 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aff049e View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Update security code scanner file (#172)

    This pull request replaces mixpanel token with more generic naming.
    metamaskbot authored Mar 6, 2024
    Configuration menu
    Copy the full SHA
    588f267 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. docs: Add caution about suppressing errors (#174)

    The TSDoc comment for `createDeferredPromise` has been updated to
    include a caution about using the `suppressUnhandledRejection` option.
    The comment now explains in more detail why this option is useful, and
    why it can be dangerous and should be treated with caution.
    Gudahtt authored Mar 13, 2024
    Configuration menu
    Copy the full SHA
    e58a8d8 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. feat(caip): add .toCaipChainId + KnownCaipNamespace (#175)

    This adds some new helpers regarding CAIP-2 chain IDs.
    
    This is in regard to the on-going work of adding those chain-agnostics
    IDs into our Snap keyring implementations.
    
    Initially those helpers were living on
    https://github.com/MetaMask/eth-snap-keyring repository, but it feels
    more natural to have them here. Moreover, we might use them elsewhere.
    
    ## Related
    
    - MetaMask/eth-snap-keyring#231
    
    ---------
    
    Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
    ccharly and mcmire authored Mar 14, 2024
    Configuration menu
    Copy the full SHA
    d532b07 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. 8.4.0 (#176)

    github-actions[bot] authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    665d0bc View commit details
    Browse the repository at this point in the history
Loading