blindern / billett

Billettsystemet til UKA pƄ Blindern
https://billett.blindernuka.no
MIT License
3 stars 0 forks source link

Update dependency mathjs to v13 #118

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mathjs (source) 10.6.4 -> 13.0.2 age adoption passing confidence

Release Notes

josdejong/mathjs (mathjs) ### [`v13.0.2`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2024-07-04-1302) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v13.0.1...v13.0.2) - Fix an error in the type definitions of `quantileSeq` ([#​3223](https://togithub.com/josdejong/mathjs/issues/3223)). Thanks [@​domdomegg](https://togithub.com/domdomegg). ### [`v13.0.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2024-06-28-1301) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v13.0.0...v13.0.1) - Fix: [#​3227](https://togithub.com/josdejong/mathjs/issues/3227) generated bundle containing `catch` blocks without parameters. - Fix: [#​2348](https://togithub.com/josdejong/mathjs/issues/2348) update type definitions of the `Parser` methods ([#​3226](https://togithub.com/josdejong/mathjs/issues/3226)). Thanks [@​orelbn](https://togithub.com/orelbn). ### [`v13.0.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2024-05-31-1300) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.4.3...v13.0.0) Breaking changes: - Change `isZero`, `isPositive`, and `isNegative` to respect `config.epsilon` ([#​3139](https://togithub.com/josdejong/mathjs/issues/3139), [#​2838](https://togithub.com/josdejong/mathjs/issues/2838)). - Change the behavior of the internal `nearlyEqual` to align with Python and Julia ([#​3152](https://togithub.com/josdejong/mathjs/issues/3152), [#​2838](https://togithub.com/josdejong/mathjs/issues/2838)) - Upgrade to `fraction.js@4.3.7`, [https://github.com/rawify/Fraction.js/issues/68](https://togithub.com/rawify/Fraction.js/issues/68)s/68. - Dropped support for JavaScript engines that do not fully support ES6 or `bigint`, or are not actively maintained. Non-breaking changes: - Implemented support for `bigint` ([#​3207](https://togithub.com/josdejong/mathjs/issues/3207), [#​3207](https://togithub.com/josdejong/mathjs/issues/3207)) - Implemented a new config option `config.numberFallback` needed for `bigint` ([#​3207](https://togithub.com/josdejong/mathjs/issues/3207)). - Internal: refactored tooling to ES modules and upgraded all devDependencies. ### [`v12.4.3`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2024-05-31-1243) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.4.2...v12.4.3) - Fix: serialization of Units without a value, see [#​1240](https://togithub.com/josdejong/mathjs/issues/1240). - Fix: outdated, incorrect documentation about the order of precedence for operator modulus `%`. See [#​3189](https://togithub.com/josdejong/mathjs/issues/3189). - Fix: [#​3197](https://togithub.com/josdejong/mathjs/issues/3197) improve `quantileSeq` type definitions ([#​3198](https://togithub.com/josdejong/mathjs/issues/3198)). Thanks [@​domdomegg](https://togithub.com/domdomegg). ### [`v12.4.2`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#unpublished-changes-since-1242) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.4.1...v12.4.2) - Fix: serialization of Units without a value, see [#​1240](https://togithub.com/josdejong/mathjs/issues/1240). - Fix: outdated, incorrect documentation about the order of precedence for operator modulus `%`. See [#​3189](https://togithub.com/josdejong/mathjs/issues/3189). ### [`v12.4.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2024-03-13-1241) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.4.0...v12.4.1) - Docs: implement an interactive version of the Lorenz example, and show the chart full screen ([#​3151](https://togithub.com/josdejong/mathjs/issues/3151)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix [#​3172](https://togithub.com/josdejong/mathjs/issues/3172): simplify `"true and true"`. - Fix [#​3163](https://togithub.com/josdejong/mathjs/issues/3163): `toTex` wrongly returning `Infinity` for large BigNumbers. - Fix [#​3162](https://togithub.com/josdejong/mathjs/issues/3162): add license information about CSParse ([#​3164](https://togithub.com/josdejong/mathjs/issues/3164)). - Fix [#​3175](https://togithub.com/josdejong/mathjs/issues/3175): cannot delete units using `math.Unit.deleteUnit`. - Fix: faster startup time of the CLI and REPL by loading the bundle. - Fix: remove using polyfill.io inside the example `pretty_printing_with_mathjax.html` ([#​3167](https://togithub.com/josdejong/mathjs/issues/3167)). Thanks [@​SukkaW](https://togithub.com/SukkaW). ### [`v12.4.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#unpublished-changes-since-1240) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.3.2...v12.4.0) - Fix [#​3163](https://togithub.com/josdejong/mathjs/issues/3163): `toTex` wrongly returning `Infinity` for large BigNumbers. - Fix [#​3162](https://togithub.com/josdejong/mathjs/issues/3162): add license information about CSParse ([#​3164](https://togithub.com/josdejong/mathjs/issues/3164)). ### [`v12.3.2`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#Unpublished-changes-since-1232) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.3.1...v12.3.2) - Docs: describe method `getAllAsMap` in the Parser docs ([#​3158](https://togithub.com/josdejong/mathjs/issues/3158), [#​3157](https://togithub.com/josdejong/mathjs/issues/3157)). Thanks [@​dvd101x](https://togithub.com/dvd101x). ### [`v12.3.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2024-02-01-1231) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.3.0...v12.3.1) - Improved the typings of the arguments of `ArrayNode`, `FunctionNode`, `IndexNode`, `OperatorNode`, and `RelationalNode` ([#​3123](https://togithub.com/josdejong/mathjs/issues/3123)). Thanks [@​sylee957](https://togithub.com/sylee957). - Added a fully featured code editor example with CodeMirror and Katex ([#​3027](https://togithub.com/josdejong/mathjs/issues/3027)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix: [#​3114](https://togithub.com/josdejong/mathjs/issues/3114) build warnings related to a number of wrong `/* #__PURE__ */` annotations. - Fix: [#​3142](https://togithub.com/josdejong/mathjs/issues/3142) support BigNumber values for the options of function `format`: `precision`, `wordSize`, `lowerExp`, `upperExp`. Support BigNumber values for the option `wordSize` in the functions `hex`, `bin`, and `oct`. - Fix: [#​3125](https://togithub.com/josdejong/mathjs/issues/3125) type definitions of function `hypot` ([#​3144](https://togithub.com/josdejong/mathjs/issues/3144)). Thanks [@​silentmissile](https://togithub.com/silentmissile). - Fix: [#​3141](https://togithub.com/josdejong/mathjs/issues/3141) `help(config)` altering the actual `config` when evaluating the examples. - Docs: [#​3145](https://togithub.com/josdejong/mathjs/issues/3145) fix documentation about REPL, it does require a build step nowadays. ### [`v12.3.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#unpublished-changes-since-1230) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.2.1...v12.3.0) - Improved the typings of the arguments of `ArrayNode`, `FunctionNode`, `IndexNode`, `OperatorNode`, and `RelationalNode` ([#​3123](https://togithub.com/josdejong/mathjs/issues/3123)). Thanks [@​sylee957](https://togithub.com/sylee957). - Added a fully featured code editor example with CodeMirror and Katex ([#​3027](https://togithub.com/josdejong/mathjs/issues/3027)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix: [#​3114](https://togithub.com/josdejong/mathjs/issues/3114) build warnings related to a number of wrong `/* #__PURE__ */` annotations. ### [`v12.2.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-12-20-1221) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.2.0...v12.2.1) - Fix [#​3109](https://togithub.com/josdejong/mathjs/issues/3109): method `Node.toHTML` not accepting a custom `handler`. ### [`v12.2.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-12-08-1220) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.1.0...v12.2.0) - Feat: lazy evaluation of operators `and`, `or`, `&`, `|` ([#​3090](https://togithub.com/josdejong/mathjs/issues/3090), [#​3101](https://togithub.com/josdejong/mathjs/issues/3101), [#​2766](https://togithub.com/josdejong/mathjs/issues/2766)). Thanks [@​smith120bh](https://togithub.com/smith120bh). - Fix: passing a 4th argument with a scope to raw functions. - Fix: [#​3096](https://togithub.com/josdejong/mathjs/issues/3096) embedded docs of eigs throwing an error. ### [`v12.1.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#unpublished-changes-since-1210) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v12.0.0...v12.1.0) - Fix: [#​3096](https://togithub.com/josdejong/mathjs/issues/3096) embedded docs of eigs throwing an error. ### [`v12.0.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-10-26-1200) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.12.0...v12.0.0) Breaking changes: - Fix [#​2879](https://togithub.com/josdejong/mathjs/issues/2879), [#​2927](https://togithub.com/josdejong/mathjs/issues/2927), [#​3014](https://togithub.com/josdejong/mathjs/issues/3014): change the confusing interface of `eigs` ([#​3037](https://togithub.com/josdejong/mathjs/issues/3037)), thanks [@​gwhitney](https://togithub.com/gwhitney). Before, functions `eigs` returned an object: { values: MathCollection; vectors: MathCollection } where `vectors` was a 2d matrix of which the columns contained the vectors. This is changed to `eigs` returning an object: { values: MathCollection eigenvectors: Array<{ value: number | BigNumber vector: MathCollection }> } Where `eigenvectors` is an array containing an object with the corresponding eigenvalue and vector. - Refactored the TypeScript type definitions to make them work with a `NodeNext` module resolution ([#​3079](https://togithub.com/josdejong/mathjs/issues/3079), [#​2919](https://togithub.com/josdejong/mathjs/issues/2919)). - Type `MathJsStatic` is renamed to `MathJsInstance`. - Type `FactoryDependencies` is deprecated, use `MathJsFactory` instead, and import dependency maps directly from the library. - Change the assignment operator of `.toTex()` output from `:=` to `=` (see [#​2980](https://togithub.com/josdejong/mathjs/issues/2980), [#​2987](https://togithub.com/josdejong/mathjs/issues/2987)). - Drop official support for Node.js 14 and 16. Features: - Function `eigs` now has an option to turn off calculation of eigenvectors ([#​3057](https://togithub.com/josdejong/mathjs/issues/3057), [#​2180](https://togithub.com/josdejong/mathjs/issues/2180)). Thanks [@​gwhitney](https://togithub.com/gwhitney). Fixes: - Find eigenvectors of defective matrices ([#​3037](https://togithub.com/josdejong/mathjs/issues/3037)). Thanks [@​gwhitney](https://togithub.com/gwhitney). ### [`v11.12.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-10-26-11120) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.11.2...v11.12.0) - Implemented function `subtractScalar` ([#​3081](https://togithub.com/josdejong/mathjs/issues/3081), [#​2643](https://togithub.com/josdejong/mathjs/issues/2643)), thanks [@​vrushaket](https://togithub.com/vrushaket). - Fix [#​3073](https://togithub.com/josdejong/mathjs/issues/3073): function format not escaping control characters and double quotes ([#​3082](https://togithub.com/josdejong/mathjs/issues/3082)). - Fix: function `clone` not throwing an error when passing an unsupported type like a function. - Fix: [#​2960](https://togithub.com/josdejong/mathjs/issues/2960) add type definition of function `symbolicEqual` ([#​3035](https://togithub.com/josdejong/mathjs/issues/3035)), thanks [@​juancodeaudio](https://togithub.com/juancodeaudio). ### [`v11.11.2`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-10-11-11112) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.11.1...v11.11.2) - Fix [#​3025](https://togithub.com/josdejong/mathjs/issues/3025): improve handling of matrices and error handling in function `corr` ([#​3030](https://togithub.com/josdejong/mathjs/issues/3030)). Thanks [@​vrushaket](https://togithub.com/vrushaket). - Fix [#​3074](https://togithub.com/josdejong/mathjs/issues/3074): improve error message when using function `max` in `derivative`. - Fix [#​3073](https://togithub.com/josdejong/mathjs/issues/3073): fix parsing quotes inside a string. - Fix [#​2027](https://togithub.com/josdejong/mathjs/issues/2027): cannot use named operators like `to` or `mod` as property name. ### [`v11.11.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-09-20-11111) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.11.0...v11.11.1) - Fix [#​2989](https://togithub.com/josdejong/mathjs/issues/2989): use one-based indices in `print` in the parser ([#​3009](https://togithub.com/josdejong/mathjs/issues/3009)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix [#​2936](https://togithub.com/josdejong/mathjs/issues/2936): `mod` sometimes giving wrong results due to internal round-off errors ([#​3011](https://togithub.com/josdejong/mathjs/issues/3011)). Thanks [@​praisennamonu1](https://togithub.com/praisennamonu1). - Internal refactor of `quantileSeq`, and fixed the embedded help ([#​3003](https://togithub.com/josdejong/mathjs/issues/3003)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Updated dependencies and devDependencies. ### [`v11.11.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-09-05-11110) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.10.1...v11.11.0) - Implement function `corr` to calculate the correlation between two matrices ([#​3015](https://togithub.com/josdejong/mathjs/issues/3015), [#​2624](https://togithub.com/josdejong/mathjs/issues/2624)). Thanks [@​vrushaket](https://togithub.com/vrushaket). - Lock `fraction.js` at version `4.3.4` for now, see [#​3024](https://togithub.com/josdejong/mathjs/issues/3024), 3022, [https://github.com/rawify/Fraction.js/issues/68](https://togithub.com/rawify/Fraction.js/issues/68)s/68. ### [`v11.10.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-08-31-11101) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.10.0...v11.10.1) - Upgrade to `fraction.js@4.3.4`, see [#​3022](https://togithub.com/josdejong/mathjs/issues/3022). - Fix [#​3020](https://togithub.com/josdejong/mathjs/issues/3020): `lruQueue` using the global `hasOwnProperty` which may be polluted. - Add support for prefixes for the unit `erg`, and restrict prefixes of the unit `joule` to only long prefixes like `kilo` and no short prefixes like `k` ([#​3019](https://togithub.com/josdejong/mathjs/issues/3019)). Thanks [@​costerwi](https://togithub.com/costerwi). - Add a new browser example `examples/browser/lorenz.html` that uses `solveODE` and plots the result in a chart ([#​3018](https://togithub.com/josdejong/mathjs/issues/3018)). Thanks [@​dvd101x](https://togithub.com/dvd101x). ### [`v11.10.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-08-23-11100) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.9.1...v11.10.0) - Extend function `quantileSeq` with support for a `dimension` ([#​3002](https://togithub.com/josdejong/mathjs/issues/3002)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Implement [#​2735](https://togithub.com/josdejong/mathjs/issues/2735): Support indexing with an array of booleans, for example `a[[true, false, true]]` and `a[a > 2]` ([#​2994](https://togithub.com/josdejong/mathjs/issues/2994)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Implement function `zeta` ([#​2950](https://togithub.com/josdejong/mathjs/issues/2950), [#​2975](https://togithub.com/josdejong/mathjs/issues/2975), [#​2904](https://togithub.com/josdejong/mathjs/issues/2904)). Thanks [@​Bobingstern](https://togithub.com/Bobingstern). - Fix [#​2990](https://togithub.com/josdejong/mathjs/issues/2990): `DenseMatrix` can mutate input arrays ([#​2991](https://togithub.com/josdejong/mathjs/issues/2991)). ### [`v11.9.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-07-24-1191) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.9.0...v11.9.1) - Fix a security vulnerability in `FunctionNode` and `SymbolNode` allowing arbitrary code execution via `math.evaluate`. Thanks Harry Chen. - Fix [#​3001](https://togithub.com/josdejong/mathjs/issues/3001): mathjs bundle containing `new Function(...)` (CSP issue). ### [`v11.9.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-07-19-1190) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.8.2...v11.9.0) - Implement function `solveODE` ([#​2958](https://togithub.com/josdejong/mathjs/issues/2958)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Implement functions `zpk2tf` and `freqz` ([#​2988](https://togithub.com/josdejong/mathjs/issues/2988), [#​2969](https://togithub.com/josdejong/mathjs/issues/2969)). Thanks [@​alykhaled](https://togithub.com/alykhaled). - Implement support for units in function `range` ([#​2997](https://togithub.com/josdejong/mathjs/issues/2997)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix [#​2974](https://togithub.com/josdejong/mathjs/issues/2974): `simplify` puts plus and minus signs next to each other ([#​2981](https://togithub.com/josdejong/mathjs/issues/2981)). Thanks [@​MaybePixem](https://togithub.com/MaybePixem). - Fix [#​2973](https://togithub.com/josdejong/mathjs/issues/2973): fixes and improvements in the embedded docs ([#​2976](https://togithub.com/josdejong/mathjs/issues/2976)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix [#​2996](https://togithub.com/josdejong/mathjs/issues/2996): two errors in the examples in the documentation about Expression trees. - Fix round-off errors near zero when converting temperatures ([#​2962](https://togithub.com/josdejong/mathjs/issues/2962)). Thanks [@​costerwi](https://togithub.com/costerwi). - Refactored function `range`, reducing the amount of code ([#​2995](https://togithub.com/josdejong/mathjs/issues/2995)). Thanks [@​dvd101x](https://togithub.com/dvd101x). ### [`v11.8.2`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-06-20-1182) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.8.1...v11.8.2) - Fix [#​2971](https://togithub.com/josdejong/mathjs/issues/2971): improve typings of statistics functions `min`, `max`, `mean`, `median`, `mode`, `std`, `sum`, `prod`, `variance`. Fixes a regression introduced in v11.8.1. - Fix [#​2972](https://togithub.com/josdejong/mathjs/issues/2972): type definitions of `Unit.divide(Unit)` have a wrong return type. ### [`v11.8.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-06-13-1181) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.8.0...v11.8.1) - Fix [#​2964](https://togithub.com/josdejong/mathjs/issues/2964): issue in function ` distance ` when calculate the distance from a point to a line ([#​2965](https://togithub.com/josdejong/mathjs/issues/2965)). Thanks [@​Kiku-CN](https://togithub.com/Kiku-CN). - Fix `math.format` not working correctly for `engineering` notation when using BigNumbers and for `fixed` notation with `precision: 0` configured ([#​2956](https://togithub.com/josdejong/mathjs/issues/2956)). Thanks [@​mgreminger](https://togithub.com/mgreminger). - Fix [#​2880](https://togithub.com/josdejong/mathjs/issues/2880): not possible to map cube root `cbrt`. - Fix [#​2938](https://togithub.com/josdejong/mathjs/issues/2938): make the syntax description of all functions consistent in the docs ([#​2941](https://togithub.com/josdejong/mathjs/issues/2941)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix [#​2954](https://togithub.com/josdejong/mathjs/issues/2954): improve the TypeScript definitions the return type of functions `min` and `max` ([#​2955](https://togithub.com/josdejong/mathjs/issues/2955)). Thanks [@​Maxim-Mazurok](https://togithub.com/Maxim-Mazurok). - Fix [#​2959](https://togithub.com/josdejong/mathjs/issues/2959): typo in an example in the docs. Thanks [@​kunalagrwl](https://togithub.com/kunalagrwl). - Drop official support for Node.js 14, has reached end of life. ### [`v11.8.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-04-03-1180) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.7.0...v11.8.0) - Extended functions `fraction`, `bignumber`, and `number` with support for units, see [#​2918](https://togithub.com/josdejong/mathjs/issues/2918) ([#​2926](https://togithub.com/josdejong/mathjs/issues/2926)). - Implemented aliases `amp` and `amps` for unit `ampere` ([#​2917](https://togithub.com/josdejong/mathjs/issues/2917)). Thanks [@​veggiesaurus](https://togithub.com/veggiesaurus). - Improve TypeScript definitions of function `gcd` ([#​2922](https://togithub.com/josdejong/mathjs/issues/2922)). Thanks [@​brunoSnoww](https://togithub.com/brunoSnoww). - Fix [#​2923](https://togithub.com/josdejong/mathjs/issues/2923): improve docs of the function `distance` ([#​2924](https://togithub.com/josdejong/mathjs/issues/2924)). Thanks [@​tmtron](https://togithub.com/tmtron). ### [`v11.7.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-03-15-1170) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.6.0...v11.7.0) - Implement [#​2567](https://togithub.com/josdejong/mathjs/issues/2567): accept array as parameter for function `gcd` ([#​2878](https://togithub.com/josdejong/mathjs/issues/2878)). Thanks [@​jakubriegel](https://togithub.com/jakubriegel). - Fix [#​2908](https://togithub.com/josdejong/mathjs/issues/2908): improvements in the docs and examples of functions `partitionSelect`, `diff`, `expm1`, `round`, `nthRoots`, `sign`, `rigthArithShift`, `setIsSubset`, `setSize`, and the docs about units. Thanks [@​tmtron](https://togithub.com/tmtron). - Fix [#​2907](https://togithub.com/josdejong/mathjs/issues/2907): determinant of empty matrix should be 1. - Refactor index.d.ts by writing function declarations using a generic, reducing a lot of repetition ([#​2913](https://togithub.com/josdejong/mathjs/issues/2913)). Thanks [@​brunoSnoww](https://togithub.com/brunoSnoww). ### [`v11.6.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-02-24-1160) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.5.1...v11.6.0) - Implement broadcasting for the following functions and their corresponding operator: `add`, `dotDivide`, `dotMultiply`, `dotPow`, `gcd`, `lcm`, `mod`, `nthRoot`, `subtract`, `bitAnd`, `bitOr`, `bitXor`, `leftShift`, `rightArithShift`, `rightLogShift`, `and`, `or`, `xor`, `compare`, `compareText`, `equal`, `larger`, `largerEq`, `smaller`, `smallerEq`, `unequal`, `atan2` and `to` ([#​2895](https://togithub.com/josdejong/mathjs/issues/2895), [#​2753](https://togithub.com/josdejong/mathjs/issues/2753)). Thanks [@​dvd101x](https://togithub.com/dvd101x). - Implement support for non-power-of-2 fft ([#​2900](https://togithub.com/josdejong/mathjs/issues/2900), [#​2577](https://togithub.com/josdejong/mathjs/issues/2577)). Thanks [@​cyavictor88](https://togithub.com/cyavictor88). - Fix [#​2888](https://togithub.com/josdejong/mathjs/issues/2888): update type definitions of function `unit` to allow creating a unit from a fraction or complex number. - Fix [#​2892](https://togithub.com/josdejong/mathjs/issues/2892): an error in the examples of the embedded help of function `sort`. - Fix [#​2891](https://togithub.com/josdejong/mathjs/issues/2891): functions `column` and `row` sometimes returning a scalar number. - Fix [#​2896](https://togithub.com/josdejong/mathjs/issues/2896): define the fourth argument of function `intersect` as optional in the TypeScript definitions. Thanks [@​wodndb](https://togithub.com/wodndb). - Fix: quantileSeq not accepting a matrix as second argument `prob` (see [#​2902](https://togithub.com/josdejong/mathjs/issues/2902)). - Fix broken examples in functions `to`, `distance`, `getMatrixDataType`, `subset`, and `max` (see [#​2902](https://togithub.com/josdejong/mathjs/issues/2902)). ### [`v11.5.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2023-01-31-1151) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.5.0...v11.5.1) - Add type definitions for function `rotationMatrix` ([#​2860](https://togithub.com/josdejong/mathjs/issues/2860)). Thanks [@​brunoSnoww](https://togithub.com/brunoSnoww). - Add type signature for `lusolve(LUDecomposition, ...)` ([#​2864](https://togithub.com/josdejong/mathjs/issues/2864)). Thanks [@​evanmiller](https://togithub.com/evanmiller). - Fix [#​2873](https://togithub.com/josdejong/mathjs/issues/2873): the rocket_trajectory_optimization.html example being partly broken. Thanks [@​dvd101x](https://togithub.com/dvd101x). - Fix [#​2871](https://togithub.com/josdejong/mathjs/issues/2871): coverage report broken ([#​2877](https://togithub.com/josdejong/mathjs/issues/2877)). Thanks [@​bornova](https://togithub.com/bornova). - Fix [#​2883](https://togithub.com/josdejong/mathjs/issues/2883): update documentation for stat functions, describe missing syntax. - Fix [#​2884](https://togithub.com/josdejong/mathjs/issues/2884): fix examples in the embedded docs of function `pow` and some other functions. - Fix type definition of function `complex` for one numeric input ([#​2886](https://togithub.com/josdejong/mathjs/issues/2886)), thanks [@​ariymarkowitz](https://togithub.com/ariymarkowitz). - Fix type definitions of `map()` and `forEach()` ([#​2887](https://togithub.com/josdejong/mathjs/issues/2887)), thanks [@​xiaohk](https://togithub.com/xiaohk). - Fix [#​2606](https://togithub.com/josdejong/mathjs/issues/2606): improve type definitions of `dotMultiply`, `dotPow` and `dotDivide` ([#​2890](https://togithub.com/josdejong/mathjs/issues/2890)). Thanks [@​brunoSnoww](https://togithub.com/brunoSnoww). ### [`v11.5.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-12-05-1150) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.4.0...v11.5.0) - Improve `simplify` rule matches in non-commutative contexts ([#​2841](https://togithub.com/josdejong/mathjs/issues/2841)). Thanks [@​samueltlg](https://togithub.com/samueltlg). - Simplify: add rules and restructure tests for non-commutative contexts ([#​2847](https://togithub.com/josdejong/mathjs/issues/2847)). Thanks [@​samueltlg](https://togithub.com/samueltlg). - Fix function `reshape` mutating the input in case of a matrix (see [#​2854](https://togithub.com/josdejong/mathjs/issues/2854)). - Fix TypeScript types for `multiply()` with `number[]` and `number[][]` ([#​2852](https://togithub.com/josdejong/mathjs/issues/2852)). Thanks [@​hfhchan](https://togithub.com/hfhchan). ### [`v11.4.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-11-18-1140) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.3.3...v11.4.0) - Implemented more wildcards to describe rules for `simplify`, making it easier for example to describe unary minus ([#​1915](https://togithub.com/josdejong/mathjs/issues/1915)). Thanks [@​thatcomputerguy0101](https://togithub.com/thatcomputerguy0101). - Implemented functions `schur`, `sylvester`, and `lyap` ([#​2646](https://togithub.com/josdejong/mathjs/issues/2646)). Thanks [@​egidioln](https://togithub.com/egidioln). - Implemented function `polynomialRoot`, and use it in a benchmark ([#​2839](https://togithub.com/josdejong/mathjs/issues/2839)). Thanks [@​gwhitney](https://togithub.com/gwhitney). - Fix [#​2825](https://togithub.com/josdejong/mathjs/issues/2825) partly: improve simplifying operations on constants in non-commutative contexts ([#​2827](https://togithub.com/josdejong/mathjs/issues/2827)). Thanks [@​samueltlg](https://togithub.com/samueltlg). - Fix [#​2840](https://togithub.com/josdejong/mathjs/issues/2840): a bug in the docs and type definitions of `Node.traverse` and `Node.forEach`, they do return `void`. ### [`v11.3.3`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-11-07-1133) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.3.2...v11.3.3) - Fix [#​2830](https://togithub.com/josdejong/mathjs/issues/2830): Prevent inserting zero values when creating a `SparseMatrix` from a `DenseMatrix` ([#​2836](https://togithub.com/josdejong/mathjs/issues/2836)). Thanks [@​AlexandreAlvesDB](https://togithub.com/AlexandreAlvesDB). - Fix [#​2835](https://togithub.com/josdejong/mathjs/issues/2835): a regression in the type definitions of `FunctionNode`, introduced in `v11.3.2`. See [#​2733](https://togithub.com/josdejong/mathjs/issues/2733). Thanks [@​dsteve](https://togithub.com/dsteve). ### [`v11.3.2`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-10-25-1132) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.3.1...v11.3.2) - Add generics to remaining Node type definitions ([#​2733](https://togithub.com/josdejong/mathjs/issues/2733)). Thanks [@​mattvague](https://togithub.com/mattvague). - Allow unit prefixes for (absolute) temperatures `kelvin`, `rankine`, `celsius`, and `fahrenheit` ([#​2824](https://togithub.com/josdejong/mathjs/issues/2824)). Thanks [@​jfeist](https://togithub.com/jfeist) ### [`v11.3.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-10-19-1131) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.3.0...v11.3.1) - Fix [#​2809](https://togithub.com/josdejong/mathjs/issues/2809): code completion issues in some IDE's ([#​2812](https://togithub.com/josdejong/mathjs/issues/2812)). - Fix [#​2818](https://togithub.com/josdejong/mathjs/issues/2818): throw an error when a function assignment has duplicate parameter names ([#​2819](https://togithub.com/josdejong/mathjs/issues/2819)). - Update `decimal.js` to version `10.4.2`. ### [`v11.3.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-10-11-1130) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.2.1...v11.3.0) - Allow creating new subclasses of `Node` in TypeScript ([#​2772](https://togithub.com/josdejong/mathjs/issues/2772)). Note that this disables being able to narrow MathNodes by using the `.type` property. Use typeguards like `isOperatorNode(...)` instead (see [#​2810](https://togithub.com/josdejong/mathjs/issues/2810)). Thanks [@​mattvague](https://togithub.com/mattvague). - Fix [#​2793](https://togithub.com/josdejong/mathjs/issues/2793): `flatten()` cloning entries of array/Matrix ([#​2799](https://togithub.com/josdejong/mathjs/issues/2799)). - Fix [#​2627](https://togithub.com/josdejong/mathjs/issues/2627): TypeScript definitions of `pinv` missing ([#​2804](https://togithub.com/josdejong/mathjs/issues/2804)). Thanks [@​HanchaiN](https://togithub.com/HanchaiN). - Update dependencies to `decimal.js@10.4.1`. ### [`v11.2.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-09-13-1121) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.2.0...v11.2.1) - Fix doc generator being broken, not generating a function reference. ### [`v11.2.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-09-12-1120) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.1.0...v11.2.0) - Implement function `isRelationalNode` ([#​2731](https://togithub.com/josdejong/mathjs/issues/2731)). Thanks [@​isaacbyr](https://togithub.com/isaacbyr). - Added missing types `'largerEq'` and `'or'` in `OperatorNodeMap` in the TypeScript definitions. Thanks [@​ajinkyac03](https://togithub.com/ajinkyac03). - Fixed typos in min func type defs ([#​2768](https://togithub.com/josdejong/mathjs/issues/2768)). Thanks [@​mabdullahadeel](https://togithub.com/mabdullahadeel). - Improved the TypeScript definitions for `pickRandom`. Thanks [@​mattvague](https://togithub.com/mattvague). - Fixed documentation of unit `min` which means `minutes`, not `minim` ([#​2773](https://togithub.com/josdejong/mathjs/issues/2773)). Thanks [@​jasonhornsby](https://togithub.com/jasonhornsby). ### [`v11.1.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-08-23-1110) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.0.1...v11.1.0) - Add Unit constructor from value and pure (valueless) Unit ([#​2628](https://togithub.com/josdejong/mathjs/issues/2628)). Thanks [@​costerwi](https://togithub.com/costerwi) - Fix [#​2144](https://togithub.com/josdejong/mathjs/issues/2144): `examples/advanced/custom_loading.js` was broken. - Fix JSON `replacer` function missing in the TypeScript definitions. Thanks [@​mattvague](https://togithub.com/mattvague). - Update dependencies to `typed-function@4.1.0` and `decimal.js@10.4.0`. ### [`v11.0.1`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-07-25-version-1101) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v11.0.0...v11.0.1) - Fix [#​2632](https://togithub.com/josdejong/mathjs/issues/2632): TypeScript issue of `simplifyConstant` and `simplifyCore` not having a return type defined. ### [`v11.0.0`](https://togithub.com/josdejong/mathjs/blob/HEAD/HISTORY.md#2022-07-23-version-1100) [Compare Source](https://togithub.com/josdejong/mathjs/compare/v10.6.4...v11.0.0) !!! BE CAREFUL: BREAKING CHANGES !!! Breaking changes: - Dropped official support for IE11. - Upgraded to `typed-function@3`, see [josdejong/typed-function/HISTORY.md](https://togithub.com/josdejong/typed-function/blob/develop/HISTORY.md#2022-05-12-version-300). Thanks [@​gwhitney](https://togithub.com/gwhitney). Most importantly: - Conversions now have preference over `any`. - The `this` variable is no longer bound to the typed function itself. - The properties `typed.types`, `typed.conversions`, and `typed.ignore` have been removed. - There are new static functions available like `typed.referTo`, `typed.referToSelf`, `typed.addTypes`, `typed.addConversions`. - Implement amended "Rule 2" for implicit multiplication ([#​2370](https://togithub.com/josdejong/mathjs/issues/2370), [#​2460](https://togithub.com/josdejong/mathjs/issues/2460)): 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 x` was interpreted as `-1 / (2 * x)` and now it is interpreted as `(-1 / 2) * x`. Thanks [@​gwhitney](https://togithub.com/gwhitney). - Drop elementwise matrix support for trigonometric functions, exp, log, gamma, square, sqrt, cube, and cbrt to prevent confusion with standard matrix functions ([#​2440](https://togithub.com/josdejong/mathjs/issues/2440), [#​2465](https://togithub.com/josdejong/mathjs/issues/2465)). Instead, use `math.map(matrix, fn)`. Thanks [@​gwhitney](https://togithub.com/gwhitney). - Simplify: convert equivalent function calls into operators, for example, `add(2, x)` will now be simplified into `2 + x` ([#​2415](https://togithub.com/josdejong/mathjs/issues/2415), [#​2466](https://togithub.com/josdejong/mathjs/issues/2466)). Thanks [@​gwhitney](https://togithub.com/gwhitney). - Removed the automatic conversion from `number` to `string` ([#​2482](https://togithub.com/josdejong/mathjs/issues/2482)). Thanks [@​gwhitney](https://togithub.com/gwhitney). - Fix [#​2412](https://togithub.com/josdejong/mathjs/issues/2412): let function `diff` return an empty matrix when the input contains only one element ([#​2422](https://togithub.com/josdejong/mathjs/issues/2422)). - Internal refactoring in the `simplifyCore` logic ([#​2490](https://togithub.com/josdejong/mathjs/issues/2490), [#​2484](https://togithub.com/josdejong/mathjs/issues/2484), [#​2459](https://togithub.com/josdejong/mathjs/issues/2459)). The function `simplifyCore` will no longer (partially) merge constants, that behavior has been moved to `simplifyConstant`. The combination of `simplifyConstant` and `simplifyCore` is still close to the old behavior of `simplifyCore`, but there are some differences. To reproduce the same behavior as the old `simplifyCore`, you can use `math.simplify(expr, [math.simplifyCore, math.simplifyConstant])`. Thanks to the refactoring, `simplify` is more thorough in reducing constants. Thanks [@​gwhitney](https://togithub.com/gwhitney). - Disable support for splitting rest parameters in chained calculations ([#​2485](https://togithub.com/josdejong/mathjs/issues/2485), [#​2474](https://togithub.com/josdejong/mathjs/issues/2474)). For example: `math.chain(3).max(4, 2).done()` will now throw an error rather than return `4`, because the rest parameter of `math.max(...number)` has been split between the contents of the chain and the arguments to the max call. Thanks [@​gwhitney](https://togithub.com/gwhitney). - Function `typeOf` now returns `function` (lowercase) for a function instead of `Function` ([#​2560](https://togithub.com/josdejong/mathjs/issues/2560)). Thanks [@​gwhitney](https://togithub.com/gwhitney). Non-breaking changes: - Fix [#​2600](https://togithub.com/josdejong/mathjs/issues/2600): improve the TypeScript definitions of `simplify`. Thanks [@​laureen-m](https://togithub.com/laureen-m) and [@​mattvague](https://togithub.com/mattvague). - Fix [#​2607](https://togithub.com/josdejong/mathjs/issues/2607): improve type definition of `createUnit`. Thanks [@​egziko](https://togithub.com/egziko). - Fix [#​2608](https://togithub.com/josdejong/mathjs/issues/2608): clarify the docs on the need to configure a smaller `epsilon` when using BigNumbers. - Fix [#​2613](https://togithub.com/josdejong/mathjs/issues/2613): describe matrix methods `get` and `set` in the docs. - Fix link to `math.rationalize` in the docs ([#​2616](https://togithub.com/josdejong/mathjs/issues/2616)). Thanks [@​nukisman](https://togithub.com/nukisman). - Fix [#​2621](https://togithub.com/josdejong/mathjs/issues/2621): add TypeScript definitions for `count` ([#​2622](https://togithub.com/josdejong/mathjs/issues/2622)). Thanks [@​Hansuku](https://togithub.com/Hansuku). - Improved TypeScript definitions of `multiply` ([#​2623](https://togithub.com/josdejong/mathjs/issues/2623)). Thanks [@​Windrill](https://togithub.com/Windrill).

Configuration

šŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

šŸš¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.

ā™» Rebasing: Whenever PR becomes conflicted, 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.

coderabbitai[bot] commented 3 months ago

[!IMPORTANT]

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.