Socket
Socket
Sign inDemoInstall

mathjs

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathjs - npm Package Versions

1
28

11.0.1

Diff

Changelog

Source

2022-07-25, version 11.0.1

  • Fix #2632: TypeScript issue of simplifyConstant and simplifyCore not having a return type defined.
josdejong
published 11.0.0 •

Changelog

Source

2022-07-23, version 11.0.0

!!! BE CAREFUL: BREAKING CHANGES !!!

Breaking changes:

  • Dropped official support for IE11.
  • Upgraded to typed-function@3, see josdejong/typed-function/HISTORY.md. Thanks @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, #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.
  • Drop elementwise matrix support for trigonometric functions, exp, log, gamma, square, sqrt, cube, and cbrt to prevent confusion with standard matrix functions (#2440, #2465). Instead, use math.map(matrix, fn). Thanks @gwhitney.
  • Simplify: convert equivalent function calls into operators, for example, add(2, x) will now be simplified into 2 + x (#2415, #2466). Thanks @gwhitney.
  • Removed the automatic conversion from number to string (#2482). Thanks @gwhitney.
  • Fix #2412: let function diff return an empty matrix when the input contains only one element (#2422).
  • Internal refactoring in the simplifyCore logic (#2490, #2484, #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.
  • Disable support for splitting rest parameters in chained calculations (#2485, #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.
  • Function typeOf now returns function (lowercase) for a function instead of Function (#2560). Thanks @gwhitney.

Non-breaking changes:

  • Fix #2600: improve the TypeScript definitions of simplify. Thanks @laureen-m and @mattvague.
  • Fix #2607: improve type definition of createUnit. Thanks @egziko.
  • Fix #2608: clarify the docs on the need to configure a smaller epsilon when using BigNumbers.
  • Fix #2613: describe matrix methods get and set in the docs.
  • Fix link to math.rationalize in the docs (#2616). Thanks @nukisman.
  • Fix #2621: add TypeScript definitions for count (#2622). Thanks @Hansuku.
  • Improved TypeScript definitions of multiply (#2623). Thanks @Windrill.
josdejong
published 10.6.4 •

Changelog

Source

2022-06-28, version 10.6.4

  • Improve TypeScript definitions of the factory function, thanks @mattvague.
josdejong
published 10.6.3 •

Changelog

Source

2022-06-24, version 10.6.3

  • Revert the TypeScript definition fixes for factory applied in v10.6.2, they give some complications.
josdejong
published 10.6.2 •

Changelog

Source

2022-06-24, version 10.6.2

  • Improve TypeScript definitions of ParenthesisNode. Thanks @mattvague.
  • Change the TypeScript definition of MathNodeCommon['type'] into a less strict string, so it is possible to extend with new Node classes. Thanks @mattvague.
  • Improve TypeScript definitions of the factory function, thanks @mattvague.
josdejong
published 10.6.1 •

Changelog

Source

2022-05-31, version 10.6.1

  • Improve the TypeScript types For OperatorNode: you can now define generic types like OperatorNode<'+', 'add'>. Thanks @mattvague.
josdejong
published 10.6.0 •

Changelog

Source

2022-05-24, version 10.6.0

  • Implementation of fourier transform functions fft and ifft (#2540). Thanks @HanchaiN.
  • Fix TypeScript types not being listed in the exported fields (#2569). Thanks @mattvague.
  • Large improvements in TypeScript definitions for chained expressions (#2537). Thanks @mattvague.
  • Fix #2571: improve TypeScript definition of functions clone and cloneDeep (#2572). Thanks @mattvague.
  • Fix the first argument of derivative holding the expression not correctly being converted when using .toTex() (#2564). Thanks @mattvague.
josdejong
published 10.5.3 •

Changelog

Source

2022-05-11, version 10.5.3

  • Fix #2337: npm package containing examples and docs to solve security vulnerabilities being reported on the examples and their dependencies.
  • Fix core, construction, and some other functions missing in docs.
  • Drop official support for Node.js 12 which has reached its end of life.
josdejong
published 10.5.2 •

Changelog

Source

2022-05-09, version 10.5.2

  • Fix #2553: @types/mocha defined in dependencies instead of devDependencies, causing problems in projects that use a different version of this dependency. Thanks @Kolahzary.
  • Fix #2550: remove examples/node_modules folder from the npm package.
  • Fix #2528: improve contribution guidelines (#2548).
  • Document SymbolNode.onUndefinedSymbol and FunctionNode.onUndefinedFunction.
josdejong
published 10.5.1 •

Changelog

Source

2022-05-02, version 10.5.1

  • Fix #2526, #2529: improve TypeScript definitions of function round, fix, floor, ceil, and nthRoot, and improved the number only implementations of those functions (#2531, #2539). Thanks @simlaticak and @gwhitney.
  • Fix #2532: matrix index symbol end not working when used inside a sub-expression.
  • Fix #2524: In generating AUTHORS list, ignore a list of specific commits (e.g., to avoid spurious duplicates in list). (#2543)
  • Add type definitions of function resolve (#2536). Thanks @mattvague.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc