Skip to content

Commit

Permalink
Bump TS & API (#1290)
Browse files Browse the repository at this point in the history
* Bump TS & API

* Attempt to fix build w/ moduleResolution

* Node16 module/moduleResolution (attempt 2)

* Updates & fix attempt 3
  • Loading branch information
jacogr authored Oct 15, 2023
1 parent 2db64ec commit 97734fd
Show file tree
Hide file tree
Showing 10 changed files with 1,005 additions and 2,505 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.cjs --mode development --watch"
},
"devDependencies": {
"@polkadot/dev": "^0.76.18",
"@types/node": "^20.5.3",
"i18next-scanner": "^4.3.0",
"@polkadot/dev": "^0.76.29",
"@types/node": "^20.8.6",
"i18next-scanner": "^4.4.0",
"sinon-chrome": "^3.0.1"
},
"resolutions": {
"@polkadot/api": "^10.9.1",
"@polkadot/keyring": "^12.4.2",
"@polkadot/networks": "^12.4.2",
"@polkadot/types": "^10.9.1",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/x-fetch": "^12.4.2",
"@polkadot/api": "^10.10.1",
"@polkadot/keyring": "^12.5.1",
"@polkadot/networks": "^12.5.1",
"@polkadot/types": "^10.10.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"@polkadot/x-fetch": "^12.5.1",
"safe-buffer": "^5.2.1",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
}
}
20 changes: 10 additions & 10 deletions packages/extension-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
"version": "0.46.6-6-x",
"main": "index.js",
"dependencies": {
"@polkadot/api": "^10.9.1",
"@polkadot/api": "^10.10.1",
"@polkadot/extension-chains": "0.46.6-6-x",
"@polkadot/extension-dapp": "0.46.6-6-x",
"@polkadot/extension-inject": "0.46.6-6-x",
"@polkadot/keyring": "^12.4.2",
"@polkadot/networks": "^12.4.2",
"@polkadot/phishing": "^0.21.5",
"@polkadot/rpc-provider": "^10.9.1",
"@polkadot/types": "^10.9.1",
"@polkadot/ui-keyring": "^3.6.2",
"@polkadot/ui-settings": "^3.6.2",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/keyring": "^12.5.1",
"@polkadot/networks": "^12.5.1",
"@polkadot/phishing": "^0.21.6",
"@polkadot/rpc-provider": "^10.10.1",
"@polkadot/types": "^10.10.1",
"@polkadot/ui-keyring": "^3.6.3",
"@polkadot/ui-settings": "^3.6.3",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-chains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"main": "index.js",
"dependencies": {
"@polkadot/extension-inject": "0.46.6-6-x",
"@polkadot/networks": "^12.4.2",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/networks": "^12.5.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"tslib": "^2.6.2"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-compat-metamask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"dependencies": {
"@metamask/detect-provider": "^2.0.0",
"@polkadot/extension-inject": "0.46.6-6-x",
"@polkadot/types": "^10.9.1",
"@polkadot/util": "^12.4.2",
"@polkadot/types": "^10.10.1",
"@polkadot/util": "^12.5.1",
"tslib": "^2.6.2",
"web3": "^1.10.1"
"web3": "^1.10.2"
},
"peerDependencies": {
"@polkadot/api": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"main": "index.js",
"dependencies": {
"@polkadot/extension-inject": "0.46.6-6-x",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"tslib": "^2.6.2"
},
"peerDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions packages/extension-inject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"version": "0.46.6-6-x",
"main": "index.js",
"dependencies": {
"@polkadot/api": "^10.9.1",
"@polkadot/rpc-provider": "^10.9.1",
"@polkadot/types": "^10.9.1",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/x-global": "^12.4.2",
"@polkadot/api": "^10.10.1",
"@polkadot/rpc-provider": "^10.10.1",
"@polkadot/types": "^10.10.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"@polkadot/x-global": "^12.5.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/chrome": "^0.0.243",
"@types/firefox-webext-browser": "^111.0.1"
"@types/chrome": "^0.0.246",
"@types/firefox-webext-browser": "^111.0.2"
},
"peerDependencies": {
"@polkadot/api": "*",
Expand Down
40 changes: 20 additions & 20 deletions packages/extension-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,44 @@
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@polkadot/api": "^10.9.1",
"@polkadot/api": "^10.10.1",
"@polkadot/extension-base": "0.46.6-6-x",
"@polkadot/extension-chains": "0.46.6-6-x",
"@polkadot/extension-dapp": "0.46.6-6-x",
"@polkadot/extension-inject": "0.46.6-6-x",
"@polkadot/hw-ledger": "^12.4.2",
"@polkadot/keyring": "^12.4.2",
"@polkadot/networks": "^12.4.2",
"@polkadot/react-identicon": "^3.6.2",
"@polkadot/react-qr": "^3.6.2",
"@polkadot/types": "^10.9.1",
"@polkadot/types-augment": "^10.9.1",
"@polkadot/ui-keyring": "^3.6.2",
"@polkadot/ui-settings": "^3.6.2",
"@polkadot/util": "^12.4.2",
"@polkadot/util-crypto": "^12.4.2",
"@polkadot/hw-ledger": "^12.5.1",
"@polkadot/keyring": "^12.5.1",
"@polkadot/networks": "^12.5.1",
"@polkadot/react-identicon": "^3.6.3",
"@polkadot/react-qr": "^3.6.3",
"@polkadot/types": "^10.10.1",
"@polkadot/types-augment": "^10.10.1",
"@polkadot/ui-keyring": "^3.6.3",
"@polkadot/ui-settings": "^3.6.3",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"file-saver": "^2.0.5",
"i18next": "^23.4.5",
"i18next": "^23.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^11.7.1",
"react-i18next": "^13.2.0",
"react-i18next": "^13.3.0",
"react-is": "^18.2.0",
"react-router": "^5.3.4",
"react-router-dom": "^5.3.4",
"styled-components": "^6.0.7",
"styled-components": "^6.1.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/extension-mocks": "0.46.6-6-x",
"@types/enzyme": "^3.10.13",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/enzyme": "^3.10.14",
"@types/enzyme-adapter-react-16": "^1.0.7",
"@types/file-saver": "^2.0.5",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.2.7",
"@types/react-copy-to-clipboard": "^5.0.5",
"@types/react-dom": "^18.2.13",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/sinon-chrome": "^2.2.11",
"@types/sinon-chrome": "^2.2.12",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.7",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"type": "module",
"version": "0.46.6-6-x",
"dependencies": {
"@polkadot/api": "^10.9.1",
"@polkadot/api": "^10.10.1",
"@polkadot/extension-base": "0.46.6-6-x",
"@polkadot/extension-inject": "0.46.6-6-x",
"@polkadot/extension-ui": "0.46.6-6-x",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/dev": "^0.76.18",
"@polkadot/dev": "^0.76.29",
"browser-resolve": "^2.0.0",
"buffer": "^6.0.3",
"copy-webpack-plugin": "^11.0.0",
Expand All @@ -35,7 +35,7 @@
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"ts-loader": "^9.4.4",
"ts-loader": "^9.5.0",
"url-loader": "^4.1.1",
"webpack-extension-manifest-plugin": "^0.8.0"
},
Expand Down
1 change: 1 addition & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"composite": true,
/* FIXME Dropzone is problematic with nodenext resolution */
"module": "ESNext",
"moduleResolution": "node",
"paths": {
"@polkadot/extension": ["extension/src/index.ts"],
Expand Down
Loading

0 comments on commit 97734fd

Please sign in to comment.