Skip to content

Commit f4f2eff

Browse files
authored
Upgrade polkadot-js deps (#1396)
* Upgrade polkadot-js deps * Upgrade phishing * Ignore deprecation on Ledger class set by common repo
1 parent ace0125 commit f4f2eff

File tree

10 files changed

+435
-507
lines changed

10 files changed

+435
-507
lines changed

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
"sinon-chrome": "^3.0.1"
5151
},
5252
"resolutions": {
53-
"@polkadot/api": "^12.0.2",
54-
"@polkadot/keyring": "^12.6.2",
55-
"@polkadot/networks": "^12.6.2",
56-
"@polkadot/types": "^12.0.2",
57-
"@polkadot/util": "^12.6.2",
58-
"@polkadot/util-crypto": "^12.6.2",
59-
"@polkadot/x-fetch": "^12.6.2",
53+
"@polkadot/api": "^12.2.1",
54+
"@polkadot/keyring": "^13.0.2",
55+
"@polkadot/networks": "^13.0.2",
56+
"@polkadot/types": "^12.2.1",
57+
"@polkadot/util": "^13.0.2",
58+
"@polkadot/util-crypto": "^13.0.2",
59+
"@polkadot/x-fetch": "^13.0.2",
6060
"safe-buffer": "^5.2.1",
6161
"typescript": "^5.3.3"
6262
}

packages/extension-base/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
"version": "0.48.3-3-x",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api": "^12.0.2",
24+
"@polkadot/api": "^12.2.1",
2525
"@polkadot/extension-chains": "0.48.3-3-x",
2626
"@polkadot/extension-dapp": "0.48.3-3-x",
2727
"@polkadot/extension-inject": "0.48.3-3-x",
28-
"@polkadot/keyring": "^12.6.2",
29-
"@polkadot/networks": "^12.6.2",
30-
"@polkadot/phishing": "^0.22.10",
31-
"@polkadot/rpc-provider": "^12.0.2",
32-
"@polkadot/types": "^12.0.2",
33-
"@polkadot/ui-keyring": "^3.6.6",
34-
"@polkadot/ui-settings": "^3.6.6",
35-
"@polkadot/util": "^12.6.2",
36-
"@polkadot/util-crypto": "^12.6.2",
28+
"@polkadot/keyring": "^13.0.2",
29+
"@polkadot/networks": "^13.0.2",
30+
"@polkadot/phishing": "^0.23.1",
31+
"@polkadot/rpc-provider": "^12.2.1",
32+
"@polkadot/types": "^12.2.1",
33+
"@polkadot/ui-keyring": "^3.7.1",
34+
"@polkadot/ui-settings": "^3.7.1",
35+
"@polkadot/util": "^13.0.2",
36+
"@polkadot/util-crypto": "^13.0.2",
3737
"eventemitter3": "^5.0.1",
3838
"rxjs": "^7.8.1",
3939
"tslib": "^2.6.2"

