diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9711adf..b5b94fb12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # CHANGELOG +## 5.9.1 Feb 28, 2021 + +Changes: + +- Expand `detectPackage` with optional param allowing checks for monorepo versions +- Export logger `format` function directly as `loggerFormat` +- Expand tests and checks for `hdValidatePath` +- Remove `hdEthereum` class-based approach, simplify +- Cleanup formatting on nested conditionals in the `@polkadot/x-` packages +- All packages now export `packageInfo` from the root + + ## 5.8.1 Feb 26, 2021 Contributed: diff --git a/package.json b/package.json index 62c0b14b1..35d3d111c 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,5 @@ "@polkadot/ts": "^0.3.59", "@types/jest": "^26.0.20" }, - "version": "5.8.2-5" + "version": "5.9.0" } diff --git a/packages/hw-ledger-transports/package.json b/packages/hw-ledger-transports/package.json index 61f3d2606..489564609 100644 --- a/packages/hw-ledger-transports/package.json +++ b/packages/hw-ledger-transports/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/hw-ledger-transports", - "version": "5.8.2-5", + "version": "5.9.0", "repository": "github:polkadot-js/common", "author": "Jaco Greeff ", "maintainers": [], diff --git a/packages/hw-ledger/package.json b/packages/hw-ledger/package.json index e48166d51..32b673441 100644 --- a/packages/hw-ledger/package.json +++ b/packages/hw-ledger/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/hw-ledger", - "version": "5.8.2-5", + "version": "5.9.0", "repository": "github:polkadot-js/common", "author": "Jaco Greeff ", "maintainers": [], @@ -13,8 +13,8 @@ ], "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/hw-ledger-transports": "5.8.2-5", - "@polkadot/util": "^5.8.2-5", + "@polkadot/hw-ledger-transports": "5.9.0", + "@polkadot/util": "^5.9.0", "@zondax/ledger-polkadot": "^0.13.1" } } diff --git a/packages/keyring/package.json b/packages/keyring/package.json index 2ce1d817b..8f70c8354 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/keyring", - "version": "5.8.2-5", + "version": "5.9.0", "description": "Keyring management", "author": "Jaco Greeff ", "maintainers": [], @@ -16,11 +16,11 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/util": "5.8.2-5", - "@polkadot/util-crypto": "5.8.2-5" + "@polkadot/util": "5.9.0", + "@polkadot/util-crypto": "5.9.0" }, "peerDependencies": { - "@polkadot/util": "5.8.2-5", - "@polkadot/util-crypto": "5.8.2-5" + "@polkadot/util": "5.9.0", + "@polkadot/util-crypto": "5.9.0" } } diff --git a/packages/networks/package.json b/packages/networks/package.json index 0fe5a4b96..c66f218e7 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/networks", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A list of all available Substrate networks and their applicable prefixes", "main": "index.js", "sideEffects": [ @@ -18,7 +18,7 @@ "@babel/runtime": "^7.13.8" }, "devDependencies": { - "@polkadot/util": "5.8.2-5", - "@polkadot/x-fetch": "5.8.2-5" + "@polkadot/util": "5.9.0", + "@polkadot/x-fetch": "5.9.0" } } diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json index b7ea67fc6..1e86a6e8a 100644 --- a/packages/util-crypto/package.json +++ b/packages/util-crypto/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/util-crypto", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A collection of useful crypto utilities for @polkadot", "main": "index.js", "sideEffects": [ @@ -16,10 +16,10 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/networks": "5.8.2-5", - "@polkadot/util": "5.8.2-5", + "@polkadot/networks": "5.9.0", + "@polkadot/util": "5.9.0", "@polkadot/wasm-crypto": "^3.2.4", - "@polkadot/x-randomvalues": "5.8.2-5", + "@polkadot/x-randomvalues": "5.9.0", "base-x": "^3.0.8", "base64-js": "^1.5.1", "blakejs": "^1.1.0", @@ -40,6 +40,6 @@ "@types/xxhashjs": "^0.2.2" }, "peerDependencies": { - "@polkadot/util": "5.8.2-5" + "@polkadot/util": "5.9.0" } } diff --git a/packages/util/package.json b/packages/util/package.json index 271d3f0ba..139d05da1 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/util", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A collection of useful utilities for @polkadot", "main": "index.js", "sideEffects": [ @@ -16,8 +16,8 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/x-textdecoder": "5.8.2-5", - "@polkadot/x-textencoder": "5.8.2-5", + "@polkadot/x-textdecoder": "5.9.0", + "@polkadot/x-textencoder": "5.9.0", "@types/bn.js": "^4.11.6", "bn.js": "^4.11.9", "camelcase": "^5.3.1", diff --git a/packages/x-fetch/package.json b/packages/x-fetch/package.json index ffff6a462..558569391 100644 --- a/packages/x-fetch/package.json +++ b/packages/x-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-fetch", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A cross-environment fetch replacement", "browser": "browser.js", "main": "node.js", @@ -15,7 +15,7 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-fetch#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/x-global": "5.8.2-5", + "@polkadot/x-global": "5.9.0", "@types/node-fetch": "^2.5.8", "node-fetch": "^2.6.1" } diff --git a/packages/x-global/package.json b/packages/x-global/package.json index 4af96bd71..6f1789dc3 100644 --- a/packages/x-global/package.json +++ b/packages/x-global/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-global", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A cross-environment global replacement", "main": "index.js", "sideEffects": false, diff --git a/packages/x-randomvalues/package.json b/packages/x-randomvalues/package.json index 2da1a1631..e6a4ececb 100644 --- a/packages/x-randomvalues/package.json +++ b/packages/x-randomvalues/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-randomvalues", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A cross-environment window.crypto.getRandomValues replacement", "browser": "browser.js", "main": "node.js", @@ -15,7 +15,7 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-randomvalues#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/x-global": "5.8.2-5" + "@polkadot/x-global": "5.9.0" }, "devDependencies": { "@types/react-native": "^0.63.50" diff --git a/packages/x-rxjs/package.json b/packages/x-rxjs/package.json index 26e6d0761..fe885bce4 100644 --- a/packages/x-rxjs/package.json +++ b/packages/x-rxjs/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-rxjs", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A pass-through interface for RxJs (allowing node + mjs usage)", "main": "index.js", "sideEffects": false, diff --git a/packages/x-textdecoder/package.json b/packages/x-textdecoder/package.json index 7ea971cb2..bf149ca41 100644 --- a/packages/x-textdecoder/package.json +++ b/packages/x-textdecoder/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-textdecoder", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A TextDecoder replacement", "browser": "browser.js", "main": "node.js", @@ -15,6 +15,6 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textdecoder#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/x-global": "5.8.2-5" + "@polkadot/x-global": "5.9.0" } } diff --git a/packages/x-textencoder/package.json b/packages/x-textencoder/package.json index 24ce8144c..69a3825b7 100644 --- a/packages/x-textencoder/package.json +++ b/packages/x-textencoder/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-textencoder", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A TextDecoder replacement", "browser": "browser.js", "main": "node.js", @@ -15,6 +15,6 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textencoder#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/x-global": "5.8.2-5" + "@polkadot/x-global": "5.9.0" } } diff --git a/packages/x-ws/package.json b/packages/x-ws/package.json index 04d37b4db..4180abf93 100644 --- a/packages/x-ws/package.json +++ b/packages/x-ws/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/x-ws", - "version": "5.8.2-5", + "version": "5.9.0", "description": "A cross-environment WebSocket replacement", "browser": "browser.js", "main": "node.js", @@ -15,7 +15,7 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-ws#readme", "dependencies": { "@babel/runtime": "^7.13.8", - "@polkadot/x-global": "5.8.2-5", + "@polkadot/x-global": "5.9.0", "@types/websocket": "^1.0.1", "websocket": "^1.0.33" } diff --git a/yarn.lock b/yarn.lock index d1be275c1..e12047080 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1939,7 +1939,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/hw-ledger-transports@5.8.2-5, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports": +"@polkadot/hw-ledger-transports@5.9.0, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports": version: 0.0.0-use.local resolution: "@polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports" dependencies: @@ -1959,8 +1959,8 @@ __metadata: resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/hw-ledger-transports": 5.8.2-5 - "@polkadot/util": ^5.8.2-5 + "@polkadot/hw-ledger-transports": 5.9.0 + "@polkadot/util": ^5.9.0 "@zondax/ledger-polkadot": ^0.13.1 languageName: unknown linkType: soft @@ -1970,21 +1970,21 @@ __metadata: resolution: "@polkadot/keyring@workspace:packages/keyring" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/util": 5.8.2-5 - "@polkadot/util-crypto": 5.8.2-5 + "@polkadot/util": 5.9.0 + "@polkadot/util-crypto": 5.9.0 peerDependencies: - "@polkadot/util": 5.8.2-5 - "@polkadot/util-crypto": 5.8.2-5 + "@polkadot/util": 5.9.0 + "@polkadot/util-crypto": 5.9.0 languageName: unknown linkType: soft -"@polkadot/networks@5.8.2-5, @polkadot/networks@workspace:packages/networks": +"@polkadot/networks@5.9.0, @polkadot/networks@workspace:packages/networks": version: 0.0.0-use.local resolution: "@polkadot/networks@workspace:packages/networks" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/util": 5.8.2-5 - "@polkadot/x-fetch": 5.8.2-5 + "@polkadot/util": 5.9.0 + "@polkadot/x-fetch": 5.9.0 languageName: unknown linkType: soft @@ -1997,15 +1997,15 @@ __metadata: languageName: node linkType: hard -"@polkadot/util-crypto@5.8.2-5, @polkadot/util-crypto@workspace:packages/util-crypto": +"@polkadot/util-crypto@5.9.0, @polkadot/util-crypto@workspace:packages/util-crypto": version: 0.0.0-use.local resolution: "@polkadot/util-crypto@workspace:packages/util-crypto" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/networks": 5.8.2-5 - "@polkadot/util": 5.8.2-5 + "@polkadot/networks": 5.9.0 + "@polkadot/util": 5.9.0 "@polkadot/wasm-crypto": ^3.2.4 - "@polkadot/x-randomvalues": 5.8.2-5 + "@polkadot/x-randomvalues": 5.9.0 "@types/bn.js": ^4.11.6 "@types/create-hash": ^1.2.2 "@types/elliptic": ^6.4.12 @@ -2023,17 +2023,17 @@ __metadata: tweetnacl: ^1.0.3 xxhashjs: ^0.2.2 peerDependencies: - "@polkadot/util": 5.8.2-5 + "@polkadot/util": 5.9.0 languageName: unknown linkType: soft -"@polkadot/util@5.8.2-5, @polkadot/util@^5.8.2-5, @polkadot/util@workspace:packages/util": +"@polkadot/util@5.9.0, @polkadot/util@^5.9.0, @polkadot/util@workspace:packages/util": version: 0.0.0-use.local resolution: "@polkadot/util@workspace:packages/util" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/x-textdecoder": 5.8.2-5 - "@polkadot/x-textencoder": 5.8.2-5 + "@polkadot/x-textdecoder": 5.9.0 + "@polkadot/x-textencoder": 5.9.0 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 camelcase: ^5.3.1 @@ -2073,18 +2073,18 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-fetch@5.8.2-5, @polkadot/x-fetch@workspace:packages/x-fetch": +"@polkadot/x-fetch@5.9.0, @polkadot/x-fetch@workspace:packages/x-fetch": version: 0.0.0-use.local resolution: "@polkadot/x-fetch@workspace:packages/x-fetch" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.8.2-5 + "@polkadot/x-global": 5.9.0 "@types/node-fetch": ^2.5.8 node-fetch: ^2.6.1 languageName: unknown linkType: soft -"@polkadot/x-global@5.8.2-5, @polkadot/x-global@workspace:packages/x-global": +"@polkadot/x-global@5.9.0, @polkadot/x-global@workspace:packages/x-global": version: 0.0.0-use.local resolution: "@polkadot/x-global@workspace:packages/x-global" dependencies: @@ -2094,12 +2094,12 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/x-randomvalues@5.8.2-5, @polkadot/x-randomvalues@workspace:packages/x-randomvalues": +"@polkadot/x-randomvalues@5.9.0, @polkadot/x-randomvalues@workspace:packages/x-randomvalues": version: 0.0.0-use.local resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.8.2-5 + "@polkadot/x-global": 5.9.0 "@types/react-native": ^0.63.50 languageName: unknown linkType: soft @@ -2113,21 +2113,21 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/x-textdecoder@5.8.2-5, @polkadot/x-textdecoder@workspace:packages/x-textdecoder": +"@polkadot/x-textdecoder@5.9.0, @polkadot/x-textdecoder@workspace:packages/x-textdecoder": version: 0.0.0-use.local resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.8.2-5 + "@polkadot/x-global": 5.9.0 languageName: unknown linkType: soft -"@polkadot/x-textencoder@5.8.2-5, @polkadot/x-textencoder@workspace:packages/x-textencoder": +"@polkadot/x-textencoder@5.9.0, @polkadot/x-textencoder@workspace:packages/x-textencoder": version: 0.0.0-use.local resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.8.2-5 + "@polkadot/x-global": 5.9.0 languageName: unknown linkType: soft @@ -2136,7 +2136,7 @@ __metadata: resolution: "@polkadot/x-ws@workspace:packages/x-ws" dependencies: "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.8.2-5 + "@polkadot/x-global": 5.9.0 "@types/websocket": ^1.0.1 websocket: ^1.0.33 languageName: unknown