Skip to content

Commit 2fb9ea2

Browse files
wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.1.2
1 parent a63ae38 commit 2fb9ea2

31 files changed

+57
-52
lines changed

CHANGELOG.md

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

3+
## master
4+
5+
- wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.1.2
6+
37
## 0.2.36 Apr 23, 2023
48

59
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.4.1

wasm-bridge/bridge.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import type { BridgeBase, InitFn, InitPromise, WasmBaseInstance, WasmImports } from './types.ts';
55

6-
import { stringToU8a, u8aToString } from 'https://deno.land/x/polkadot@0.2.36/util/mod.ts';
6+
import { stringToU8a, u8aToString } from 'https://deno.land/x/polkadot/util/mod.ts';
77

88
import { Wbg } from './wbg.ts';
99

@@ -17,15 +17,16 @@ import { Wbg } from './wbg.ts';
1717
* the native environment, providing all the plumbing needed for the Wbg classes.
1818
*/
1919
export class Bridge<C extends WasmBaseInstance> implements BridgeBase<C> {
20+
readonly #createWasm: InitFn<C>;
21+
readonly #heap: unknown[];
22+
readonly #wbg: WasmImports;
23+
2024
#cachegetInt32: Int32Array | null;
2125
#cachegetUint8: Uint8Array | null;
22-
#createWasm: InitFn<C>;
23-
#heap: unknown[];
2426
#heapNext: number;
2527
#wasm: C | null;
2628
#wasmError: string | null;
2729
#wasmPromise: InitPromise<C> | null;
28-
#wbg: WasmImports;
2930
#type: 'asm' | 'wasm' | 'none';
3031

3132
constructor (createWasm: InitFn<C>) {

wasm-bridge/detectPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import { detectPackage } from 'https://deno.land/x/polkadot@0.2.36/util/mod.ts';
3+
import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
44

55
import others from './detectOther.ts';
66
import { packageInfo } from './packageInfo.ts';

wasm-bridge/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/wasm-bridge', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.36' };
3+
export const packageInfo = { name: '@polkadot/wasm-bridge', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.1.2' };

wasm-bridge/wbg.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import type { BridgeBase, WasmBaseInstance } from './types.ts';
33

4-
import { getRandomValues } from 'https://deno.land/x/polkadot@0.2.36/x-randomvalues/mod.ts';
4+
import { getRandomValues } from 'https://deno.land/x/polkadot/x-randomvalues/mod.ts';
55

66
const DEFAULT_CRYPTO = { getRandomValues };
77
const DEFAULT_SELF = { crypto: DEFAULT_CRYPTO };
@@ -18,7 +18,7 @@ const DEFAULT_SELF = { crypto: DEFAULT_CRYPTO };
1818
* Internally the implementation does a thin layer into the supplied bridge.
1919
*/
2020
export class Wbg<C extends WasmBaseInstance> {
21-
#bridge: BridgeBase<C>;
21+
readonly #bridge: BridgeBase<C>;
2222

2323
constructor (bridge: BridgeBase<C>) {
2424
this.#bridge = bridge;

wasm-crypto-asmjs/detectPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import { detectPackage } from 'https://deno.land/x/polkadot@0.2.36/util/mod.ts';
3+
import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
44

55
import others from './detectOther.ts';
66
import { packageInfo } from './packageInfo.ts';

wasm-crypto-asmjs/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/wasm-crypto-asmjs', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.36' };
3+
export const packageInfo = { name: '@polkadot/wasm-crypto-asmjs', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.1.2' };

wasm-crypto-init/asm.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
import type { InitFn } from 'https://deno.land/x/polkadot@0.2.36/wasm-bridge/types.ts';
2+
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
33
import type { WasmCryptoInstance } from './types.ts';
44

5-
import { createWasmFn } from 'https://deno.land/x/polkadot@0.2.36/wasm-bridge/mod.ts';
6-
import { asmJsInit } from 'https://deno.land/x/polkadot@0.2.36/wasm-crypto-asmjs/mod.ts';
5+
import { createWasmFn } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';
6+
import { asmJsInit } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/mod.ts';
77

88
export { packageInfo } from './packageInfo.ts';
99

wasm-crypto-init/both.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
import type { InitFn } from 'https://deno.land/x/polkadot@0.2.36/wasm-bridge/types.ts';
2+
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
33
import type { WasmCryptoInstance } from './types.ts';
44

5-
import { createWasmFn } from 'https://deno.land/x/polkadot@0.2.36/wasm-bridge/mod.ts';
6-
import { asmJsInit } from 'https://deno.land/x/polkadot@0.2.36/wasm-crypto-asmjs/mod.ts';
7-
import { wasmBytes } from 'https://deno.land/x/polkadot@0.2.36/wasm-crypto-wasm/mod.ts';
5+
import { createWasmFn } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';
6+
import { asmJsInit } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/mod.ts';
7+
import { wasmBytes } from 'https://deno.land/x/polkadot/wasm-crypto-wasm/mod.ts';
88

99
export { packageInfo } from './packageInfo.ts';
1010

wasm-crypto-init/detectOther.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
import { packageInfo as bridgeInfo } from 'https://deno.land/x/polkadot@0.2.36/wasm-bridge/packageInfo.ts';
3-
import { packageInfo as asmInfo } from 'https://deno.land/x/polkadot@0.2.36/wasm-crypto-asmjs/packageInfo.ts';
4-
import { packageInfo as wasmInfo } from 'https://deno.land/x/polkadot@0.2.36/wasm-crypto-wasm/packageInfo.ts';
2+
import { packageInfo as bridgeInfo } from 'https://deno.land/x/polkadot/wasm-bridge/packageInfo.ts';
3+
import { packageInfo as asmInfo } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/packageInfo.ts';
4+
import { packageInfo as wasmInfo } from 'https://deno.land/x/polkadot/wasm-crypto-wasm/packageInfo.ts';
55

66
export default [bridgeInfo, asmInfo, wasmInfo];

0 commit comments

Comments
 (0)