packages/extension-chains/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"main": "index.js",
2323
"dependencies": {
2424
"@polkadot/extension-inject": "0.48.3-3-x",
25-
"@polkadot/networks": "^12.6.2",
26-
"@polkadot/util": "^12.6.2",
27-
"@polkadot/util-crypto": "^12.6.2",
25+
"@polkadot/networks": "^13.0.2",
26+
"@polkadot/util": "^13.0.2",
27+
"@polkadot/util-crypto": "^13.0.2",
2828
"tslib": "^2.6.2"
2929
},
3030
"peerDependencies": {

packages/extension-compat-metamask/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"dependencies": {
2424
"@metamask/detect-provider": "^2.0.0",
2525
"@polkadot/extension-inject": "0.48.3-3-x",
26-
"@polkadot/types": "^12.0.2",
27-
"@polkadot/util": "^12.6.2",
26+
"@polkadot/types": "^12.2.1",
27+
"@polkadot/util": "^13.0.2",
2828
"tslib": "^2.6.2",
2929
"web3": "^4.7.0"
3030
},

packages/extension-dapp/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"main": "index.js",
2323
"dependencies": {
2424
"@polkadot/extension-inject": "0.48.3-3-x",
25-
"@polkadot/util": "^12.6.2",
26-
"@polkadot/util-crypto": "^12.6.2",
25+
"@polkadot/util": "^13.0.2",
26+
"@polkadot/util-crypto": "^13.0.2",
2727
"tslib": "^2.6.2"
2828
},
2929
"devDependencies": {

packages/extension-inject/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"version": "0.48.3-3-x",
1919
"main": "index.js",
2020
"dependencies": {
21-
"@polkadot/api": "^12.0.2",
22-
"@polkadot/rpc-provider": "^12.0.2",
23-
"@polkadot/types": "^12.0.2",
24-
"@polkadot/util": "^12.6.2",
25-
"@polkadot/util-crypto": "^12.6.2",
26-
"@polkadot/x-global": "^12.6.2",
21+
"@polkadot/api": "^12.2.1",
22+
"@polkadot/rpc-provider": "^12.2.1",
23+
"@polkadot/types": "^12.2.1",
24+
"@polkadot/util": "^13.0.2",
25+
"@polkadot/util-crypto": "^13.0.2",
26+
"@polkadot/x-global": "^13.0.2",
2727
"tslib": "^2.6.2"
2828
},
2929
"devDependencies": {

packages/extension-ui/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
"@fortawesome/free-solid-svg-icons": "^6.5.1",
2424
"@fortawesome/react-fontawesome": "^0.2.0",
2525
"@paraspell/xcm-analyser": "^1.3.0",
26-
"@polkadot/api": "^12.0.2",
26+
"@polkadot/api": "^12.2.1",
2727
"@polkadot/extension-base": "0.48.3-3-x",
2828
"@polkadot/extension-chains": "0.48.3-3-x",
2929
"@polkadot/extension-dapp": "0.48.3-3-x",
3030
"@polkadot/extension-inject": "0.48.3-3-x",
31-
"@polkadot/hw-ledger": "^12.6.2",
32-
"@polkadot/keyring": "^12.6.2",
33-
"@polkadot/networks": "^12.6.2",
34-
"@polkadot/react-identicon": "^3.6.6",
35-
"@polkadot/react-qr": "^3.6.6",
36-
"@polkadot/types": "^12.0.2",
37-
"@polkadot/types-augment": "^12.0.2",
38-
"@polkadot/ui-keyring": "^3.6.6",
39-
"@polkadot/ui-settings": "^3.6.6",
40-
"@polkadot/util": "^12.6.2",
41-
"@polkadot/util-crypto": "^12.6.2",
31+
"@polkadot/hw-ledger": "^13.0.2",
32+
"@polkadot/keyring": "^13.0.2",
33+
"@polkadot/networks": "^13.0.2",
34+
"@polkadot/react-identicon": "^3.7.1",
35+
"@polkadot/react-qr": "^3.7.1",
36+
"@polkadot/types": "^12.2.1",
37+
"@polkadot/types-augment": "^12.2.1",
38+
"@polkadot/ui-keyring": "^3.7.1",
39+
"@polkadot/ui-settings": "^3.7.1",
40+
"@polkadot/util": "^13.0.2",
41+
"@polkadot/util-crypto": "^13.0.2",
4242
"file-saver": "^2.0.5",
4343
"i18next": "^23.7.11",
4444
"react": "^18.2.0",

packages/extension-ui/src/hooks/useLedger.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Copyright 2019-2024 @polkadot/extension-ui authors & contributors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// This is to ensure the legacy `class Ledger` doesn't throw linting errors.
5+
//
6+
/* eslint-disable deprecation/deprecation */
7+
48
import type { Network } from '@polkadot/networks/types';
59

610
import { useCallback, useEffect, useMemo, useState } from 'react';

packages/extension/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"type": "module",
1818
"version": "0.48.3-3-x",
1919
"dependencies": {
20-
"@polkadot/api": "^12.0.2",
20+
"@polkadot/api": "^12.2.1",
2121
"@polkadot/extension-base": "0.48.3-3-x",
2222
"@polkadot/extension-inject": "0.48.3-3-x",
2323
"@polkadot/extension-ui": "0.48.3-3-x",

0 commit comments

Comments
 (0)