Skip to content

0.2.0

Latest

Choose a tag to compare

@programingjd programingjd released this 21 Dec 01:01

Breaking change:

  • worker functions now transfer the original array to the worker (making the original invalid) and transfer it back with the result.

Scripts:

  • zstd.mjs: exports both zstd and unzstd functions; blocking version.
  • zstd_enc.mjs: exports only the zstd function; blocking version.
  • zstd_dec.mjs: exports only the unzstd function; blocking version.
  • zstd_worker.mjs: exports both zstd and unzstd functions; async version. zstd_worker_script.mjs and zstd.mjs are used by the web worker. zstd_worker_script.js and zstd_for_importScripts.js are variants for browsers that don't support module web workers.
  • zstd_enc_worker.mjs: exports the zstd function; async version. zstd_enc_worker_script.mjs and zstd_enc.mjs are used by the web worker. zstd_enc_worker_script.js and zstd_enc_for_importScripts.js are variants for browsers that don't support module web workers.
  • zstd_dec_worker.mjs: exports the unzstd function; async version. zstd_dec_worker_script.mjs and zstd_dec.mjs are used by the web worker. zstd_dec_worker_script.js and zstd_dec_for_importScripts.js are variants for browsers that don't support module web workers.