File tree Expand file tree Collapse file tree 11 files changed +134
-125
lines changed
Expand file tree Collapse file tree 11 files changed +134
-125
lines changed Original file line number Diff line number Diff line change 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
513Changes:
Original file line number Diff line number Diff line change 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"
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" : {
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 */
2525export 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 > ) {
Original file line number Diff line number Diff 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 */
2222export class Wbg < C extends WasmBaseInstance > {
23- #bridge: BridgeBase < C > ;
23+ readonly #bridge: BridgeBase < C > ;
2424
2525 constructor ( bridge : BridgeBase < C > ) {
2626 this . #bridge = bridge ;
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments