fix(deps): update dependency mathjs to v4 - autoclosed #65
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 Pull Request updates dependency mathjs from
^3.2.1
to^4.0.0
Release Notes
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: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.
This PR has been generated by Renovate Bot.