Skip to content

Releases: patrickroberts/complex

7.1.1

11 Jan 02:45
Compare
Choose a tag to compare

Removed invariant check from property accessors.

7.1.0

02 Jan 09:48
Compare
Choose a tag to compare

Optimized compiled functions.
Compiled function bindings parameter now optional; default is {}.

7.0.1

01 Jan 00:53
Compare
Choose a tag to compare

Fixes bug preventing exported types for parse and compile by rewriting statements to avoid repetition of default in entry file.

7.0.0

28 Dec 03:01
Compare
Choose a tag to compare

Complete rewrite of complex math library using TDD.

Functions removed:

  • and
  • equals
  • or
  • sal
  • sar
  • shl
  • shr
  • xor
  • ceil
  • cube
  • floor
  • neg
  • not
  • random
  • round
  • sign
  • square

Functions planned to be re-implemented:

  • ceil
  • floor
  • round
  • random

Breaking changes:
compile no longer accepts a reviver function. Return value must manually be wrapped with a reviver if necessary.

// before
import Complex from 'complex-js';
const f = Complex.compile('a+b', (a, b) => ({ a, b }));
f(Complex.E, Complex.I);

// after
import { compile, E, I } from 'complex-js';
const f = compile('a+b');
f({ a: E, b: I });