Skip to content

v103

Compare
Choose a tag to compare
@ije ije released this 17 Jan 09:30
· 1173 commits to main since this release
  • Add inject argument for worker factory, this is useful if you want to importScripts in the worker, but the module worker doesn't allow you to do it.
    import workerFactory from "https://esm.sh/[email protected]?worker";
    
    const workerInject = `
    self.onmessage = (e) => {
      // variable 'E' is the xxhash-wasm module default export
      E().then(hasher => {
        self.postMessage(hasher.h64ToString(e.data));
      })
    }
    `;
    
    const worker = workerFactory(workerInject);
    worker.onmessage = (e) => {
      console.log(e.data); // 502b0c5fc4a5704c
    };
    worker.postMessage("Hello");
  • Respect ?external arg in bundle mode (close #498)
  • Add require() syntax support for dts transformer
  • Fix import maps scope is not correct by the CLI script (close #480)
  • Fix basePath doesn't take effect on redirects (close #481)
  • Fix X-TypeScript-Types header not pined for stable builds
  • Fix some bugs related to package path parsing (#487)
  • Upgrade esbuild to 0.16.17
  • Upgrade deno/std to 0.173.0

Credits

Huge thanks to @goloveychuk @ahuigo @hjaurum @kidonng