Skip to content

Commit

Permalink
12.3.2 (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Jun 12, 2023
1 parent 3e6d86b commit eaf9d97
Show file tree
Hide file tree
Showing 19 changed files with 95 additions and 83 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 12.3.2 Jun 12, 2023

Changes:

- Adjust `SubstrateNetwork` typing with `HexString` genesisHash
- Re-export `Constructor<T>` type (deprecated, replaced with `Class<T>`)


## 12.3.1 Jun 11, 2023

Changes:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"versions": {
"git": "12.3.1",
"npm": "12.3.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/hw-ledger-transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@ledgerhq/hw-transport": "^6.28.4",
"@ledgerhq/hw-transport-webhid": "^6.27.15",
"@ledgerhq/hw-transport-webusb": "^6.27.15",
"@polkadot/util": "12.3.1",
"@polkadot/util": "12.3.2",
"tslib": "^2.5.3"
},
"optionalDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/hw-ledger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"main": "index.js",
"dependencies": {
"@polkadot/hw-ledger-transports": "12.3.1",
"@polkadot/util": "12.3.1",
"@polkadot/hw-ledger-transports": "12.3.2",
"@polkadot/util": "12.3.2",
"@zondax/ledger-substrate": "^0.40.7",
"tslib": "^2.5.3"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"main": "index.js",
"dependencies": {
"@polkadot/util": "12.3.1",
"@polkadot/util-crypto": "12.3.1",
"@polkadot/util": "12.3.2",
"@polkadot/util-crypto": "12.3.2",
"tslib": "^2.5.3"
},
"peerDependencies": {
"@polkadot/util": "12.3.1",
"@polkadot/util-crypto": "12.3.1"
"@polkadot/util": "12.3.2",
"@polkadot/util-crypto": "12.3.2"
}
}
6 changes: 3 additions & 3 deletions packages/networks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"main": "index.js",
"dependencies": {
"@polkadot/util": "12.3.1",
"@polkadot/util": "12.3.2",
"@substrate/ss58-registry": "^1.40.0",
"tslib": "^2.5.3"
},
"devDependencies": {
"@polkadot/hw-ledger": "12.3.1"
"@polkadot/hw-ledger": "12.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/networks/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type KnownSubstrate = RegistryEntry;
export type KnownTestnet = Record<string, true>;

export interface SubstrateNetwork extends KnownSubstrate {
genesisHash: string[];
genesisHash: HexString[];
hasLedgerSupport: boolean;
icon: Icon;
isIgnored: boolean;
Expand Down
12 changes: 6 additions & 6 deletions packages/util-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": {
"crypto": false,
"stream": false
Expand All @@ -29,16 +29,16 @@
"dependencies": {
"@noble/curves": "1.1.0",
"@noble/hashes": "1.3.1",
"@polkadot/networks": "12.3.1",
"@polkadot/util": "12.3.1",
"@polkadot/networks": "12.3.2",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-crypto": "^7.2.1",
"@polkadot/wasm-util": "^7.2.1",
"@polkadot/x-bigint": "12.3.1",
"@polkadot/x-randomvalues": "12.3.1",
"@polkadot/x-bigint": "12.3.2",
"@polkadot/x-randomvalues": "12.3.2",
"@scure/base": "1.1.1",
"tslib": "^2.5.3"
},
"peerDependencies": {
"@polkadot/util": "12.3.1"
"@polkadot/util": "12.3.2"
}
}
12 changes: 6 additions & 6 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"main": "index.js",
"exports": {
"./hex/toU8a": {
Expand All @@ -35,15 +35,15 @@
}
},
"dependencies": {
"@polkadot/x-bigint": "12.3.1",
"@polkadot/x-global": "12.3.1",
"@polkadot/x-textdecoder": "12.3.1",
"@polkadot/x-textencoder": "12.3.1",
"@polkadot/x-bigint": "12.3.2",
"@polkadot/x-global": "12.3.2",
"@polkadot/x-textdecoder": "12.3.2",
"@polkadot/x-textencoder": "12.3.2",
"@types/bn.js": "^5.1.1",
"bn.js": "^5.2.1",
"tslib": "^2.5.3"
},
"devDependencies": {
"@polkadot/x-randomvalues": "12.3.1"
"@polkadot/x-randomvalues": "12.3.2"
}
}
6 changes: 5 additions & 1 deletion packages/util/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import type { BN } from './bn/bn.js';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
/* eslint-disable @typescript-eslint/no-explicit-any */

export interface Class<T = any, A extends unknown[] = any[]> {
prototype: T;

Expand All @@ -13,6 +14,9 @@ export interface Class<T = any, A extends unknown[] = any[]> {
isPrototypeOf (other: unknown): boolean;
}

// @deprecated Use Class<T, A> instead
export type Constructor<T = any, A extends unknown[] = any[]> = Class<T, A>;

export interface ToBigInt {
toBigInt: () => bigint;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/x-bigint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"./shim.cjs"
],
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"dependencies": {
"@polkadot/x-global": "12.3.1",
"@polkadot/x-global": "12.3.2",
"tslib": "^2.5.3"
}
}
4 changes: 2 additions & 2 deletions packages/x-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"main": "index.js",
"dependencies": {
"@polkadot/util": "12.3.1",
"@polkadot/util": "12.3.2",
"buffer-es6": "^4.9.3",
"tslib": "^2.5.3"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/x-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.3.1",
"@polkadot/x-global": "12.3.2",
"node-fetch": "^3.3.1",
"tslib": "^2.5.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/x-global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"main": "index.js",
"dependencies": {
"tslib": "^2.5.3"
Expand Down
8 changes: 4 additions & 4 deletions packages/x-randomvalues/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.3.1",
"@polkadot/x-global": "12.3.2",
"tslib": "^2.5.3"
},
"devDependencies": {
"@polkadot/util": "12.3.1",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-util": "^7.2.1",
"@types/react-native": "^0.72.2"
},
"peerDependencies": {
"@polkadot/util": "12.3.1",
"@polkadot/util": "12.3.2",
"@polkadot/wasm-util": "*"
}
}
4 changes: 2 additions & 2 deletions packages/x-textdecoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.3.1",
"@polkadot/x-global": "12.3.2",
"tslib": "^2.5.3"
}
}
4 changes: 2 additions & 2 deletions packages/x-textencoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.3.1",
"@polkadot/x-global": "12.3.2",
"tslib": "^2.5.3"
}
}
4 changes: 2 additions & 2 deletions packages/x-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.3.1",
"version": "12.3.2",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.3.1",
"@polkadot/x-global": "12.3.2",
"tslib": "^2.5.3",
"ws": "^8.13.0"
},
Expand Down
Loading

0 comments on commit eaf9d97

Please sign in to comment.