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: a56fcdf
Choose a head ref
  • 16 commits
  • 21 files changed
  • 7 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

Commits on Apr 19, 2023

  1. Allow passing unknown values as cause (#91)

    * Allow passing unknown values as cause
    
    Previously, only the `Error` type as accepted as cause, but since any value can be thrown as error, we have to allow any value to be used.
    
    * Update coverage threshold
    
    ---------
    
    Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
    Mrtenz and legobeat authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    e06f8d8 View commit details
    Browse the repository at this point in the history
  2. 5.1.1 (#92)

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

Commits on Apr 26, 2023

  1. Configuration menu
    Copy the full SHA
    95a4a87 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    09e66ad View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Configuration menu
    Copy the full SHA
    8b3f5bc View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Synchronise package with module template (July 2023) (#98)

    * Synchronise package with module template (July 2023)
    
    * Update pull request template
    
    * Update coverage
    Mrtenz authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    ab0ebca View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. Revert "Synchronise package with module template (July 2023) (#98)" (#…

    …103)
    
    This reverts commit ab0ebca.
    
    As #98 removes the ability to import or require from paths like
     `@metamask/rpc-errors/dist/foo` and a release is still pending for the
     current major, this will have to be temporarily reverted.
    legobeat authored Aug 23, 2023
    Configuration menu
    Copy the full SHA
    b91c7e8 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. types: Make Data type-parameter optional in JsonRpcError (#102)

    * types: Make Data type-parameter optional in JsonRpcError
    
    This is in order to provide backwards-compatibility with code
    implemented towards v5.0.0.
    
    * fix/types: make cause actually optional in DataWithOptionalCause
    legobeat authored Aug 28, 2023
    Configuration menu
    Copy the full SHA
    2b0bcbd View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. deps: @metamask/utils@^5.0.0->^8.0.0 (#101)

    * deps: @metamask/utils@^5.0.0->^8.0.0
    legobeat authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    fe77220 View commit details
    Browse the repository at this point in the history
  2. 6.0.0 (#106)

    
    ---------
    
    Co-authored-by: github-actions <github-actions@github.com>
    Co-authored-by: legobt <6wbvkn0j@anonaddy.me>
    3 people authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    a56fcdf View commit details
    Browse the repository at this point in the history
Loading