@@ -1,5 +1,13 @@
|
||||
# CHANGELOG
|
||||
|
||||
## master
|
||||
|
||||
Changes:
|
||||
|
||||
- Upgrade to `@polkadot/api` 10.6.1
|
||||
- Bump to `@polkadot/util` 12.1.2
|
||||
|
||||
|
||||
## 0.46.2 Apr 30, 2023
|
||||
|
||||
- **Important** Not published to the stores, aligns with latest released packages.
|
||||
|
||||
18
package.json
18
package.json
@@ -40,19 +40,19 @@
|
||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.73.6",
|
||||
"@types/node": "^18.16.3",
|
||||
"@polkadot/dev": "^0.73.16",
|
||||
"@types/node": "^20.1.1",
|
||||
"i18next-scanner": "^4.2.0",
|
||||
"sinon-chrome": "^3.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^10.5.1",
|
||||
"@polkadot/keyring": "^12.1.1",
|
||||
"@polkadot/networks": "^12.1.1",
|
||||
"@polkadot/types": "^10.5.1",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/x-fetch": "^12.1.1",
|
||||
"@polkadot/api": "^10.6.1",
|
||||
"@polkadot/keyring": "^12.1.2",
|
||||
"@polkadot/networks": "^12.1.2",
|
||||
"@polkadot/types": "^10.6.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"@polkadot/x-fetch": "^12.1.2",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"typescript": "^5.0.3"
|
||||
}
|
||||
|
||||
@@ -21,20 +21,20 @@
|
||||
"version": "0.46.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "^10.5.1",
|
||||
"@polkadot/api": "^10.6.1",
|
||||
"@polkadot/extension-chains": "0.46.2",
|
||||
"@polkadot/extension-dapp": "0.46.2",
|
||||
"@polkadot/extension-inject": "0.46.2",
|
||||
"@polkadot/keyring": "^12.1.1",
|
||||
"@polkadot/networks": "^12.1.1",
|
||||
"@polkadot/keyring": "^12.1.2",
|
||||
"@polkadot/networks": "^12.1.2",
|
||||
"@polkadot/phishing": "^0.21.2",
|
||||
"@polkadot/rpc-provider": "^10.5.1",
|
||||
"@polkadot/types": "^10.5.1",
|
||||
"@polkadot/ui-keyring": "^3.2.2",
|
||||
"@polkadot/ui-settings": "^3.2.2",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"@polkadot/rpc-provider": "^10.6.1",
|
||||
"@polkadot/types": "^10.6.1",
|
||||
"@polkadot/ui-keyring": "^3.3.1",
|
||||
"@polkadot/ui-settings": "^3.3.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
|
||||
@@ -478,7 +478,7 @@ export default class State {
|
||||
}, {} as ResponseRpcListProviders));
|
||||
}
|
||||
|
||||
public rpcSend (request: RequestRpcSend, port: chrome.runtime.Port): Promise<JsonRpcResponse> {
|
||||
public rpcSend (request: RequestRpcSend, port: chrome.runtime.Port): Promise<JsonRpcResponse<unknown>> {
|
||||
const provider = this.#injectedProviders.get(port);
|
||||
|
||||
assert(provider, 'Cannot call pub(rpc.subscribe) before provider is set');
|
||||
|
||||
@@ -145,7 +145,7 @@ export default class Tabs {
|
||||
return this.#state.rpcListProviders();
|
||||
}
|
||||
|
||||
private rpcSend (request: RequestRpcSend, port: chrome.runtime.Port): Promise<JsonRpcResponse> {
|
||||
private rpcSend (request: RequestRpcSend, port: chrome.runtime.Port): Promise<JsonRpcResponse<unknown>> {
|
||||
return this.#state.rpcSend(request, port);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ export default function handler<TMessageType extends MessageTypes> ({ id, messag
|
||||
: tabs.handle(id, message, request, from, port);
|
||||
|
||||
promise
|
||||
.then((response): void => {
|
||||
.then((response: unknown): void => {
|
||||
console.log(`[out] ${source}`); // :: ${JSON.stringify(response)}`);
|
||||
|
||||
// between the start and the end of the promise, the user may have closed
|
||||
|
||||
@@ -142,9 +142,9 @@ export interface RequestSignatures {
|
||||
'pub(phishing.redirectIfDenied)': [null, boolean];
|
||||
'pub(ping)': [null, boolean];
|
||||
'pub(rpc.listProviders)': [void, ResponseRpcListProviders];
|
||||
'pub(rpc.send)': [RequestRpcSend, JsonRpcResponse];
|
||||
'pub(rpc.send)': [RequestRpcSend, JsonRpcResponse<unknown>];
|
||||
'pub(rpc.startProvider)': [string, ProviderMeta];
|
||||
'pub(rpc.subscribe)': [RequestRpcSubscribe, number, JsonRpcResponse];
|
||||
'pub(rpc.subscribe)': [RequestRpcSubscribe, number, JsonRpcResponse<unknown>];
|
||||
'pub(rpc.subscribeConnected)': [null, boolean, boolean];
|
||||
'pub(rpc.unsubscribe)': [RequestRpcUnsubscribe, boolean];
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/extension-inject": "0.46.2",
|
||||
"@polkadot/networks": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/networks": "^12.1.2",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
"dependencies": {
|
||||
"@metamask/detect-provider": "^1.2.0",
|
||||
"@polkadot/extension-inject": "0.46.2",
|
||||
"@polkadot/types": "^10.5.1",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/types": "^10.6.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"tslib": "^2.5.0",
|
||||
"web3": "^1.9.0"
|
||||
},
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/extension-inject": "0.46.2",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
"version": "0.46.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-provider": "^10.5.1",
|
||||
"@polkadot/types": "^10.5.1",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/x-global": "^12.1.1",
|
||||
"@polkadot/rpc-provider": "^10.6.1",
|
||||
"@polkadot/types": "^10.6.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"@polkadot/x-global": "^12.1.2",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.234",
|
||||
"@types/chrome": "^0.0.235",
|
||||
"@types/firefox-webext-browser": "^111.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -26,17 +26,17 @@
|
||||
"@polkadot/extension-chains": "0.46.2",
|
||||
"@polkadot/extension-dapp": "0.46.2",
|
||||
"@polkadot/extension-inject": "0.46.2",
|
||||
"@polkadot/hw-ledger": "^12.1.1",
|
||||
"@polkadot/keyring": "^12.1.1",
|
||||
"@polkadot/networks": "^12.1.1",
|
||||
"@polkadot/react-identicon": "^3.2.2",
|
||||
"@polkadot/react-qr": "^3.2.2",
|
||||
"@polkadot/types": "^10.5.1",
|
||||
"@polkadot/types-augment": "^10.5.1",
|
||||
"@polkadot/ui-keyring": "^3.2.2",
|
||||
"@polkadot/ui-settings": "^3.2.2",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/hw-ledger": "^12.1.2",
|
||||
"@polkadot/keyring": "^12.1.2",
|
||||
"@polkadot/networks": "^12.1.2",
|
||||
"@polkadot/react-identicon": "^3.3.1",
|
||||
"@polkadot/react-qr": "^3.3.1",
|
||||
"@polkadot/types": "^10.6.1",
|
||||
"@polkadot/types-augment": "^10.6.1",
|
||||
"@polkadot/ui-keyring": "^3.3.1",
|
||||
"@polkadot/ui-settings": "^3.3.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"file-saver": "^2.0.5",
|
||||
"i18next": "^22.4.15",
|
||||
"react": "^18.2.0",
|
||||
@@ -55,7 +55,7 @@
|
||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||
"@types/react-dom": "^18.2.1",
|
||||
"@types/react-dom": "^18.2.4",
|
||||
"@types/react-router": "^5.1.20",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/sinon-chrome": "^2.2.11",
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.73.6",
|
||||
"@polkadot/dev": "^0.73.16",
|
||||
"browser-resolve": "^2.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
|
||||
Reference in New Issue
Block a user