From d409663d2916138befdfb335ad3bca52aeeafd43 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Tue, 21 Jul 2020 14:26:41 -0700 Subject: [PATCH 1/4] 6.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e48cf145..8802243d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/inpage-provider", - "version": "6.0.1", + "version": "6.1.0", "description": "A JavaScript Ethereum provider that connects over a WebExtension port.", "main": "index.js", "scripts": { From e86c3a0805bcd4b6354a27521f152852390147f4 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Tue, 21 Jul 2020 14:36:01 -0700 Subject: [PATCH 2/4] update changelog --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05a823ce..27e58f19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.1.0] - 2020-07-21 + +### Changed + +- Only emit `data` event for notifications present in `^4.0.0` ([#73](https://github.com/MetaMask/inpage-provider/pull/73)) + - Some consumers make assumptions about the shape of the object emitted with the event that do not hold all notifications in `^6.0.0`. +- Stop preferring `rel="shortcut icon"` when retrieving site metadata ([#76](https://github.com/MetaMask/inpage-provider/pull/76)) + - Instead, we query using `rel~="icon"` and return the first existing image found. + +### Fixed + +- Enable retrieval of icons not hosted on the same origin ([#78](https://github.com/MetaMask/inpage-provider/pull/78)) + - For example, icons hosted on `assets.foo.com` that are used on `foo.com` will now be retrieved successfully. + ## [6.0.1] - 2020-07-15 ### Fixed From a2e7626a97354dc7877adaa9afda331d43705a9f Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Tue, 21 Jul 2020 14:39:37 -0700 Subject: [PATCH 3/4] fixup! update changelog --- CHANGELOG.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27e58f19..28cad74e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,14 +11,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Only emit `data` event for notifications present in `^4.0.0` ([#73](https://github.com/MetaMask/inpage-provider/pull/73)) - - Some consumers make assumptions about the shape of the object emitted with the event that do not hold all notifications in `^6.0.0`. -- Stop preferring `rel="shortcut icon"` when retrieving site metadata ([#76](https://github.com/MetaMask/inpage-provider/pull/76)) - - Instead, we query using `rel~="icon"` and return the first existing image found. +- Only emit `data` event for notifications present in `^4.0.0` +([#73](https://github.com/MetaMask/inpage-provider/pull/73)) + - Some consumers make assumptions about the shape of the object emitted with the event that do not hold for all notifications in `^6.0.0`. +- Select icon using `rel~="icon"` when retrieving site metadata +([#76](https://github.com/MetaMask/inpage-provider/pull/76)) + - This is instead of defaulting to `rel="shortcut icon"`. ### Fixed -- Enable retrieval of icons not hosted on the same origin ([#78](https://github.com/MetaMask/inpage-provider/pull/78)) +- Enable retrieval of site icons _not_ hosted on the same origin +([#78](https://github.com/MetaMask/inpage-provider/pull/78)) - For example, icons hosted on `assets.foo.com` that are used on `foo.com` will now be retrieved successfully. ## [6.0.1] - 2020-07-15 From aed0471b79aa5b248efb10f64b26a7e99ffd5d49 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Tue, 21 Jul 2020 14:44:30 -0700 Subject: [PATCH 4/4] reference #72 in changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28cad74e..f5e784b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Emit `accountsChanged` event _after_ all related state has been updated +([#72](https://github.com/MetaMask/inpage-provider/pull/72)) + - For example, `ethereum.selectedAddress` will now have been updated by the time the event is emitted. - Enable retrieval of site icons _not_ hosted on the same origin ([#78](https://github.com/MetaMask/inpage-provider/pull/78)) - For example, icons hosted on `assets.foo.com` that are used on `foo.com` will now be retrieved successfully.