Skip to content

Commit

Permalink
7.1.2 (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Apr 28, 2023
1 parent c408836 commit fcc48bf
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 125 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 7.1.2 Apr 28, 2023

Changes:

- Apply `readonly` specifiers to private class fields where applicable
- Adjust compilation output for `__internal__` class fields


## 7.1.1 Apr 22, 2023

Changes:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"versions": {
"git": "7.1.2-0-x",
"npm": "7.1.1"
Expand Down Expand Up @@ -44,10 +44,10 @@
"test:wasm-crypto:rust": "cd packages/wasm-crypto && RUST_BACKTRACE=full cargo test --release -- --test-threads=1 --nocapture"
},
"devDependencies": {
"@polkadot/dev": "^0.73.2",
"@polkadot/dev": "^0.73.6",
"@polkadot/util": "^12.0.1",
"@polkadot/x-randomvalues": "^12.0.1",
"@types/node": "^18.15.13",
"@types/node": "^18.16.2",
"fflate": "^0.7.4"
},
"resolutions": {
Expand Down
4 changes: 2 additions & 2 deletions packages/wasm-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"main": "index.js",
"dependencies": {
"@polkadot/wasm-util": "7.1.2-0-x",
"@polkadot/wasm-util": "7.1.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
7 changes: 4 additions & 3 deletions packages/wasm-bridge/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ import { Wbg } from './wbg.js';
* the native environment, providing all the plumbing needed for the Wbg classes.
*/
export class Bridge<C extends WasmBaseInstance> implements BridgeBase<C> {
readonly #createWasm: InitFn<C>;
readonly #heap: unknown[];
readonly #wbg: WasmImports;

#cachegetInt32: Int32Array | null;
#cachegetUint8: Uint8Array | null;
#createWasm: InitFn<C>;
#heap: unknown[];
#heapNext: number;
#wasm: C | null;
#wasmError: string | null;
#wasmPromise: InitPromise<C> | null;
#wbg: WasmImports;
#type: 'asm' | 'wasm' | 'none';

constructor (createWasm: InitFn<C>) {
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm-bridge/src/wbg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const DEFAULT_SELF = { crypto: DEFAULT_CRYPTO };
* Internally the implementation does a thin layer into the supplied bridge.
*/
export class Wbg<C extends WasmBaseInstance> {
#bridge: BridgeBase<C>;
readonly #bridge: BridgeBase<C>;

constructor (bridge: BridgeBase<C>) {
this.#bridge = bridge;
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm-crypto-asmjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"main": "index.js",
"dependencies": {
"tslib": "^2.5.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/wasm-crypto-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"browser": "wasm.js",
"main": "wasm.js",
"react-native": "asm.js",
"dependencies": {
"@polkadot/wasm-bridge": "7.1.2-0-x",
"@polkadot/wasm-crypto-asmjs": "7.1.2-0-x",
"@polkadot/wasm-crypto-wasm": "7.1.2-0-x",
"@polkadot/wasm-util": "7.1.2-0-x",
"@polkadot/wasm-bridge": "7.1.2",
"@polkadot/wasm-crypto-asmjs": "7.1.2",
"@polkadot/wasm-crypto-wasm": "7.1.2",
"@polkadot/wasm-util": "7.1.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/wasm-crypto-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
},
"sideEffects": false,
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"main": "index.js",
"dependencies": {
"@polkadot/wasm-util": "7.1.2-0-x",
"@polkadot/wasm-util": "7.1.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/wasm-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"./initWasmAsm.cjs"
],
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"main": "index.js",
"dependencies": {
"@polkadot/wasm-bridge": "7.1.2-0-x",
"@polkadot/wasm-crypto-asmjs": "7.1.2-0-x",
"@polkadot/wasm-crypto-init": "7.1.2-0-x",
"@polkadot/wasm-crypto-wasm": "7.1.2-0-x",
"@polkadot/wasm-util": "7.1.2-0-x",
"@polkadot/wasm-bridge": "7.1.2",
"@polkadot/wasm-crypto-asmjs": "7.1.2",
"@polkadot/wasm-crypto-init": "7.1.2",
"@polkadot/wasm-crypto-wasm": "7.1.2",
"@polkadot/wasm-util": "7.1.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.1.2-0-x",
"version": "7.1.2",
"main": "index.js",
"dependencies": {
"tslib": "^2.5.0"
Expand Down
Loading

0 comments on commit fcc48bf

Please sign in to comment.