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

Commits on Jan 24, 2023

  1. BREAKING: Handle toJSON in JSON validation and sizing (#52)

    * Handle 'toJSON' in JSON validation and sizing
    
    * Return parsed JSON value from validation function
    
    * Rename return type
    
    * Fix lint errors
    
    * Add helper functions
    
    * Slightly simplify code
    Mrtenz authored Jan 24, 2023
    Configuration menu
    Copy the full SHA
    01763df View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Bump http-cache-semantics from 4.1.0 to 4.1.1 (#76)

    Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
    - [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
    - [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)
    
    ---
    updated-dependencies:
    - dependency-name: http-cache-semantics
      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 7, 2023
    Configuration menu
    Copy the full SHA
    6dc24e4 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Bump json5 from 1.0.1 to 1.0.2 (#77)

    Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
    - [Release notes](https://github.com/json5/json5/releases)
    - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
    - [Commits](json5/json5@v1.0.1...v1.0.2)
    
    ---
    updated-dependencies:
    - dependency-name: json5
      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 8, 2023
    Configuration menu
    Copy the full SHA
    df48cc2 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. Add tests for misc types and type guards (#78)

    Type tests have been added for some types and type guards in `misc.ts`.
    Gudahtt authored Feb 10, 2023
    Configuration menu
    Copy the full SHA
    7f9e857 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Improve the hasProperty function (#79)

    The `hasProperty` function now tells TypeScript that the property
    exists, making it more effective as a type guard.
    Gudahtt authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    8d13a40 View commit details
    Browse the repository at this point in the history
  2. Improve compatibility of hasProperty (#80)

    * Improve compatibility of `hasProperty`
    
    The `hasProperty` function is now compatible with a wider variety of
    objects. The `Record<PropertyKey, unknown>` constraint used previously
    was exluding `Error`s, and any object-like things expressed as a custom
    class or interface. Now all of those are accepted.
    
    * Ignore `tsd` tests when building
    
    These test modules are not meant to be compiled directly with
    TypeScript. They sometimes include errors by-design that would blow up
    if building with TypeScript.
    
    * Re-enable TypeScript in `test-d.ts` files to enable linting
    
    The type error assertion was replaced with an alternative that does not
    introduce a compile-time error.
    Gudahtt authored Feb 14, 2023
    Configuration menu
    Copy the full SHA
    5b6e31b View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

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

Commits on Feb 16, 2023

  1. 3.5.0 (#83)

    * 3.5.0
    
    * Update changelog
    
    ---------
    
    Co-authored-by: github-actions <github-actions@github.com>
    Co-authored-by: Mark Stacey <markjstacey@gmail.com>
    3 people authored Feb 16, 2023
    Configuration menu
    Copy the full SHA
    b5d1a6f View commit details
    Browse the repository at this point in the history
Loading