Commit graph

3 commits

Author SHA1 Message Date
9a35c5bb50 fix a memory leak bug and add tests 2023-08-15 14:30:13 -07:00
f7bbb92d85 change up api, and bump down version
the api now requires you to call an async function initWasm to make the
functions work instead of using top level await. i also optimized the
wasm module to have O3 and fast-math (which the original blurhash
makefile had and the results do seem to be the same with the javascript
blurhash).

I also gave the wasm instance functions inside typescript types and i
fixed a bug where i didnt free the pointers in order so if you called
decode too many times, you will run out of memory.
2023-08-14 19:24:20 -07:00
799a85c75d create a wasm js wrapper for blurhash 2023-08-12 02:14:14 -07:00