This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
fix(deps): update dependency mathjs to v6 #195
Merged
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:
^5.5.0
->^6.0.0
Release Notes
josdejong/mathjs
v6.0.1
Compare Source
evaluate
andparse
missing in generated docs.v6.0.0
Compare Source
!!! BE CAREFUL: BREAKING CHANGES !!!
Most notable changes
Full support for ES6 modules. Support for tree-shaking out of the box.
Load all functions:
Use a few functions:
Load all functions with custom configuration:
Load a few functions with custom configuration:
Support for lightweight, number-only implementations of all functions:
New dependency injection solution used under the hood.
Breaking changes
Node 6 is no longer supported.
Functions
config
andimport
are not available anymore in the globalcontext:
Instead, create your own mathjs instance and pass config and imports
there:
Renamed function
typeof
totypeOf
,var
tovariance
,and
eval
toevaluate
. (the old function names are reserved keywordswhich can not be used as a variable name).
Deprecated the
Matrix.storage
function. Usemath.matrix
instead to createa matrix.
Deprecated function
math.expression.parse
, usemath.parse
instead.Was used before for example to customize supported characters by replacing
math.parse.isAlpha
.Moved all classes like
math.type.Unit
andmath.expression.Parser
tomath.Unit
andmath.Parser
respectively.Fixed #1428: transform iterating over replaced nodes. New behavior
is that it stops iterating when a node is replaced.
Dropped support for renaming factory functions when importing them.
Dropped fake BigNumber support of function
erf
.Removed all index.js files used to load specific functions instead of all, like:
Individual functions are now loaded simply like:
To set a specific configuration on the functions:
See example
advanced/custom_loading.js
.Updated the values of all physical units to their latest official values.
See #1529. Thanks @ericman314.
Non breaking changes
t
,tonne
,bel
,decibel
,dB
, and prefixesfor
candela
. Thanks @mcvladthegoat.epsilon
setting being applied globally to Complex numbers.math.simplify('add(2, 3)')
throwing an error.lowerExp
andupperExp
and after that rounded the value instead of the other way around.
'use strict'
in every file, not needed anymore.Renovate configuration
📅 Schedule: "after 9am and before 3pm" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is stale, 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.