Skip to content

Commit af3d20e

Browse files
authored
12.0.1 (#5916)
1 parent 5897fb7 commit af3d20e

File tree

18 files changed

+181
-166
lines changed

18 files changed

+181
-166
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# CHANGELOG
22

3+
## 12.0.1 June 24, 2024
4+
5+
**Important Changes**:
6+
7+
- Addition of an optional `signedTransaction` field to the [`SignerResult`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L138-L158) response for injected signers. This only applies to the `signPayload` method exposed in the [`Signer`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L160-L175) interface for polkadot-js. As the name suggests the field expects a signed transaction (extrinsic) when inputted. When its present, the api will not add the signature to the payload, but instead broadcast the inputted signed transaction. This means the signer may modify the payload it's given. The only part of the payload that may not be modified is the call data. This is verified on the api, and will throw an error if it does not match the initial payloads call data.
8+
- This is very useful for signers that want to adjust the `mode` and `metadataHash` field for the `CheckMetadataHash` signed extension.
9+
- Note that this is not your traditional breaking change since it more-so acts as an addition, but since this is a high magnitude change it is going to be considered a MAJOR bump.
10+
- For more info please review the following PR [(#5914)](https://github.com/polkadot-js/api/pull/5914)
11+
12+
Changes:
13+
14+
- Replace `system_accountNextIndex` with runtime api call `accountNonceApi` for `api.derive.tx.signingInfo`
15+
- Sanitize `eras` for `api.derive.staking._stakerRewards`
16+
17+
318
## 11.3.1 June 17, 2024
419

520
Changes:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"sideEffects": false,
1616
"type": "module",
17-
"version": "11.3.2-2-x",
17+
"version": "12.0.1",
1818
"versions": {
1919
"git": "11.3.2-2-x",
2020
"npm": "11.3.1"

packages/api-augment/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api-base": "11.3.2-2-x",
25-
"@polkadot/rpc-augment": "11.3.2-2-x",
26-
"@polkadot/types": "11.3.2-2-x",
27-
"@polkadot/types-augment": "11.3.2-2-x",
28-
"@polkadot/types-codec": "11.3.2-2-x",
24+
"@polkadot/api-base": "12.0.1",
25+
"@polkadot/rpc-augment": "12.0.1",
26+
"@polkadot/types": "12.0.1",
27+
"@polkadot/types-augment": "12.0.1",
28+
"@polkadot/types-codec": "12.0.1",
2929
"@polkadot/util": "^12.6.2",
3030
"tslib": "^2.6.2"
3131
}

packages/api-base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/rpc-core": "11.3.2-2-x",
25-
"@polkadot/types": "11.3.2-2-x",
24+
"@polkadot/rpc-core": "12.0.1",
25+
"@polkadot/types": "12.0.1",
2626
"@polkadot/util": "^12.6.2",
2727
"rxjs": "^7.8.1",
2828
"tslib": "^2.6.2"

packages/api-contract/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api": "11.3.2-2-x",
25-
"@polkadot/api-augment": "11.3.2-2-x",
26-
"@polkadot/types": "11.3.2-2-x",
27-
"@polkadot/types-codec": "11.3.2-2-x",
28-
"@polkadot/types-create": "11.3.2-2-x",
24+
"@polkadot/api": "12.0.1",
25+
"@polkadot/api-augment": "12.0.1",
26+
"@polkadot/types": "12.0.1",
27+
"@polkadot/types-codec": "12.0.1",
28+
"@polkadot/types-create": "12.0.1",
2929
"@polkadot/util": "^12.6.2",
3030
"@polkadot/util-crypto": "^12.6.2",
3131
"rxjs": "^7.8.1",
3232
"tslib": "^2.6.2"
3333
},
3434
"devDependencies": {
35-
"@polkadot/api-augment": "11.3.2-2-x",
35+
"@polkadot/api-augment": "12.0.1",
3636
"@polkadot/keyring": "^12.6.2",
37-
"@polkadot/types-support": "11.3.2-2-x"
37+
"@polkadot/types-support": "12.0.1"
3838
}
3939
}

packages/api-derive/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api": "11.3.2-2-x",
25-
"@polkadot/api-augment": "11.3.2-2-x",
26-
"@polkadot/api-base": "11.3.2-2-x",
27-
"@polkadot/rpc-core": "11.3.2-2-x",
28-
"@polkadot/types": "11.3.2-2-x",
29-
"@polkadot/types-codec": "11.3.2-2-x",
24+
"@polkadot/api": "12.0.1",
25+
"@polkadot/api-augment": "12.0.1",
26+
"@polkadot/api-base": "12.0.1",
27+
"@polkadot/rpc-core": "12.0.1",
28+
"@polkadot/types": "12.0.1",
29+
"@polkadot/types-codec": "12.0.1",
3030
"@polkadot/util": "^12.6.2",
3131
"@polkadot/util-crypto": "^12.6.2",
3232
"rxjs": "^7.8.1",
3333
"tslib": "^2.6.2"
3434
},
3535
"devDependencies": {
36-
"@polkadot/api": "11.3.2-2-x",
37-
"@polkadot/api-augment": "11.3.2-2-x",
38-
"@polkadot/rpc-augment": "11.3.2-2-x",
39-
"@polkadot/rpc-provider": "11.3.2-2-x",
40-
"@polkadot/types-support": "11.3.2-2-x"
36+
"@polkadot/api": "12.0.1",
37+
"@polkadot/api-augment": "12.0.1",
38+
"@polkadot/rpc-augment": "12.0.1",
39+
"@polkadot/rpc-provider": "12.0.1",
40+
"@polkadot/types-support": "12.0.1"
4141
}
4242
}

