Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency mathjs to v5 #77

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 16, 2018

This PR contains the following updates:

Package Type Update Change References
mathjs dependencies major ^3.2.1 -> ^5.0.0 homepage, source

Release Notes

josdejong/mathjs

v5.1.2

Compare Source

  • Fixed a typo in the docs of parse. Thanks @​mathiasvr.
  • Fixed #​1222: a typo in the docs of subset.
  • Fixed #​1236: quantileSeq has inconsistent return.
  • Fixed #​1237: norm sometimes returning a complex number instead of
    number.
  • Upgraded dependencies (fraction.js@4.0.9)
  • Upgraded devDependencies (babel@7, karma-webpack@3.0.4,
    nyc@13.0.1, standard@12.0.0, uglify-js@3.4.9, webpack@4.17.2)

v5.1.1

Compare Source

  • Function isNumeric now recognizes more types.
  • Fixed #​1214: functions sqrt, max, min, var, std, mode, mad,
    median, and partitionSelect not neatly handling NaN inputs. In some
    cases (median, mad, and partitionSelect) this resulted in an infinite
    loop.
  • Upgraded dependencies (escape-latex@1.1.1)
  • Upgraded devDependencies (webpack@4.17.0)

v5.1.0

Compare Source

v5.0.4

Compare Source

  • Strongly improved the performance of functions factorial for numbers.
    This improves performance of functions gamma, permutation, and
    combination too. See #​1170. Thanks @​honeybar.
  • Strongly improved the performance of function reshape, thanks to a
    friend of @​honeybar.

v5.0.3

Compare Source

  • Fixed many functions (for example add and subtract) not working
    with matrices having a datatype defined.
  • Fixed #​1147: bug in format with engineering notation in outputting
    the correct number of significant figures. Thanks @​ericman314.
  • Fixed #​1162: transform functions not being cleaned up when overriding
    it by importing a factory function with the same name.
  • Fixed broken links in the documentation. Thanks @​stropitek.
  • Refactored the code of parse into a functional approach.
    Thanks @​harrysarson.
  • Changed decimal.js import to ES6. Thanks @​weinshel.

v5.0.2

Compare Source

  • Fixed #​1136: rocket trajectory example broken (since v4.0.0).
  • Fixed #​1137: simplify unnecessarily replacing implicit multiplication with
    explicit multiplication.
  • Fixed #​1146: rationalize throwing exceptions for some input with decimals.
    Thanks @​maruta.
  • Fixed #​1088: function arguments not being passed to rawArgs functions.
  • Fixed advanced example add_new_datatypes.
  • Fixed mathjs core constants not working without complex numbers.
    Thanks @​ChristopherChudzicki.
  • Fixed a broken link in the documentation on units. Thanks @​stropitek.
  • Upgraded dependencies (typed-function@1.0.4, complex.js@2.0.11).
  • Upgraded devDependencies (babel-loader@7.1.5, uglify-js@3.4.3,
    expr-eval@1.2.2, webpack@4.15.1).

v5.0.1

Compare Source

  • Improved error messaging when converting units. Thanks @​gap777.
  • Upgraded devDependencies (kerma, uglify-js, webpack).

v5.0.0

Compare Source

