The major change here comes in the form of web/worker.js which uses the Comlink library to move our WASM loading / initialization and WebWorker threadpool initialization off the main thread. Background context and further details can be read here (ie. why do we have to use WebWorkers?).
web/example/main.js gives an example of how web/worker.js loaded and utilized.
Minor changes
Update web tests (all passing)
Add polyfill to support Firefox (not yet working)
Add comlink assets
Update web/README.md with info on WebWorkers, WASM and Comlink
Update ssb-verify-signatures dependency to use the newly-merged 1.0.1 from Sunrise Choir repo 🎉
I'm holding-off on updating the root README.md (oriented towards users of ssb-validate2-rsjs) until we have clarity on how we want to handle the API(s).
Move WASM off the main thread
The major change here comes in the form of
web/worker.js
which uses the Comlink library to move our WASM loading / initialization and WebWorker threadpool initialization off the main thread. Background context and further details can be read here (ie. why do we have to use WebWorkers?).web/example/main.js
gives an example of howweb/worker.js
loaded and utilized.Minor changes
web/README.md
with info on WebWorkers, WASM and Comlinkssb-verify-signatures
dependency to use the newly-merged1.0.1
from Sunrise Choir repo 🎉I'm holding-off on updating the root
README.md
(oriented towards users ofssb-validate2-rsjs
) until we have clarity on how we want to handle the API(s).