packages/api/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api-augment": "11.3.2-2-x",
25-
"@polkadot/api-base": "11.3.2-2-x",
26-
"@polkadot/api-derive": "11.3.2-2-x",
24+
"@polkadot/api-augment": "12.0.1",
25+
"@polkadot/api-base": "12.0.1",
26+
"@polkadot/api-derive": "12.0.1",
2727
"@polkadot/keyring": "^12.6.2",
28-
"@polkadot/rpc-augment": "11.3.2-2-x",
29-
"@polkadot/rpc-core": "11.3.2-2-x",
30-
"@polkadot/rpc-provider": "11.3.2-2-x",
31-
"@polkadot/types": "11.3.2-2-x",
32-
"@polkadot/types-augment": "11.3.2-2-x",
33-
"@polkadot/types-codec": "11.3.2-2-x",
34-
"@polkadot/types-create": "11.3.2-2-x",
35-
"@polkadot/types-known": "11.3.2-2-x",
28+
"@polkadot/rpc-augment": "12.0.1",
29+
"@polkadot/rpc-core": "12.0.1",
30+
"@polkadot/rpc-provider": "12.0.1",
31+
"@polkadot/types": "12.0.1",
32+
"@polkadot/types-augment": "12.0.1",
33+
"@polkadot/types-codec": "12.0.1",
34+
"@polkadot/types-create": "12.0.1",
35+
"@polkadot/types-known": "12.0.1",
3636
"@polkadot/util": "^12.6.2",
3737
"@polkadot/util-crypto": "^12.6.2",
3838
"eventemitter3": "^5.0.1",
3939
"rxjs": "^7.8.1",
4040
"tslib": "^2.6.2"
4141
},
4242
"devDependencies": {
43-
"@polkadot/api-augment": "11.3.2-2-x",
44-
"@polkadot/types-support": "11.3.2-2-x"
43+
"@polkadot/api-augment": "12.0.1",
44+
"@polkadot/types-support": "12.0.1"
4545
}
4646
}

packages/rpc-augment/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/rpc-core": "11.3.2-2-x",
25-
"@polkadot/types": "11.3.2-2-x",
26-
"@polkadot/types-codec": "11.3.2-2-x",
24+
"@polkadot/rpc-core": "12.0.1",
25+
"@polkadot/types": "12.0.1",
26+
"@polkadot/types-codec": "12.0.1",
2727
"@polkadot/util": "^12.6.2",
2828
"tslib": "^2.6.2"
2929
}

packages/rpc-core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/rpc-augment": "11.3.2-2-x",
25-
"@polkadot/rpc-provider": "11.3.2-2-x",
26-
"@polkadot/types": "11.3.2-2-x",
24+
"@polkadot/rpc-augment": "12.0.1",
25+
"@polkadot/rpc-provider": "12.0.1",
26+
"@polkadot/types": "12.0.1",
2727
"@polkadot/util": "^12.6.2",
2828
"rxjs": "^7.8.1",
2929
"tslib": "^2.6.2"
3030
},
3131
"devDependencies": {
3232
"@polkadot/keyring": "^12.6.2",
33-
"@polkadot/rpc-augment": "11.3.2-2-x"
33+
"@polkadot/rpc-augment": "12.0.1"
3434
}
3535
}

packages/rpc-provider/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"./packageDetect.cjs"
1919
],
2020
"type": "module",
21-
"version": "11.3.2-2-x",
21+
"version": "12.0.1",
2222
"main": "index.js",
2323
"dependencies": {
2424
"@polkadot/keyring": "^12.6.2",
25-
"@polkadot/types": "11.3.2-2-x",
26-
"@polkadot/types-support": "11.3.2-2-x",
25+
"@polkadot/types": "12.0.1",
26+
"@polkadot/types-support": "12.0.1",
2727
"@polkadot/util": "^12.6.2",
2828
"@polkadot/util-crypto": "^12.6.2",
2929
"@polkadot/x-fetch": "^12.6.2",

0 commit comments

Comments
 (0)