Skip to content

Commit fcc48bf

Browse files
authored
7.1.2 (#515)
1 parent c408836 commit fcc48bf

File tree

11 files changed

+134
-125
lines changed

11 files changed

+134
-125
lines changed

CHANGELOG.md

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

3+
## 7.1.2 Apr 28, 2023
4+
5+
Changes:
6+
7+
- Apply `readonly` specifiers to private class fields where applicable
8+
- Adjust compilation output for `__internal__` class fields
9+
10+
311
## 7.1.1 Apr 22, 2023
412

513
Changes:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"sideEffects": false,
1616
"type": "module",
17-
"version": "7.1.2-0-x",
17+
"version": "7.1.2",
1818
"versions": {
1919
"git": "7.1.2-0-x",
2020
"npm": "7.1.1"
@@ -44,10 +44,10 @@
4444
"test:wasm-crypto:rust": "cd packages/wasm-crypto && RUST_BACKTRACE=full cargo test --release -- --test-threads=1 --nocapture"
4545
},
4646
"devDependencies": {
47-
"@polkadot/dev": "^0.73.2",
47+
"@polkadot/dev": "^0.73.6",
4848
"@polkadot/util": "^12.0.1",
4949
"@polkadot/x-randomvalues": "^12.0.1",
50-
"@types/node": "^18.15.13",
50+
"@types/node": "^18.16.2",
5151
"fflate": "^0.7.4"
5252
},
5353
"resolutions": {

packages/wasm-bridge/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "7.1.2-0-x",
21+
"version": "7.1.2",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/wasm-util": "7.1.2-0-x",
24+
"@polkadot/wasm-util": "7.1.2",
2525
"tslib": "^2.5.0"
2626
},
2727
"devDependencies": {

packages/wasm-bridge/src/bridge.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ import { Wbg } from './wbg.js';
2323
* the native environment, providing all the plumbing needed for the Wbg classes.
2424
*/
2525
export class Bridge<C extends WasmBaseInstance> implements BridgeBase<C> {
26+
readonly #createWasm: InitFn<C>;
27+
readonly #heap: unknown[];
28+
readonly #wbg: WasmImports;
29+
2630
#cachegetInt32: Int32Array | null;
2731
#cachegetUint8: Uint8Array | null;
28-
#createWasm: InitFn<C>;
29-
#heap: unknown[];
3032
#heapNext: number;
3133
#wasm: C | null;
3234
#wasmError: string | null;
3335
#wasmPromise: InitPromise<C> | null;
34-
#wbg: WasmImports;
3536
#type: 'asm' | 'wasm' | 'none';
3637

3738
constructor (createWasm: InitFn<C>) {

packages/wasm-bridge/src/wbg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const DEFAULT_SELF = { crypto: DEFAULT_CRYPTO };
2020
* Internally the implementation does a thin layer into the supplied bridge.
2121
*/
2222
export class Wbg<C extends WasmBaseInstance> {
23-
#bridge: BridgeBase<C>;
23+
readonly #bridge: BridgeBase<C>;
2424

2525
constructor (bridge: BridgeBase<C>) {
2626
this.#bridge = bridge;

packages/wasm-crypto-asmjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"sideEffects": false,
1717
"type": "module",
18-
"version": "7.1.2-0-x",
18+
"version": "7.1.2",
1919
"main": "index.js",
2020
"dependencies": {
2121
"tslib": "^2.5.0"

packages/wasm-crypto-init/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "7.1.2-0-x",
21+
"version": "7.1.2",
2222
"browser": "wasm.js",
2323
"main": "wasm.js",
2424
"react-native": "asm.js",
2525
"dependencies": {
26-
"@polkadot/wasm-bridge": "7.1.2-0-x",
27-
"@polkadot/wasm-crypto-asmjs": "7.1.2-0-x",
28-
"@polkadot/wasm-crypto-wasm": "7.1.2-0-x",
29-
"@polkadot/wasm-util": "7.1.2-0-x",
26+
"@polkadot/wasm-bridge": "7.1.2",
27+
"@polkadot/wasm-crypto-asmjs": "7.1.2",
28+
"@polkadot/wasm-crypto-wasm": "7.1.2",
29+
"@polkadot/wasm-util": "7.1.2",
3030
"tslib": "^2.5.0"
3131
},
3232
"devDependencies": {

packages/wasm-crypto-wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
},
1616
"sideEffects": false,
1717
"type": "module",
18-
"version": "7.1.2-0-x",
18+
"version": "7.1.2",
1919
"main": "index.js",
2020
"dependencies": {
21-
"@polkadot/wasm-util": "7.1.2-0-x",
21+
"@polkadot/wasm-util": "7.1.2",
2222
"tslib": "^2.5.0"
2323
},
2424
"devDependencies": {

packages/wasm-crypto/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"./initWasmAsm.cjs"
2727
],
2828
"type": "module",
29-
"version": "7.1.2-0-x",
29+
"version": "7.1.2",
3030
"main": "index.js",
3131
"dependencies": {
32-
"@polkadot/wasm-bridge": "7.1.2-0-x",
33-
"@polkadot/wasm-crypto-asmjs": "7.1.2-0-x",
34-
"@polkadot/wasm-crypto-init": "7.1.2-0-x",
35-
"@polkadot/wasm-crypto-wasm": "7.1.2-0-x",
36-
"@polkadot/wasm-util": "7.1.2-0-x",
32+
"@polkadot/wasm-bridge": "7.1.2",
33+
"@polkadot/wasm-crypto-asmjs": "7.1.2",
34+
"@polkadot/wasm-crypto-init": "7.1.2",
35+
"@polkadot/wasm-crypto-wasm": "7.1.2",
36+
"@polkadot/wasm-util": "7.1.2",
3737
"tslib": "^2.5.0"
3838
},
3939
"devDependencies": {

packages/wasm-util/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "7.1.2-0-x",
21+
"version": "7.1.2",
2222
"main": "index.js",
2323
"dependencies": {
2424
"tslib": "^2.5.0"

0 commit comments

Comments
 (0)