Skip to content

v115

Compare
Choose a tag to compare
@ije ije released this 12 Apr 09:48
· 1021 commits to main since this release

in v115, we added ?module query to allow you import .wasm as a WebAssembly.Module Object:

import wasm from "https://esm.sh/@dqbd/[email protected]/tiktoken_bg.wasm?module"

const { exports } = WebAssembly.instantiate(wasm, imports)

Changelog:

  • Return JavaScript module for ?module query with .wasm files
  • Fix types transformer (close #581)
  • Fix incorrect named import of cjs modules (close #583)
  • Fix submodule path resolving (close #584)
  • Upgrade @types/node to 18