!!! BE CAREFUL: BREAKING CHANGES !!!

  • Implemented complex conjugate transpose math.ctranspose. See #​1097.
    Thanks @​jackschmidt.
  • Changed the behavior of A' (transpose) in the expression parser to
    calculate the complex conjugate transpose. See #​1097. Thanks @​jackschmidt.
  • Added support for complex({abs: 1, arg: 1}), and improved the docs on
    complex numbers. Thanks @​ssaket.
  • Renamed eye to identity, see #​1054.
  • Math.js code can now contain ES6. The ES6 source code is moved from lib
    to src, and lib now contains the compiled ES5 code.
  • Upgraded dependencies:
    • decimal.js from 9.0.1 to 10.0.1
    • Upgraded dev dependencies
  • Changed code style to https://standardjs.com/, run linter on npm test.
    See #​1110.
  • Dropped support for bower. Use npm or an other package manages instead.
  • Dropped support for (non-primitive) instances of Number, Boolean, and
    String from functions clone and typeof.
  • Dropped official support for IE9 (probably still works, but it's not tested).
  • Fixed #​851: More consistent behavior of sqrt, nthRoot, and pow.
    Thanks @​dakotablair.
  • Fixed #​1103: Calling toTex on node that contains derivative causing
    an exception. Thanks @​joelhoover.

v4.4.2

Compare Source

  • Drastically improved the performance of det. Thanks @​ericman314.
  • Fixed #​1065, #​1121: Fixed wrong documentation of function
    compareNatural and clarified the behavior for strings.
  • Fixed #​1122 a regression in function inv (since v4.4.1).
    Thanks @​ericman314.

v4.4.1

Compare Source

v4.4.0

Compare Source

  • Implemented functions equalText and compareText. See #​1085.

v4.3.0

Compare Source

  • Implemented matrix exponential math.expm. Thanks @​ericman314.
  • Fixed #​1101: math.js bundle not working when loading in a WebWorker.
  • Upgraded dependencies
    • complex.js from v2.0.2 to v2.0.10.
    • fraction.js from v4.0.4 to v4.0.8.
  • Upgraded devDependencies (mocha, uglify-js, webpack).

v4.2.2

Compare Source

  • Fixed calculating the Frobenius norm of complex matrices correctly,
    see #​1098. Thanks @​jackschmidt.
  • Fixed #​1076: cannot use mathjs in React VR by updating to
    escape-latex@1.0.3.

v4.2.1

Compare Source

  • Fixed dist/math.js being minified.

v4.2.0

Compare Source

  • Implemented function math.sqrtm. Thanks @​ferrolho.
  • Implemented functions math.log2, math.log1p, and math.expm1.
    Thanks @​BigFav and @​harrysarson.
  • Fixed some unit tests broken on nodejs v10.
  • Upgraded development dependencies.
  • Dropped integration testing on nodejs v4.

v4.1.2

Compare Source

  • Fixed #​1082: implemented support for unit plurals decades, centuries,
    and millennia.
  • Fixed #​1083: units decade and watt having a wrong name when stringifying.
    Thanks @​ericman314.

v4.1.1

Compare Source

  • Fixed #​1063: derivative not working when resolving a variable with unary
    minus like math.derivative('-x', 'x').

v4.1.0

Compare Source

  • Extended function math.print with support for arrays and matrices.
    Thanks @​jean-emmanuel.
  • Fixed #​1077: Serialization/deserialization to JSON with reviver not being
    supported by nodes.
  • Fixed #​1016: Extended math.typeof with support for ResultSet and nodes
    like SymbolNode.
  • Fixed #​1072: Added support for long and short prefixes for the unit bar
    (i.e. millibar and mbar).

v4.0.1

Compare Source

  • Fixed #​1062: mathjs not working on ES5 browsers like IE11 and Safari 9.3.
  • Fixed #​1061: math.unit not accepting input like 1/s.

v4.0.0

Compare Source

!!! BE CAREFUL: BREAKING CHANGES !!!

Breaking changes (see also #​682):

  • New expression compiler

    The compiler of the expression parser is replaced with one that doesn't use
    eval internally. See #​1019. This means:

    • a slightly improved performance on most browsers.

    • less risk of security exploits.

    • the code of the new compiler is easier to understand, maintain, and debug.

      Breaking change here: When using custom nodes in the expression parser,
      the syntax of _compile has changed. This is an undocumented feature though.

  • Parsed expressions

    • The class ConstantNode is changed such that it just holds a value
      instead of holding a stringified value and it's type.
      ConstantNode(valueStr, valueType) is now ConstantNode(value)
      Stringification uses math.format, which may result in differently
      formatted numeric output.

    • The constants true, false, null, undefined, NaN, Infinity,
      and uninitialized are now parsed as ConstantNodes instead of
      SymbolNodes in the expression parser. See #​833.

  • Implicit multiplication

    • Changed the behavior of implicit multiplication to have higher
      precedence than explicit multiplication and division, except in
      a number of specific cases. This gives a more natural behavior
      for implicit multiplications. For example 24h / 6h now returns 4,
      whilst 1/2 kg evaluates to 0.5 kg. Thanks @​ericman314. See: #​792.
      Detailed documentation: https://github.com/josdejong/mathjs/blob/v4/docs/expressions/syntax.md#implicit-multiplication.

    • Immediately invoking a function returned by a function like partialAdd(2)(3)
      is no longer supported, instead these expressions are evaluated as
      an implicit multiplication partialAdd(2) * (3). See #​1035.

  • String formatting

    • In function math.format, the options {exponential: {lower: number, upper: number}}
      (where lower and upper are values) are replaced with {lowerExp: number, upperExp: number}
      (where lowerExp and upperExp are exponents). See #​676. For example:

      math.format(2000, {exponential: {lower: 1e-2, upper: 1e2}})

      is now:

      math.format(2000, {lowerExp: -2, upperExp: 2})
    • In function math.format, the option notation: 'fixed' no longer rounds to
      zero digits when no precision is specified: it leaves the digits as is.
      See #​676.

  • String comparison

    Changed the behavior of relational functions (compare, equal,
    equalScalar, larger, largerEq, smaller, smallerEq, unequal)
    to compare strings by their numeric value they contain instead of
    alphabetically. This also impacts functions deepEqual, sort, min,
    max, median, and partitionSelect. Use compareNatural if you
    need to sort an array with text. See #​680.

  • Angle units

    Changed rad, deg, and grad to have short prefixes,
    and introduced radian, degree, and gradian and their plurals
    having long prefixes. See #​749.

  • Null

    • null is no longer implicitly casted to a number 0, so input like
      math.add(2, null) is no longer supported. See #​830, #​353.

    • Dropped constant uninitialized, which was used to initialize
      leave new entries undefined when resizing a matrix is removed.
      Use undefined instead to indicate entries that are not explicitly
      set. See #​833.

  • New typed-function library

    • The typed-function library used to check the input types
      of functions is completely rewritten and doesn't use eval under
      the hood anymore. This means a reduced security risk, and easier
      to debug code. The API is the same, but error messages may differ
      a bit. Performance is comparable but may differ in specific
      use cases and browsers.

Non breaking changes:

  • Thanks to the new expression compiler and typed-function implementation,
    mathjs doesn't use JavaScript's eval anymore under the hood.
    This allows using mathjs in environments with security restrictions.
    See #​401.
  • Implemented additional methods isUnary() and isBinary() on
    OperatorNode. See #​1025.
  • Improved error messages for statistical functions.
  • Upgraded devDependencies.
  • Fixed #​1014: derivative silently dropping additional arguments
    from operator nodes with more than two arguments.

Renovate configuration

📅 Schedule: No schedule defined.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


This PR has been generated by Renovate Bot. View repository job log here.

@coveralls
Copy link

coveralls commented Jun 16, 2018

Coverage Status

Coverage remained the same at 91.667% when pulling 0e8a486 on renovate/mathjs-5.x into d28cac9 on master.

@lgaticaq lgaticaq closed this Oct 2, 2018
@lgaticaq lgaticaq deleted the renovate/mathjs-5.x branch October 2, 2018 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants