This repository was archived by the owner on Jul 13, 2023. It is now read-only.
fix(deps): update dependency mathjs to v11#679
Merged
gcf-merge-on-green[bot] merged 1 commit intoJul 25, 2022
Conversation
alexander-fenster
approved these changes
Jul 25, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
^10.0.0->^11.0.0Release Notes
josdejong/mathjs
v11.0.1Compare Source
simplifyConstantandsimplifyCorenot having a return type defined.
v11.0.0Compare Source
!!! BE CAREFUL: BREAKING CHANGES !!!
Breaking changes:
typed-function@3, see josdejong/typed-function/HISTORY.md. Thanks @gwhitney. Most importantly:any.thisvariable is no longer bound to the typed function itself.typed.types,typed.conversions, andtyped.ignorehave been removed.
typed.referTo,typed.referToSelf,typed.addTypes,typed.addConversions.when having a division followed by an implicit multiplication, the division
gets higher precedence over the implicit multiplication when (a) the
numerator is a constant with optionally a prefix operator (
-,+,~),and (b) the denominator is a constant. For example: formerly
-1 / 2 xwasinterpreted as
-1 / (2 * x)and now it is interpreted as(-1 / 2) * x.Thanks @gwhitney.
square, sqrt, cube, and cbrt to prevent confusion with standard matrix
functions (#2440, #2465). Instead, use
math.map(matrix, fn).Thanks @gwhitney.
add(2, x)will now be simplified into2 + x(#2415, #2466).Thanks @gwhitney.
numbertostring(#2482).Thanks @gwhitney.
diffreturn an empty matrix when the input containsonly one element (#2422).
simplifyCorelogic (#2490, #2484, #2459).The function
simplifyCorewill no longer (partially) merge constants, thatbehavior has been moved to
simplifyConstant. The combination ofsimplifyConstantandsimplifyCoreis still close to the old behaviorof
simplifyCore, but there are some differences. To reproduce the samebehavior as the old
simplifyCore, you can usemath.simplify(expr, [math.simplifyCore, math.simplifyConstant]).Thanks to the refactoring,
simplifyis more thorough in reducing constants.Thanks @gwhitney.
(#2485, #2474). For example:
math.chain(3).max(4, 2).done()will now throwan error rather than return
4, because the rest parameter ofmath.max(...number)has been split between the contents of the chain andthe arguments to the max call. Thanks @gwhitney.
typeOfnow returnsfunction(lowercase) for a function insteadof
Function(#2560). Thanks @gwhitney.Non-breaking changes:
simplify.Thanks @laureen-m and @mattvague.
createUnit. Thanks @egziko.epsilonwhen using BigNumbers.
getandsetin the docs.math.rationalizein the docs (#2616). Thanks @nukisman.count(#2622). Thanks @Hansuku.multiply(#2623). Thanks @Windrill.Configuration
📅 Schedule: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.