Releases: patrickroberts/complex
Releases · patrickroberts/complex
7.1.1
7.1.0
Optimized compiled functions.
Compiled function bindings parameter now optional; default is {}.
7.0.1
Fixes bug preventing exported types for parse and compile by rewriting statements to avoid repetition of default in entry file.
7.0.0
Complete rewrite of complex math library using TDD.
Functions removed:
andequalsorsalsarshlshrxorceilcubefloornegnotrandomroundsignsquare
Functions planned to be re-implemented:
ceilfloorroundrandom
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 });