Skip to content

Only support ES modules

Choose a tag to compare

@davidbkemp davidbkemp released this 05 Apr 07:55
· 21 commits to master since this release

For this release:

  • the javascript can now be used directly in modern browsers and Node version 15.
  • no longer support CommonJS modules. To use v2.0.0 you need to import the code as an ES module using import. See the README.md for more details on usage.
  • moves static Complex constants ZERO, ONE, SQRT2, and SQRT1_2 from Complex to the top level Qubits object.
    This is because Safari does not yet support static constant class declarations. Note after making this release I have figured out a work around. Perhaps they can be restored in a subsequent release.