Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range 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: polkadot-js/extension
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1802beb491a3fbb905aa1ce778e5ec66f30150c9
Choose a base ref
..
head repository: polkadot-js/extension
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5f338fdd1c9cef52babd26856722371d526565e1
Choose a head ref
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
# CHANGELOG

## 0.56.1 Oct 30, 2024

Changes:

- Bump all polkadot deps ([#1473](https://github.com/polkadot-js/extension/pull/1473))
- polkadot/api -> 14.2.1
- polkadot/common -> 13.2.2
- Gives support for Frequency, and Polimec
- polkadot/ui -> 3.11.2
- polkadot/phishing -> 0.24.2


## 0.55.1 Oct 24, 2024

Changes:

- Bump dev to 0.81.2 ([#1469](https://github.com/polkadot-js/extension/pull/1469))
- Export CJS and ESM correctly
- Bump all polkadot deps ([#1470](https://github.com/polkadot-js/extension/pull/1470))
- polkadot/api -> 14.1.1
- polkadot/common -> 13.2.1
- polkadot/ui -> 3.11.1
- polkadot/phishing -> 0.24.1
- Bump yarn to 4.5.1 ([#1471](https://github.com/polkadot-js/extension/pull/1471))


## 0.54.1 Oct 14, 2024

Changes:

- Update polkadot-js deps ([#1466](https://github.com/polkadot-js/extension/pull/1466))
- Polkadot-js api -> 14.0.1
- NOTE: This adds support for Extrinsic V5.
- Polkadot-js phishing -> 0.23.7
- Bump yarn to 4.5.0 ([#1467](https://github.com/polkadot-js/extension/pull/1467))


## 0.53.1 Sep 24, 2024

Contributed:

- Ability to Reject an authentication request instead of ignoring it ([#1453](https://github.com/polkadot-js/extension/pull/1453)) (Thanks to https://github.com/Tbaut)

Changes:

- Upgrade polkadot-js deps ([#1462](https://github.com/polkadot-js/extension/pull/1462))
- This contains breaking changes in the API that was released in [13.0.1](https://github.com/polkadot-js/api/releases/tag/v13.0.1). The release changed the way AssetId is returned from `toPayload` in the Signer interface. `Option<TAssetConversion>` is now returned as a SCALE encoded hex.


## 0.52.3 Aug 19, 2024

Changes:
4 changes: 2 additions & 2 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
634 Jaco 2024 (#1302)
92 Thibaut Sardan Fix: forget account for legacy account without authorizedAccounts (#1381)
56 Tarik Gul 0.52.3 (#1452)
93 Thibaut Sardan Ability to Reject an authentication request instead of ignoring it (#1453)
67 Tarik Gul 0.56.1 (#1474)
7 Ivan Rukhavets Mention derivation in FAQ (#334)
5 Alberto Nicolas Penayo fix(bug): extension stuck in `... loading ...` screen after `service_worker` got terminated (#1424)
5 Francis O'Brien Fix SignArea and ToastProvider timeout (#1444)
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -6,18 +6,18 @@
},
"homepage": "https://github.com/polkadot-js/extension#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.4.0",
"packageManager": "yarn@4.5.1",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/polkadot-js/extension.git"
},
"sideEffects": false,
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"versions": {
"git": "0.52.3",
"npm": "0.52.3"
"git": "0.56.1",
"npm": "0.56.1"
},
"workspaces": [
"packages/*"
@@ -45,19 +45,19 @@
"test:one": "EXTENSION_PREFIX='test' polkadot-dev-run-test --env browser"
},
"devDependencies": {
"@polkadot/dev": "^0.79.3",
"@polkadot/dev": "^0.81.2",
"@types/node": "^20.10.5",
"i18next-scanner": "^4.4.0",
"sinon-chrome": "^3.0.1"
},
"resolutions": {
"@polkadot/api": "^12.4.1",
"@polkadot/keyring": "^13.0.2",
"@polkadot/networks": "^13.0.2",
"@polkadot/types": "^12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/x-fetch": "^13.0.2",
"@polkadot/api": "^14.2.1",
"@polkadot/keyring": "^13.2.2",
"@polkadot/networks": "^13.2.2",
"@polkadot/types": "^14.2.1",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"@polkadot/x-fetch": "^13.2.2",
"safe-buffer": "^5.2.1",
"smoldot": "2.0.30",
"typescript": "^5.3.3"
32 changes: 16 additions & 16 deletions packages/extension-base/package.json
Original file line number Diff line number Diff line change
@@ -18,28 +18,28 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "^12.4.1",
"@polkadot/extension-chains": "0.52.3",
"@polkadot/extension-dapp": "0.52.3",
"@polkadot/extension-inject": "0.52.3",
"@polkadot/keyring": "^13.0.2",
"@polkadot/networks": "^13.0.2",
"@polkadot/phishing": "^0.23.4",
"@polkadot/rpc-provider": "^12.4.1",
"@polkadot/types": "^12.4.1",
"@polkadot/ui-keyring": "^3.9.1",
"@polkadot/ui-settings": "^3.9.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/api": "^14.2.1",
"@polkadot/extension-chains": "0.56.1",
"@polkadot/extension-dapp": "0.56.1",
"@polkadot/extension-inject": "0.56.1",
"@polkadot/keyring": "^13.2.2",
"@polkadot/networks": "^13.2.2",
"@polkadot/phishing": "^0.24.2",
"@polkadot/rpc-provider": "^14.2.1",
"@polkadot/types": "^14.2.1",
"@polkadot/ui-keyring": "^3.11.2",
"@polkadot/ui-settings": "^3.11.2",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/dev-test": "^0.79.3",
"@polkadot/extension-mocks": "0.52.3"
"@polkadot/dev-test": "^0.81.2",
"@polkadot/extension-mocks": "0.56.1"
}
}
14 changes: 10 additions & 4 deletions packages/extension-base/src/background/handlers/Extension.ts
Original file line number Diff line number Diff line change
@@ -524,8 +524,14 @@ export default class Extension {
return { list: remAuth };
}

private deleteAuthRequest (requestId: string): void {
return this.#state.deleteAuthRequest(requestId);
private rejectAuthRequest (id: string): void {
const queued = this.#state.getAuthRequest(id);

assert(queued, 'Unable to find request');

const { reject } = queued;

reject(new Error('Rejected'));
}

private updateCurrentTabs ({ urls }: RequestActiveTabsUrlUpdate) {
@@ -549,8 +555,8 @@ export default class Extension {
case 'pri(authorize.remove)':
return this.removeAuthorization(request as string);

case 'pri(authorize.delete.request)':
return this.deleteAuthRequest(request as string);
case 'pri(authorize.reject)':
return this.rejectAuthRequest(request as string);

case 'pri(authorize.requests)':
return port && this.authorizeSubscribe(id, port);
2 changes: 1 addition & 1 deletion packages/extension-base/src/background/types.ts
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ export interface RequestSignatures {
'pri(authorize.list)': [null, ResponseAuthorizeList];
'pri(authorize.requests)': [RequestAuthorizeSubscribe, boolean, AuthorizeRequest[]];
'pri(authorize.remove)': [string, ResponseAuthorizeList];
'pri(authorize.delete.request)': [string, void];
'pri(authorize.reject)': [string, void];
'pri(authorize.update)': [RequestUpdateAuthorizedAccounts, void];
'pri(activeTabsUrl.update)': [RequestActiveTabsUrlUpdate, void];
'pri(connectedTabsUrl.get)': [null, ConnectedTabsUrlResponse];
2 changes: 1 addition & 1 deletion packages/extension-base/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-base', path: 'auto', type: 'auto', version: '0.52.3' };
export const packageInfo = { name: '@polkadot/extension-base', path: 'auto', type: 'auto', version: '0.56.1' };
10 changes: 5 additions & 5 deletions packages/extension-chains/package.json
Original file line number Diff line number Diff line change
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"main": "index.js",
"dependencies": {
"@polkadot/extension-inject": "0.52.3",
"@polkadot/networks": "^13.0.2",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/extension-inject": "0.56.1",
"@polkadot/networks": "^13.2.2",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"tslib": "^2.6.2"
},
"peerDependencies": {
2 changes: 1 addition & 1 deletion packages/extension-chains/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-chains', path: 'auto', type: 'auto', version: '0.52.3' };
export const packageInfo = { name: '@polkadot/extension-chains', path: 'auto', type: 'auto', version: '0.56.1' };
8 changes: 4 additions & 4 deletions packages/extension-compat-metamask/package.json
Original file line number Diff line number Diff line change
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"main": "index.js",
"dependencies": {
"@metamask/detect-provider": "^2.0.0",
"@polkadot/extension-inject": "0.52.3",
"@polkadot/types": "^12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/extension-inject": "0.56.1",
"@polkadot/types": "^14.2.1",
"@polkadot/util": "^13.2.2",
"tslib": "^2.6.2",
"web3": "^4.7.0"
},
2 changes: 1 addition & 1 deletion packages/extension-compat-metamask/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-compat-metamask', path: 'auto', type: 'auto', version: '0.52.3' };
export const packageInfo = { name: '@polkadot/extension-compat-metamask', path: 'auto', type: 'auto', version: '0.56.1' };
10 changes: 5 additions & 5 deletions packages/extension-dapp/package.json
Original file line number Diff line number Diff line change
@@ -18,16 +18,16 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"main": "index.js",
"dependencies": {
"@polkadot/extension-inject": "0.52.3",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/extension-inject": "0.56.1",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/dev-test": "^0.79.3"
"@polkadot/dev-test": "^0.81.2"
},
"peerDependencies": {
"@polkadot/api": "*",
2 changes: 1 addition & 1 deletion packages/extension-dapp/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-dapp', path: 'auto', type: 'auto', version: '0.52.3' };
export const packageInfo = { name: '@polkadot/extension-dapp', path: 'auto', type: 'auto', version: '0.56.1' };
16 changes: 8 additions & 8 deletions packages/extension-inject/package.json
Original file line number Diff line number Diff line change
@@ -15,19 +15,19 @@
},
"sideEffects": true,
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "^12.4.1",
"@polkadot/rpc-provider": "^12.4.1",
"@polkadot/types": "^12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/x-global": "^13.0.2",
"@polkadot/api": "^14.2.1",
"@polkadot/rpc-provider": "^14.2.1",
"@polkadot/types": "^14.2.1",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"@polkadot/x-global": "^13.2.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/dev-test": "^0.79.3",
"@polkadot/dev-test": "^0.81.2",
"@types/chrome": "^0.0.254",
"@types/firefox-webext-browser": "^111.0.5"
},
2 changes: 1 addition & 1 deletion packages/extension-inject/src/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/extension-inject', path: 'auto', type: 'auto', version: '0.52.3' };
export const packageInfo = { name: '@polkadot/extension-inject', path: 'auto', type: 'auto', version: '0.56.1' };
2 changes: 1 addition & 1 deletion packages/extension-mocks/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"main": "index.js",
"dependencies": {
"sinon-chrome": "^3.0.1",
40 changes: 20 additions & 20 deletions packages/extension-ui/package.json
Original file line number Diff line number Diff line change
@@ -15,31 +15,31 @@
},
"sideEffects": true,
"type": "module",
"version": "0.52.3",
"version": "0.56.1",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@paraspell/xcm-analyser": "^1.3.1",
"@polkadot-api/merkleize-metadata": "^1.1.2",
"@polkadot/api": "^12.4.1",
"@polkadot/extension-base": "0.52.3",
"@polkadot/extension-chains": "0.52.3",
"@polkadot/extension-dapp": "0.52.3",
"@polkadot/extension-inject": "0.52.3",
"@polkadot/hw-ledger": "^13.0.2",
"@polkadot/keyring": "^13.0.2",
"@polkadot/networks": "^13.0.2",
"@polkadot/react-identicon": "^3.9.1",
"@polkadot/react-qr": "^3.9.1",
"@polkadot/types": "^12.4.1",
"@polkadot/types-augment": "^12.4.1",
"@polkadot/ui-keyring": "^3.9.1",
"@polkadot/ui-settings": "^3.9.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot-api/merkleize-metadata": "^1.1.9",
"@polkadot/api": "^14.2.1",
"@polkadot/extension-base": "0.56.1",
"@polkadot/extension-chains": "0.56.1",
"@polkadot/extension-dapp": "0.56.1",
"@polkadot/extension-inject": "0.56.1",
"@polkadot/hw-ledger": "^13.2.2",
"@polkadot/keyring": "^13.2.2",
"@polkadot/networks": "^13.2.2",
"@polkadot/react-identicon": "^3.11.2",
"@polkadot/react-qr": "^3.11.2",
"@polkadot/types": "^14.2.1",
"@polkadot/types-augment": "^14.2.1",
"@polkadot/ui-keyring": "^3.11.2",
"@polkadot/ui-settings": "^3.11.2",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"file-saver": "^2.0.5",
"i18next": "^23.7.11",
"react": "^18.2.0",
@@ -53,8 +53,8 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/dev-test": "^0.79.3",
"@polkadot/extension-mocks": "0.52.3",
"@polkadot/dev-test": "^0.81.2",
"@polkadot/extension-mocks": "0.56.1",
"@types/enzyme": "^3.10.18",
"@types/enzyme-adapter-react-16": "^1.0.9",
"@types/file-saver": "^2.0.7",
Loading