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

Commits on Jul 30, 2021

  1. Update Changelog (#548)

    * update changelog
    
    * add improve token list
    rickycodes committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    7ad58ec View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. Bump @metamask/auto-changelog from 2.4.0 to 2.5.0 (#549)

    Bumps [@metamask/auto-changelog](https://github.com/MetaMask/auto-changelog) from 2.4.0 to 2.5.0.
    - [Release notes](https://github.com/MetaMask/auto-changelog/releases)
    - [Changelog](https://github.com/MetaMask/auto-changelog/blob/main/CHANGELOG.md)
    - [Commits](MetaMask/auto-changelog@v2.4.0...v2.5.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@metamask/auto-changelog"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    9df7688 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Bump tar from 6.1.0 to 6.1.4 (#552)

    Bumps [tar](https://github.com/npm/node-tar) from 6.1.0 to 6.1.4.
    - [Release notes](https://github.com/npm/node-tar/releases)
    - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
    - [Commits](isaacs/node-tar@v6.1.0...v6.1.4)
    
    ---
    updated-dependencies:
    - dependency-name: tar
      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] committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    d2d91b6 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2021

  1. Feature: Add selector subscriptions (#551)

    This non-breaking PR adds [`reselect`](https://npmjs.com/package/reselect)-style selectors as an optional parameter to controller messenger event subscriptions. We call subscriptions with selectors **selector subscriptions**. This enables subscribing to subsets of large event payloads, for example `*:stateChange` events.
    
    ```typescript
    // ControllerMessenger.subscribe selector signature
    subscribe<E extends Event['type'], V>(
      eventType: E,
      handler: (nextValue: V, previousValue: V | undefined) => void,
      selector: (payload: ExtractEventPayload<Event, E>) => V,
    ): void;
    ```
    
    When a selector subscription is triggered, the corresponding selector is passed the entire event payload, and returns a single value. If the value has changed since the last occurrence of the event, the handler is called with the new value and the previous value, or `undefined` if no previous value exists. Since controller state is immutable, the event handler can efficiently diff the selector return values and trigger other logic dependent on changes to subsets of complex event payloads (e.g., other events).
    
    This feature is motivated by our frequent need to subscribe to controller substate(s). Every controller has a generic `*:stateChange` event, but parsing that state is often error-prone and/or annoying. By adding selector subscriptions, we can performantly parse complex controller state in one place, and emit more specific events as necessary. This implementation was chosen due to our existing widespread use of selectors in our UIs, and in order to avoid the introduction of querying DSLs such as JSONPath and GraphQL at this time.
    
    In addition to adding selector subscriptions, this PR modifies an error messages and does some minor, non-breaking type touchup.
    
    Closes #528
    rekmarks committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    a143120 View commit details
    Browse the repository at this point in the history
  2. 14.1.0 (#553)

    * 14.1.0
    
    * Update CHANGELOG.md
    
    Co-authored-by: github-actions <github-actions@github.com>
    Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
    3 people committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    19f7bf3 View commit details
    Browse the repository at this point in the history
Loading