fix(deps): update dependency mathjs to v5 #77
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.2.1
->^5.0.0
Release Notes
josdejong/mathjs
v5.1.2
Compare Source
parse
. Thanks @mathiasvr.subset
.quantileSeq
has inconsistent return.number.
fraction.js@4.0.9
)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
isNumeric
now recognizes more types.sqrt
,max
,min
,var
,std
,mode
,mad
,median
, andpartitionSelect
not neatly handlingNaN
inputs. In somecases (
median
,mad
, andpartitionSelect
) this resulted in an infiniteloop.
escape-latex@1.1.1
)webpack@4.17.0
)v5.1.0
Compare Source
Thanks @jean-emmanuel.
getMatrixDataType
. Thanks @JasonShin.options
argument insimplify
. Thanks @paulobuchsbaum.rationalize
, see #1173. Thanks @paulobuchsbaum.v5.0.4
Compare Source
factorial
for numbers.This improves performance of functions
gamma
,permutation
, andcombination
too. See #1170. Thanks @honeybar.reshape
, thanks to afriend of @honeybar.
v5.0.3
Compare Source
add
andsubtract
) not workingwith matrices having a
datatype
defined.format
withengineering
notation in outputtingthe correct number of significant figures. Thanks @ericman314.
it by importing a factory function with the same name.
parse
into a functional approach.Thanks @harrysarson.
decimal.js
import to ES6. Thanks @weinshel.v5.0.2
Compare Source
simplify
unnecessarily replacing implicit multiplication withexplicit multiplication.
rationalize
throwing exceptions for some input with decimals.Thanks @maruta.
rawArgs
functions.add_new_datatypes
.Thanks @ChristopherChudzicki.
typed-function@1.0.4
,complex.js@2.0.11
).babel-loader@7.1.5
,uglify-js@3.4.3
,expr-eval@1.2.2
,webpack@4.15.1
).v5.0.1
Compare Source
kerma
,uglify-js
,webpack
).v5.0.0
Compare Source
!!! BE CAREFUL: BREAKING CHANGES !!!
math.ctranspose
. See #1097.Thanks @jackschmidt.
A'
(transpose) in the expression parser tocalculate the complex conjugate transpose. See #1097. Thanks @jackschmidt.
complex({abs: 1, arg: 1})
, and improved the docs oncomplex numbers. Thanks @ssaket.
eye
toidentity
, see #1054.lib
to
src
, andlib
now contains the compiled ES5 code.decimal.js
from9.0.1
to10.0.1
npm test
.See #1110.
Number
,Boolean
, andString
from functionsclone
andtypeof
.Thanks @dakotablair.
toTex
on node that containsderivative
causingan exception. Thanks @joelhoover.
v4.4.2
Compare Source
det
. Thanks @ericman314.compareNatural
and clarified the behavior for strings.inv
(sincev4.4.1
).Thanks @ericman314.
v4.4.1
Compare Source
inv
when dealing with values close to zero.Thanks @ericman314.
v4.4.0
Compare Source
equalText
andcompareText
. See #1085.v4.3.0
Compare Source
math.expm
. Thanks @ericman314.complex.js
fromv2.0.2
tov2.0.10
.fraction.js
fromv4.0.4
tov4.0.8
.mocha
,uglify-js
,webpack
).v4.2.2
Compare Source
see #1098. Thanks @jackschmidt.
escape-latex@1.0.3
.v4.2.1
Compare Source
dist/math.js
being minified.v4.2.0
Compare Source
math.sqrtm
. Thanks @ferrolho.math.log2
,math.log1p
, andmath.expm1
.Thanks @BigFav and @harrysarson.
v4.1.2
Compare Source
decades
,centuries
,and
millennia
.decade
andwatt
having a wrong name when stringifying.Thanks @ericman314.
v4.1.1
Compare Source
minus like
math.derivative('-x', 'x')
.v4.1.0
Compare Source
math.print
with support for arrays and matrices.Thanks @jean-emmanuel.
supported by nodes.
math.typeof
with support forResultSet
and nodeslike
SymbolNode
.bar
(i.e.
millibar
andmbar
).v4.0.1
Compare Source
math.unit
not accepting input like1/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 valueinstead of holding a stringified value and it's type.
ConstantNode(valueStr, valueType
) is nowConstantNode(value)
Stringification uses
math.format
, which may result in differentlyformatted numeric output.
The constants
true
,false
,null
,undefined
,NaN
,Infinity
,and
uninitialized
are now parsed as ConstantNodes instead ofSymbolNodes 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 returns4
,whilst
1/2 kg
evaluates to0.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
andupper
are values) are replaced with{lowerExp: number, upperExp: number}
(where
lowerExp
andupperExp
are exponents). See #676. For example:is now:
In function
math.format
, the optionnotation: 'fixed'
no longer rounds tozero 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
, andpartitionSelect
. UsecompareNatural
if youneed to sort an array with text. See #680.
Angle units
Changed
rad
,deg
, andgrad
to have short prefixes,and introduced
radian
,degree
, andgradian
and their pluralshaving long prefixes. See #749.
Null
null
is no longer implicitly casted to a number0
, so input likemath.add(2, null)
is no longer supported. See #830, #353.Dropped constant
uninitialized
, which was used to initializeleave new entries undefined when resizing a matrix is removed.
Use
undefined
instead to indicate entries that are not explicitlyset. See #833.
New typed-function library
typed-function
library used to check the input typesof functions is completely rewritten and doesn't use
eval
underthe 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:
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.
isUnary()
andisBinary()
onOperatorNode
. See #1025.derivative
silently dropping additional argumentsfrom 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.