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

13
28

12.3.2

Diff

Changelog

Source

2024-02-08, 12.3.2

  • Improved the performance of custom defined functions in the expression parser (#3150).
  • Fix: #3143 cannot use and and or inside a function definition. Regression since v12.1.0 (#3150).
josdejong
published 12.3.1 •

Changelog

Source

2024-02-01, 12.3.1

  • Improved the typings of the arguments of ArrayNode, FunctionNode, IndexNode, OperatorNode, and RelationalNode (#3123). Thanks @sylee957.
  • Added a fully featured code editor example with CodeMirror and Katex (#3027). Thanks @dvd101x.
  • Fix: #3114 build warnings related to a number of wrong /* #__PURE__ */ annotations.
  • Fix: #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 type definitions of function hypot (#3144). Thanks @silentmissile.
  • Fix: #3141 help(config) altering the actual config when evaluating the examples.
  • Docs: #3145 fix documentation about REPL, it does require a build step nowadays.
josdejong
published 12.3.0 •

Changelog

Source

2024-01-12, 12.3.0

  • Implement support new metric prefixes: ronna (R), quetta (Q), ronto (r), and quecto (q) (#3113, #3112). Thanks @AlexEdgcomb.
  • Fix a bug converting a unitless unit (#3117). Thanks @costerwi.
  • Fix: #3097 toSI() wrongly converting degC (#3118). Thanks @costerwi.
josdejong
published 12.2.1 •

Changelog

Source

2023-12-20, 12.2.1

  • Fix #3109: method Node.toHTML not accepting a custom handler.
josdejong
published 12.2.0 •

Changelog

Source

2023-12-08, 12.2.0

  • Feat: lazy evaluation of operators and, or, &, | (#3090, #3101, #2766). Thanks @smith120bh.
  • Fix: passing a 4th argument with a scope to raw functions.
  • Fix: #3096 embedded docs of eigs throwing an error.
josdejong
published 12.1.0 •

Changelog

Source

2023-11-17, 12.1.0

  • Feat: Extend function round with support for units (#2761, #3095).
  • Feat: Extend function mod with support for negative divisors in when using BigNumber or Fraction (#3087).
  • Fix: #3092 a typo in an error message when converting a string into a number.
  • Fix: #3094 function derivative mutates the input expression when it fails.
josdejong
published 12.0.0 •

Changelog

Source

2023-10-26, 12.0.0

Breaking changes:

  • Fix #2879, #2927, #3014: change the confusing interface of eigs (#3037), thanks @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, #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, #2987).

  • Drop official support for Node.js 14 and 16.

Features:

  • Function eigs now has an option to turn off calculation of eigenvectors (#3057, #2180). Thanks @gwhitney.

Fixes:

  • Find eigenvectors of defective matrices (#3037). Thanks @gwhitney.
josdejong
published 11.12.0 •

Changelog

Source

2023-10-26, 11.12.0

  • Implemented function subtractScalar (#3081, #2643), thanks @vrushaket.
  • Fix #3073: function format not escaping control characters and double quotes (#3082).
  • Fix: function clone not throwing an error when passing an unsupported type like a function.
  • Fix: #2960 add type definition of function symbolicEqual (#3035), thanks @juancodeaudio.
josdejong
published 11.11.2 •

Changelog

Source

2023-10-11, 11.11.2

  • Fix #3025: improve handling of matrices and error handling in function corr (#3030). Thanks @vrushaket.
  • Fix #3074: improve error message when using function max in derivative.
  • Fix #3073: fix parsing quotes inside a string.
  • Fix #2027: cannot use named operators like to or mod as property name.
josdejong
published 11.11.1 •

Changelog

Source

2023-09-20, 11.11.1

  • Fix #2989: use one-based indices in print in the parser (#3009). Thanks @dvd101x.
  • Fix #2936: mod sometimes giving wrong results due to internal round-off errors (#3011). Thanks @praisennamonu1.
  • Internal refactor of quantileSeq, and fixed the embedded help (#3003). Thanks @dvd101x.
  • Updated dependencies and devDependencies.
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