Skip to content

Commit

Permalink
v0.37.0
Browse files Browse the repository at this point in the history
Release notes:

- Switch purely to module workers.
  - As of [Firefox 114](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/114), all modern JavaScript browsers and runtimes with worker support are now able to instantiate module workers. This is important for performance, as it significantly improves worker loading for `cubing.js` (requiring ⅓ as much code as before): #214
  - Due to the heavy complexity and maintenance burden of alternatives to module workers, `cubing.js` is dropping support for "classic" workers and there is no longer a "catch-all" fallback when worker instantiation fails. In removing this fallback, have carefully made sure `cubing.js` scrambles will continue work out of the box with all modern browsers, as well as the main runtimes that support web worker (`node` and `deno`). We have also tested compatibility against major bundlers. However, if you are passing `cubing.js` through your own choice of bundler, then it must correctly bundle the worker "entry file" using one of the following:
    - [`import.meta.resolve(…)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve) — this is the only "officially supported" way that we plan to support indefinitely, and the only one that will work without showing a warning in the JavaScript console.
    - One of two variants of using `new URL(…, import.meta.url)` as an alternative to `import.meta.resolve(…)`.
    - Using this workaround for `esbuild`: evanw/esbuild#312 (comment)
  • Loading branch information
lgarron committed Jun 6, 2023
1 parent 328c61f commit 4e0c3dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cubing",
"version": "0.37.0-pre2",
"version": "0.37.0",
"description": "A collection of JavaScript cubing libraries.",
"author": "The js.cubing.net team",
"type": "module",
Expand Down

0 comments on commit 4e0c3dc

Please sign in to comment.