npm / mathjs
mathjs
What changed in mathjs 15, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.
3 breaking4 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmathjs 1512 changes
Breaking changes 3
An empty true-expression in a conditional is interpreted as an error.
Fixes optional chaining handling: rejects
?.., allows optional function calls, and throws errors for invalid uses.Makes isInteger respect tolerances.
New APIs and options 4
Adds a function to calculate Bernoulli numbers.
Adds support for optional chaining with expressions such as object?.key.
Adds the isBounded function.
Adds the isFinite function.
Fixes and other changes 5
Fixes handling of bigints in compareNatural.
Adds nullish type definitions.
Fixes conditionals being parsed as optional chaining.
Avoids errors when mapping or filtering empty arrays and matrices.
Fixes unit serialization when an internal property is missing.