Skip to content

Releases: patrickroberts/complex

7.1.1

Choose a tag to compare

@patrickroberts patrickroberts released this 11 Jan 02:45

Removed invariant check from property accessors.

7.1.0

Choose a tag to compare

@patrickroberts patrickroberts released this 02 Jan 09:48

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

7.0.1

Choose a tag to compare

@patrickroberts patrickroberts released this 01 Jan 00:53

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

7.0.0

Choose a tag to compare

@patrickroberts patrickroberts released this 28 Dec 03:01

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 });