Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
asonnleitner committed Mar 1, 2022
2 parents db823b8 + 3fdc690 commit 201a3d0
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 94 deletions.
8 changes: 4 additions & 4 deletions dist/highway-wasm.cjs.js

Large diffs are not rendered by default.

161 changes: 80 additions & 81 deletions dist/highway-wasm.d.ts
Original file line number Diff line number Diff line change
@@ -1,98 +1,97 @@
/**
*/
declare class Hash {
free(): void
/**
* @returns {string}
*/
toString(): string
/**
* @returns {string}
*/
toHex(): string
/**
* @returns {string}
*/
toBinary(): string
/**
* @returns {string}
*/
toOctal(): string
/**
* @returns {Uint8Array}
*/
toBytes(): Uint8Array
/**
* @returns {Uint32Array}
*/
toUint32Array(): Uint32Array
/**
* @returns {BigUint64Array}
*/
toUint64Array(): BigUint64Array
free(): void;
/**
* @returns {string}
*/
toString(): string;
/**
* @returns {string}
*/
toHex(): string;
/**
* @returns {string}
*/
toBinary(): string;
/**
* @returns {string}
*/
toOctal(): string;
/**
* @returns {Uint8Array}
*/
toBytes(): Uint8Array;
/**
* @returns {Uint32Array}
*/
toUint32Array(): Uint32Array;
/**
* @returns {BigUint64Array}
*/
toUint64Array(): BigUint64Array;
}

declare interface HighwayOptions {
key?: Uint8Array
simd?: boolean
key?: Uint8Array
simd?: boolean
}

export declare const useHighway: (
options?: HighwayOptions | undefined
options?: HighwayOptions | undefined
) => Promise<{
hasher: typeof WasmHighway
new: (key: Uint8Array) => WasmHighway
hash64: (data: Uint8Array) => Hash
hash128: (data: Uint8Array) => Hash
hash256: (data: Uint8Array) => Hash
}>
hasher: typeof WasmHighway
new: (key: Uint8Array) => WasmHighway
hash64: (data: Uint8Array) => Hash
hash128: (data: Uint8Array) => Hash
hash256: (data: Uint8Array) => Hash
}>;

export declare const useSimd: () => boolean
export declare const useSimd: () => boolean;

/**
*/
declare class WasmHighway {
free(): void
/**
* @param {Uint8Array} key
* @returns {WasmHighway}
*/
// eslint-disable-next-line @typescript-eslint/no-misused-new
static new(key: Uint8Array): WasmHighway
/**
* @param {Uint8Array} key
* @param {Uint8Array} data
* @returns {Hash}
*/
static hash64(key: Uint8Array, data: Uint8Array): Hash
/**
* @param {Uint8Array} key
* @param {Uint8Array} data
* @returns {Hash}
*/
static hash128(key: Uint8Array, data: Uint8Array): Hash
/**
* @param {Uint8Array} key
* @param {Uint8Array} data
* @returns {Hash}
*/
static hash256(key: Uint8Array, data: Uint8Array): Hash
/**
* @param {Uint8Array} data
*/
append(data: Uint8Array): void
/**
* @returns {Hash}
*/
finalize64(): Hash
/**
* @returns {Hash}
*/
finalize128(): Hash
/**
* @returns {Hash}
*/
finalize256(): Hash
free(): void;
/**
* @param {Uint8Array} key
* @returns {WasmHighway}
*/
static new(key: Uint8Array): WasmHighway;
/**
* @param {Uint8Array} key
* @param {Uint8Array} data
* @returns {Hash}
*/
static hash64(key: Uint8Array, data: Uint8Array): Hash;
/**
* @param {Uint8Array} key
* @param {Uint8Array} data
* @returns {Hash}
*/
static hash128(key: Uint8Array, data: Uint8Array): Hash;
/**
* @param {Uint8Array} key
* @param {Uint8Array} data
* @returns {Hash}
*/
static hash256(key: Uint8Array, data: Uint8Array): Hash;
/**
* @param {Uint8Array} data
*/
append(data: Uint8Array): void;
/**
* @returns {Hash}
*/
finalize64(): Hash;
/**
* @returns {Hash}
*/
finalize128(): Hash;
/**
* @returns {Hash}
*/
finalize256(): Hash;
}

export {}
export { }
8 changes: 4 additions & 4 deletions dist/highway-wasm.esm.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/highway-wasm.global.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# [1.2.0](https://github.com/asonnleitner/highway-wasm/compare/v1.1.2...v1.2.0) (2022-03-01)


### Bug Fixes

* .d.ts ([6778e06](https://github.com/asonnleitner/highway-wasm/commit/6778e060720b73232339ff29e31421abd236be71))
* build ([e608759](https://github.com/asonnleitner/highway-wasm/commit/e608759c8f52b27a1130a3b48ad693482bb7bea4))
* **ci:** release ([a35a1fe](https://github.com/asonnleitner/highway-wasm/commit/a35a1fe26acfd50023063fe250575c2efe7e210c))
* **ci:** release ([c277a18](https://github.com/asonnleitner/highway-wasm/commit/c277a1858b4e202ac98a2a64e677555fda3d6c16))
* engines ([5cfe89c](https://github.com/asonnleitner/highway-wasm/commit/5cfe89c9422ae2a50e276b3b34720e4a242ceb20))
* pnpm ci ([a0424f7](https://github.com/asonnleitner/highway-wasm/commit/a0424f721cfbb4d8dfe8c744a2fdfaef2dc742d6))


### Features

* better module ([1f85e16](https://github.com/asonnleitner/highway-wasm/commit/1f85e16872fcbc40f25c1c46cf12c66fdaf17e7f))
* new highway api ([2a16c8c](https://github.com/asonnleitner/highway-wasm/commit/2a16c8c8e99792d7ed39acb7a8e8c4b392144645))

## [1.1.2](https://github.com/asonnleitner/highway-wasm/compare/v1.1.1...v1.1.2) (2022-03-01)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highway-wasm",
"version": "1.1.2",
"version": "1.2.0",
"description": "HighwayHash WASM bindings for browser and node environments",
"author": "Andreas Sonnleitner <asonnleitner@gmail.com>",
"license": "MIT",
Expand Down

0 comments on commit 201a3d0

Please sign in to comment.