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/rpc-errors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7471a50
Choose a base ref
...
head repository: MetaMask/rpc-errors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1d1852d
Choose a head ref
  • 6 commits
  • 21 files changed
  • 5 contributors

Commits on Apr 17, 2023

  1. Allow passing a cause to predefined error functions (#83)

    * Allow passing a cause to predefined error functions
    
    This allows passing an `Error` class object to one of the predefined error functions as defined in `rpcErrors` and `providerErrors`. Upon calling the `serialise` function of the `JsonRpcError` class, the cause error will be serialised using the `serializeCause` function.
    
    * Add tests to ensure error.serialize().data is not an instance of Error
    
    The expect function ensures that the type of error.serialize().data is an object and contains specific serialized data while ensuring it does not contain an error instance. This test is necessary to avoid unexpected errors during exception handling.
    
    * Apply suggestions from code review
    
    Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
    
    * Export `serializeCause` and `DataWithOptionalCause`
    
    * Fix type errors
    
    * Update coverage tresholds
    
    ---------
    
    Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
    Mrtenz and FrederikBolding authored Apr 17, 2023
    Configuration menu
    Copy the full SHA
    e6a9162 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. Standardise workflows per the module template as of April 2023 (#82)

    * Standardise workflows per the module template as of April 2023
    
    * Enable Dependabot to update '@metamask/*' npm packages daily
    
    This commit adds a Dependabot configuration file to the repository to enable daily checks for new versions of '@metamask/*' npm packages, updating them if needed, and opening a maximum of 10 pull requests with these updates. The configuration file uses the 'increase-if-necessary' versioning strategy to ensure that only necessary version bumps are considered for update.
    
    * Update build matrix in GitHub Actions
    
    Remove Node.js 14.x from the build matrix since it's no longer supported. The build matrix now includes only Node.js 16.x, 18.x, and 19.x.
    Mrtenz authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    90024f9 View commit details
    Browse the repository at this point in the history
  2. Bump @metamask/eslint-config-jest from 10.0.0 to 11.1.0 (#88)

    Bumps [@metamask/eslint-config-jest](https://github.com/MetaMask/eslint-config) from 10.0.0 to 11.1.0.
    - [Release notes](https://github.com/MetaMask/eslint-config/releases)
    - [Commits](MetaMask/eslint-config@v10.0.0...v11.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@metamask/eslint-config-jest"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    23c4857 View commit details
    Browse the repository at this point in the history
  3. Bump ESLint configs and dependencies to latest version (#89)

    * Bump ESLint configs and dependencies to latest versions
    
    * Update code coverage percentage values
    
    The previous values of code coverage were updated to new and more accurate values.
    Mrtenz authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    a324a7a View commit details
    Browse the repository at this point in the history
  4. Bump @metamask/utils from 5.0.0 to 5.0.1 (#85)

    Bumps [@metamask/utils](https://github.com/MetaMask/utils) from 5.0.0 to 5.0.1.
    - [Release notes](https://github.com/MetaMask/utils/releases)
    - [Changelog](https://github.com/MetaMask/utils/blob/main/CHANGELOG.md)
    - [Commits](MetaMask/utils@v5.0.0...v5.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: "@metamask/utils"
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    a388854 View commit details
    Browse the repository at this point in the history
  5. 5.1.0 (#90)

    * 5.1.0
    
    * Update CHANGELOG.md
    
    ---------
    
    Co-authored-by: github-actions <github-actions@github.com>
    Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
    3 people authored Apr 18, 2023
    Configuration menu
    Copy the full SHA
    1d1852d View commit details
    Browse the repository at this point in the history
Loading