mathjs breaking changes
Updated December 4, 2026
On this page
Latest version 15.3.0, released November 23, 2026. Source repository
Its 12.0.0 release drops Node.js 14 and 16. Node.js end of life dates.
- From 14.9.0 to 15.3.0: 33 breaking changes in 4 versions.
- From 8.0.0 to 15.3.0: 1,442 breaking changes in 68 versions.
mathjs 15.3.0 breaking changes
- Behavior changed
Bigints too negative to convert safely to numbers are no longer auto-converted. Code that depended on the silent conversion must handle this case. github.com - Behavior changed
divide
Matrix operations now process zero entries where needed, so results on matrices with zeros can differ from 15.2.0. Check code that relies on the old handling of zeros. github.com - Behavior changed
dotDivide
Matrix operations now process zero entries where needed, so results on matrices with zeros can differ from 15.2.0. Check code that relies on the old handling of zeros. github.com - Behavior changed
dotPow
Matrix operations now process zero entries where needed, so results on matrices with zeros can differ from 15.2.0. Check code that relies on the old handling of zeros. github.com - Behavior changed
invmod
With a negative modulus, invmod now returns the canonical negative representative of the inverse. Results for negative moduli can differ from 15.2.0. github.com - Behavior changed
mod
The result of mod on bigints can differ for some sign combinations, so results may change from 15.2.0. github.com - Behavior changed
multinomial
Likely erroneous multidimensional input to multinomial now throws an error. Check calls that pass such input. github.com - Behavior changed
std
In parsed expressions, the dimension argument of std is now one-based. Update expressions that pass a dimension index. github.com - Behavior changed
variance
In parsed expressions, the dimension argument of variance is now one-based. Update expressions that pass a dimension index. github.com - Signature changed
FormatOptions.notation
Was notation?: | 'fixed' | 'exponential' | 'engineering' | 'auto' | 'hex' | 'bin' | 'oct'; now notation?: 'fixed' | 'exponential' | 'engineering' | 'auto' | 'hex' | 'bin' | 'oct'. npmjs.com - Signature changed
MathJsChain.multinomial
Was multinomial<T extends number | BigNumber>(a: MathJsChain<T[]>): MathJsChain<NoLiteralType<T>>; now multinomial<T extends MathNumericType>(a1: MathJsChain<T>, ...rest: T[]): MathJsChain<NoLiteralType<T>> multinomial<T extends... npmjs.com - Signature changed
MathJsChain.unit
Was unit(this: MathJsChain<MathNumericType>, unit?: string): MathJsChain<Unit>; now unit(this: MathJsChain<MathNumericType>, unit?: string | Unit): MathJsChain<Unit>. npmjs.com - Signature changed
MathJsInstance.max
Was max(A: MathCollection, dimension?: number | BigNumber): MathScalarType max<T extends MathScalarType>(A: T[] | T[][], dimension?: number | BigNumber): T; now max(A: MathCollection): MathScalarType max(A: MathCollection, dimension... npmjs.com - Signature changed
MathJsInstance.mean
Was mean(A: MathCollection, dimension?: number | BigNumber): MathScalarType mean<T extends MathScalarType>(A: T[] | T[][], dimension?: number | BigNumber): T; now mean(A: MathCollection): MathScalarType mean(A: MathCollection, dimension... npmjs.com - Signature changed
MathJsInstance.min
Was min(A: MathCollection, dimension?: number | BigNumber): MathScalarType min<T extends MathScalarType>(A: T[] | T[][], dimension?: number | BigNumber): T; now min(A: MathCollection): MathScalarType min(A: MathCollection, dimension... npmjs.com - Signature changed
MathJsInstance.multinomial
Was multinomial<T extends number | BigNumber>(a: T[]): NoLiteralType<T>; now multinomial<T extends MathNumericType>(...a: T[]): NoLiteralType<T> multinomial<T extends MathNumericType>(a: MathCollection<T>): NoLiteralType<T>. npmjs.com - Signature changed
MathJsInstance.number
Was number(value?: | string | number | BigNumber | bigint | Fraction | boolean | Unit | null): number; now number(value?: string | number | BigNumber | bigint | Fraction | boolean | Unit | null): number. npmjs.com - Signature changed
MathJsInstance.std
Was std(array: MathCollection, dimension?: number, normalization?: 'unbiased' | 'uncorrected' | 'biased'): MathNumericType[] std(array: MathCollection, normalization: 'unbiased' | 'uncorrected' | 'biased'): MathNumericType; now std(array... npmjs.com - Signature changed
MathJsInstance.sum
Was sum(A: MathCollection, dimension?: number | BigNumber): MathScalarType sum<T extends MathScalarType>(A: T[] | T[][], dimension?: number | BigNumber): T; now sum(A: MathCollection): MathScalarType sum(A: MathCollection, dimension... npmjs.com - Signature changed
MathJsInstance.unit
Was unit(value: MathNumericType, unit?: string): Unit; now unit(value: MathNumericType, unit?: string | Unit): Unit. npmjs.com - Signature changed
MathJsInstance.variance
Was variance(array: MathCollection, dimension?: number, normalization?: 'unbiased' | 'uncorrected' | 'biased'): MathNumericType[] variance(array: MathCollection, normalization: 'unbiased' | 'uncorrected' | 'biased'): MathNumericType; now... npmjs.com - Signature changed
MathJsStatic.multinomial
Was multinomial<T extends number | BigNumber>(a: T[]): NoLiteralType<T>; now multinomial<T extends MathNumericType>(...a: T[]): NoLiteralType<T>. npmjs.com - Signature changed
MathScope
Was type MathScope<TValue = any> = | Record<string, TValue> | MapLike<string, TValue>; now type MathScope<TValue = any> = Record<string, TValue> | MapLike<string, TValue>. npmjs.com
mathjs 15.1.1 breaking changes
- Behavior changed
An empty true-expression in a conditional is now interpreted as an error instead of its previous handling. Code relying on the old behavior must be updated. github.com
mathjs 15.1.0 breaking changes
- Behavior changed
isInteger
The function isInteger now respects tolerances, so numbers close to integers may be treated differently than before. github.com - Signature changed
AccessorNodeCtor.__new
Was new <TObject extends MathNode = MathNode>(object: TObject, index: IndexNode): AccessorNode<TObject>; now new <TObject extends MathNode = MathNode>(object: TObject, index: IndexNode, optionalChaining?: boolean): AccessorNode<TObject>. npmjs.com - Signature changed
MathJsChain.nthRoot
Was nthRoot(this: MathJsChain<number | BigNumber | MathCollection | Complex>, root?: number | BigNumber): MathJsChain<number | Complex | MathCollection>; now nthRoot(this: MathCollection, root?: number | BigNumber)... npmjs.com - Signature changed
MathJsInstance.nthRoot
Was nthRoot(a: number | BigNumber | MathCollection | Complex, root?: number | BigNumber): number | Complex | MathCollection; now nthRoot(M: MathCollection, root?: number | BigNumber): MathCollection nthRoot(a: number | BigNumber | Complex... npmjs.com - Signature changed
MathJsStatic.nthRoot
Was nthRoot(a: number | BigNumber | MathCollection | Complex, root?: number | BigNumber): number | Complex | MathCollection; now nthRoot(a: number | BigNumber | Complex, root?: number | BigNumber): number | Complex. npmjs.com
mathjs 15.0.0 breaking changes
- Behavior changed
Number literals written as hex, bin or oct values must now be followed by a space or delimiter, so expressions that relied on adjacent tokens will now fail to parse. github.com - Behavior changed
%
The unary percentage operator and the binary modulus operator both use the % symbol, but now have different precedence. Check expressions that mix unary % with modulus. github.com - Behavior changed
flatten
Flattening a SparseMatrix now throws an error instead of proceeding. Convert sparse matrices to a dense form before flattening. github.com - Behavior changed
size
The size function now always returns an Array, so code that expects another return type must be updated. github.com
mathjs 14.9.0 breaking changes
- Behavior changed
Ranges with a step of zero now throw an error when evaluated instead of silently behaving differently. Code that relies on a zero step must be changed. github.com
mathjs 14.8.2 breaking changes
- Signature changed
MathJsStatic.abs
Was abs<T extends MathType>(x: T): T; now abs(x: Complex): number. npmjs.com
Older versions
63 older versions, each with its first changes. Sign up to see every change
Show 63 older versions
mathjs 14.5.3 breaking changes
- Behavior changed
add
The TypeScript types for add and multiply no longer accept zero or one argument. Code calling them with fewer than two arguments may fail type checking. github.com - Behavior changed
multiply
The TypeScript types for multiply no longer accept zero or one argument. Code calling it with fewer than two arguments may fail type checking. github.com
And 16 more in this version.
mathjs 14.5.2 breaking changes
- Signature changed
MathJsInstance.isResultSet
Was isResultSet(x: unknown): boolean; now isResultSet(x: unknown): x is ResultSet. npmjs.com
mathjs 14.5.1 breaking changes
- Renamed
coulomb
The physical constant coulomb was renamed to coulombConstant. The old name still works for backward compatibility, so migrate to the new name. github.com
mathjs 14.3.0 breaking changes
- Signature changed
MathJsInstance.multiply
Was multiply<T extends MathArray>(x: T[], y: T[]): T; now multiply<T extends MathArray>(x: T[], y: T[]): T[]. npmjs.com
mathjs 14.2.0 breaking changes
- Removed
Matrix.apply
Matrix.apply was removed in mathjs 14.2.0 npmjs.com - Renamed
apply
The function apply was renamed to mapSlices. apply still works but is deprecated, so use mapSlices in new code. github.com
And 4 more in this version.
mathjs 14.0.1 breaking changes
- Removed
Fraction.d
Fraction.d was removed in mathjs 14.0.1 npmjs.com - Removed
Fraction.n
Fraction.n was removed in mathjs 14.0.1 npmjs.com
And 1 more in this version.
mathjs 14.0.0 breaking changes
- Behavior changed
The % (mod) operator now has higher precedence than * and /, so expressions using these operators may evaluate differently and should be checked. github.com - Behavior changed
bitXor
When both inputs are sparse matrices, bitXor now returns a sparse matrix instead of a dense one. github.com
And 24 more in this version.
mathjs 13.2.3 breaking changes
- Signature changed
MathJsChain.filter
Was filter(this: MathJsChain<MathCollection | string[]>, test: | ((value: any, index: any, matrix: MathCollection | string[]) => boolean) | RegExp): MathJsChain<MathCollection>; now filter(this: MathJsChain<MathCollection | string[]>... npmjs.com - Signature changed
MathJsChain.forEach
Was forEach<T extends MathCollection>(this: MathJsChain<T>, callback: (value: any, index: any, matrix: T) => void): void; now forEach<T extends MathCollection>(this: MathJsChain<T>, callback: (value: any, index: number[], matrix: T) =>... npmjs.com
And 3 more in this version.
mathjs 13.2.1 breaking changes
- Behavior changed
Index.dimension
Index.dimension(dim) no longer accepts non-numeric input, so callers passing such values must pass numbers instead. github.com - Behavior changed
Parser.set
Parser.set now checks variable names and rejects invalid ones, so code setting invalid names must use valid names. github.com
mathjs 13.2.0 breaking changes
- Signature changed
ConstantNode
Was interface ConstantNode<TValue extends string | number = number> extends MathNode; now interface ConstantNode<TValue extends | string | number | boolean | null | undefined | bigint | BigNumber | Fraction = number> extends MathNode. npmjs.com - Signature changed
ConstantNodeCtor.__new
Was new <TValue extends string | number = string>(value: TValue): ConstantNode<TValue>; now new <TValue extends | string | number | boolean | null | undefined | bigint | BigNumber | Fraction = string>(value: TValue): ConstantNode<TValue>. npmjs.com
And 2 more in this version.
mathjs 13.1.1 breaking changes
- Behavior changed
The CLI and web API can no longer call the functions import, createUnit and reviver, which were previously callable. Code that relied on calling them from those entry points must change. github.com
mathjs 13.1.0 breaking changes
- Signature changed
MathJsInstance.map
Was map<T extends MathCollection>(x: T, callback: (value: any, index: any, matrix: T) => MathType | string): T; now map<T extends MathCollection>(x: T, ...args: Array<| T | ((value: any, ...args: Array<any | number[] | T>) => MathType |... npmjs.com - Signature changed
MathJsStatic.map
Was map<T extends MathCollection>(x: T, callback: (value: any, index: any, matrix: T) => MathType | string): T; now map<T extends MathCollection>(x: T, callback: (value: any, index: number[], matrix: T) => MathType | string): T. npmjs.com
mathjs 13.0.3 breaking changes
- Removed
UnitComponent.unit.base.dimensions
UnitComponent.unit.base.dimensions was removed in mathjs 13.0.3 npmjs.com - Removed
UnitComponent.unit.base.key
UnitComponent.unit.base.key was removed in mathjs 13.0.3 npmjs.com
And 4 more in this version.
mathjs 13.0.2 breaking changes
- Signature changed
MathJsInstance.quantileSeq
Was quantileSeq<T extends MathScalarType>(A: T[] | T[][], prob: number | BigNumber | MathArray, sorted?: boolean): T; now quantileSeq<T extends MathScalarType>(A: T[] | T[][], prob: number | BigNumber, sorted?: boolean): T. npmjs.com
mathjs 13.0.1 breaking changes
- Signature changed
Parser.get
Was get(variable: string): any; now get(name: string): any. npmjs.com - Signature changed
Parser.set
Was set: (variable: string, value: any) => void; now set: (name: string, value: any) => void. npmjs.com
mathjs 13.0.0 breaking changes
- Behavior changed
isNegative
isNegative now takes config.epsilon into account, so results near zero may differ from before. github.com - Behavior changed
isPositive
isPositive now takes config.epsilon into account, so results near zero may differ from before. github.com
And 41 more in this version.
mathjs 12.4.3 breaking changes
- Signature changed
MathJsInstance.quantileSeq
Was quantileSeq(A: MathCollection, prob: number | BigNumber | MathArray, sorted?: boolean): number | BigNumber | Unit | MathArray; now quantileSeq(A: MathCollection, prob: number | BigNumber | MathArray, sorted?: boolean): MathScalarType |... npmjs.com - Signature changed
MathJsStatic.quantileSeq
Was quantileSeq(A: MathCollection, prob: number | BigNumber | MathArray, sorted?: boolean): number | BigNumber | Unit | MathArray; now quantileSeq<T extends MathScalarType>(A: T[] | T[][], prob: number | BigNumber | MathArray, sorted?... npmjs.com
mathjs 12.4.0 breaking changes
- Signature changed
MathJsInstance.mode
Was mode(...args: MathScalarType[]): MathScalarType mode(A: MathCollection): MathScalarType mode<T extends MathScalarType>(...args: T[]): T mode<T extends MathScalarType>(A: T[] | T[][]): T; now mode(...args: MathScalarType[])... npmjs.com - Signature changed
MathJsStatic.mode
Was mode<T extends MathScalarType>(...args: T[]): T; now mode<T extends MathScalarType>(...args: T[]): T[]. npmjs.com
mathjs 12.3.1 breaking changes
- Signature changed
ArrayNode.items
Was items: TItems; now items: [...TItems]. npmjs.com - Signature changed
ArrayNodeCtor.__new
Was new <TItems extends MathNode[] = MathNode[]>(items: MathNode[]): ArrayNode<TItems>; now new <TItems extends MathNode[] = MathNode[]>(items: [...TItems]): ArrayNode<TItems>. npmjs.com
And 16 more in this version.
mathjs 12.2.0 breaking changes
- Behavior changed
&
The operators and, or, &, and | now short-circuit, so the right-hand side is only evaluated when needed. Code that relies on both sides always being evaluated, such as side effects, must be checked. github.com - Behavior changed
|
The operators and, or, &, and | now short-circuit, so the right-hand side is only evaluated when needed. Code that relies on both sides always being evaluated, such as side effects, must be checked. github.com
And 2 more in this version.
mathjs 12.0.0 breaking changes
- Removed
Use Node.js 18 or later, since Node.js 14 and 16 are no longer officially supported. github.com - Removed
default
default was removed in mathjs 12.0.0 npmjs.com
And 410 more in this version.
mathjs 11.10.1 breaking changes
- Behavior changed
joule
Short prefixes such as k are no longer accepted for the joule unit, so code using a short-prefixed joule unit must switch to a long prefix such as kilo. github.com
mathjs 11.9.1 breaking changes
- Behavior changed
math.evaluate
Expressions that previously allowed arbitrary code execution through FunctionNode and SymbolNode are now blocked, so code relying on that behavior may now fail. github.com
mathjs 11.9.0 breaking changes
- Signature changed
MathJsChain.range
Was range(this: MathJsChain<number | BigNumber>, end: number | BigNumber, step: number | BigNumber, includeEnd?: boolean): MathJsChain<Matrix>; now range(this: MathJsChain<number | BigNumber | Unit>, end: number | BigNumber | Unit, step... npmjs.com - Signature changed
MathJsStatic.range
Was range(start: number | BigNumber, end: number | BigNumber, step: number | BigNumber, includeEnd?: boolean): Matrix; now range(start: number | BigNumber | Unit, end: number | BigNumber | Unit, step: number | BigNumber | Unit... npmjs.com
mathjs 11.8.2 breaking changes
- Signature changed
MathJsStatic.max
Was max(A: MathCollection, dim?: number): any max<T extends MathType[]>(...args: T): T[number]; now max(...args: MathScalarType[]): MathScalarType max(A: MathCollection, dimension?: number | BigNumber): MathScalarType max<T extends... npmjs.com - Signature changed
MathJsStatic.mean
Was mean(...args: MathType[]): any mean(A: MathCollection, dim?: number): any; now mean(...args: MathScalarType[]): MathScalarType mean(A: MathCollection, dimension?: number | BigNumber): MathScalarType mean<T extends... npmjs.com
And 9 more in this version.
mathjs 11.8.1 breaking changes
- Removed
Node.js 14 is no longer officially supported because it reached end of life. Upgrade to a supported Node.js version. github.com - Signature changed
MathJsStatic.distance
Was distance(x: MathCollection | object, y: MathCollection | object): number | BigNumber; now distance(x: MathCollection | object, y: MathCollection | object, z?: MathCollection | object): number | BigNumber. npmjs.com
And 2 more in this version.
mathjs 11.8.0 breaking changes
- Signature changed
MathJsChain.bignumber
Was bignumber(this: MathJsChain<number | string | Fraction | BigNumber | boolean | Fraction | null>): MathJsChain<BigNumber>; now bignumber(this: MathJsChain<number | string | Fraction | BigNumber | Unit | boolean | null>)... npmjs.com - Signature changed
MathJsChain.fraction
Was fraction(this: MathJsChain<number | string | BigNumber | Fraction | FractionDefinition>, denominator?: number): MathJsChain<Fraction>; now fraction(this: MathJsChain<number | string | BigNumber | Unit | Fraction | FractionDefinition>... npmjs.com
And 4 more in this version.
mathjs 11.7.0 breaking changes
- Behavior changed
det
The determinant function now returns 1 for an empty matrix instead of the previous result. Code relying on the old value for empty matrices must be updated. github.com - Signature changed
MathJsChain.abs
Was abs(this: MathJsChain<BigNumber>): MathJsChain<BigNumber> abs(this: MathJsChain<Complex>): MathJsChain<Complex> abs(this: MathJsChain<Fraction>): MathJsChain<Fraction> abs(this: MathJsChain<MathArray>): MathJsChain<MathArray> abs(this... npmjs.com
And 135 more in this version.
mathjs 11.6.0 breaking changes
- Signature changed
MathJsChain.intersect
Was intersect(this: MathJsChain<MathCollection>, x: MathCollection, y: MathCollection, z: MathCollection): MathJsChain<MathArray>; now intersect(this: MathJsChain<MathCollection>, x: MathCollection, y: MathCollection, z?: MathCollection)... npmjs.com - Signature changed
MathJsChain.unit
Was unit(this: MathJsChain<number | BigNumber>, unit?: string): MathJsChain<Unit>; now unit(this: MathJsChain<number | BigNumber | Fraction | Complex>, unit?: string): MathJsChain<Unit>. npmjs.com
And 2 more in this version.
mathjs 11.5.1 breaking changes
- Signature changed
MathJsChain.dotDivide
Was dotDivide(this: MathJsChain<MathType>, y: MathType): MathJsChain<MathType>; now dotDivide(this: MathJsChain<MathNumericType>, y: MathNumericType): MathJsChain<MathNumericType> dotDivide(this: MathJsChain<MathType>, y: Unit)... npmjs.com - Signature changed
MathJsChain.dotMultiply
Was dotMultiply(this: MathJsChain<MathType>, y: MathType): MathJsChain<MathType>; now dotMultiply(this: MathJsChain<MathNumericType>, y: MathNumericType): MathJsChain<MathNumericType> dotMultiply(this: MathJsChain<MathType>, y: Unit)... npmjs.com
And 7 more in this version.
mathjs 11.5.0 breaking changes
- Behavior changed
reshape
Calling reshape on a matrix now leaves the input unchanged. Code that relied on the input being modified in place must use the returned value instead. github.com - Signature changed
MathJsStatic.multiply
Was multiply(x: MathArray, y: MathArray): MathArray; now multiply<T extends MathArray>(x: T, y: T): T multiply<T extends MathNumericType[]>(x: T, y: T[]): T multiply<T extends MathNumericType[]>(x: T[], y: T): T. npmjs.com
mathjs 11.4.0 breaking changes
- Signature changed
MathJsChain.forEach
Was forEach<T extends Matrix | MathArray>(this: MathJsChain<T>, callback: (value: any, index: any, matrix: T) => void): MathJsChain<T>; now forEach<T extends Matrix | MathArray>(this: MathJsChain<T>, callback: (value: any, index: any... npmjs.com - Signature changed
MathNode.forEach
Was forEach(callback: (node: MathNode, path: string, parent: MathNode) => any): MathNode[]; now forEach(callback: (node: MathNode, path: string, parent: MathNode) => void): void. npmjs.com
And 1 more in this version.
mathjs 11.3.3 breaking changes
- Signature changed
FunctionNodeCtor.__new
Was new <TFn = SymbolNode, TArgs extends MathNode[] = MathNode[]>(fn: TFn, args: SymbolNode): FunctionNode<TransferFunction, TArgs>; now new <TFn = SymbolNode, TArgs extends MathNode[] = MathNode[]>(fn: TFn, args: TArgs): FunctionNode<TFn... npmjs.com
mathjs 11.3.2 breaking changes
- Signature changed
AccessorNode
Was interface AccessorNode extends MathNode; now interface AccessorNode<TObject extends MathNode = MathNode> extends MathNode. npmjs.com - Signature changed
AccessorNode.object
Was object: MathNode; now object: TObject. npmjs.com
And 39 more in this version.
mathjs 11.3.1 breaking changes
- Behavior changed
Defining a function with the same parameter name twice now throws an error instead of being accepted. Rename the duplicate parameters so the function definition is valid. github.com
mathjs 11.3.0 breaking changes
- Signature changed
AccessorNode
Was interface AccessorNode extends MathNodeCommon; now interface AccessorNode extends MathNode. npmjs.com - Signature changed
ArrayNode
Was interface ArrayNode extends MathNodeCommon; now interface ArrayNode extends MathNode. npmjs.com
And 18 more in this version.
mathjs 11.2.0 breaking changes
- Signature changed
MathJsChain.pickRandom
Was pickRandom(array: MathJsChain<number[]>, number?: number, weights?: number[]): MathJsChain<number | number[]>; now pickRandom<T>(this: MathJsChain<T[]>): MathJsChain<T> pickRandom<T>(this: MathJsChain<T[]>, number: number)... npmjs.com - Signature changed
MathJsStatic.pickRandom
Was pickRandom(array: number[], number?: number, weights?: number[]): number | number[]; now pickRandom<T>(array: T[]): T pickRandom<T>(array: T[], number: number): T[] pickRandom<T>(array: T[], number: number, weights: number[]): T[]. npmjs.com
And 1 more in this version.
mathjs 11.0.1 breaking changes
- Signature changed
MathJsChain.simplify
Was simplify(this: MathJsChain<MathNode | string>, rules?: SimplifyRule[], scope?: Map | object, options?: SimplifyOptions): MathJsChain<MathNode>; now simplify(this: MathJsChain<MathNode | string>, rules?: SimplifyRule[], scope?... npmjs.com - Signature changed
MathJsStatic.simplifyConstant
Was simplifyConstant(expr: MathNode | string, options?: SimplifyOptions); now simplifyConstant(expr: MathNode | string, options?: SimplifyOptions): MathNode. npmjs.com
And 1 more in this version.
mathjs 11.0.0 breaking changes
- Removed
IE11 is no longer officially supported. Code relying on IE11 may break. github.com - Behavior changed
Expressions like -1 / 2 x are now parsed as (-1 / 2) * x instead of -1 / (2 * x). github.com
And 53 more in this version.
mathjs 10.6.4 breaking changes
- Signature changed
FactoryDependencies.factory
Was factory: <T>(name: string, dependencies: MathJsFunctionName[], create: (injected: Partial<MathJsStatic>) => T, meta?: any) => FactoryFunction<T>; now factory: <T, TDeps extends readonly MathJsFunctionName[]>(name: string, dependencies... npmjs.com
mathjs 10.6.3 breaking changes
- Removed
MathJsStatic.Node
MathJsStatic.Node was removed in mathjs 10.6.3 npmjs.com - Removed
NodeCtor
NodeCtor was removed in mathjs 10.6.3 npmjs.com
And 1 more in this version.
mathjs 10.6.2 breaking changes
- Signature changed
FactoryDependencies.factory
Was factory: <T>(name: string, dependencies: MathJsFunctionName[], create: (injected: Partial<MathJsStatic>) => T, meta?: any) => FactoryFunction<T>; now factory: <T, TDeps extends readonly MathJsFunctionName[]>(name: string, dependencies... npmjs.com - Signature changed
MathNodeCommon.transform
Was transform(callback: (node: MathNode, path: string, parent: MathNode) => MathNode): MathNode; now transform<TResult>(callback: (node: this, path: string, parent: MathNode) => TResult): TResult. npmjs.com
And 4 more in this version.
mathjs 10.6.1 breaking changes
- Signature changed
MathJsStatic.isOperatorNode
Was isOperatorNode(x: unknown): x is OperatorNode; now isOperatorNode(x: unknown): x is OperatorNode<OperatorNodeOp, OperatorNodeFn>. npmjs.com - Signature changed
MathNode
Was type MathNode = | AccessorNode | ArrayNode | AssignmentNode | BlockNode | ConditionalNode | ConstantNode | FunctionAssignmentNode | FunctionNode | IndexNode | ObjectNode | OperatorNode | ParenthesisNode | RangeNode | RelationalNode |... npmjs.com
And 6 more in this version.
mathjs 10.6.0 breaking changes
- Removed
MathJsChain.parser
MathJsChain.parser was removed in mathjs 10.6.0 npmjs.com - Removed
MathJsChain.sum
MathJsChain.sum was removed in mathjs 10.6.0 npmjs.com
And 207 more in this version.
mathjs 10.5.3 breaking changes
- Removed
Node.js 12 is no longer officially supported because it reached end of life. Use a supported Node.js version. github.com
mathjs 10.5.1 breaking changes
- Signature changed
MathArray
Was type MathArray = number[] | number[][]; now type MathArray = MathNumericType[] | MathNumericType[][]. npmjs.com - Signature changed
MathExpression
Was type MathExpression = string | string[] | MathArray | Matrix; now type MathExpression = string | string[] | MathCollection. npmjs.com
And 139 more in this version.
mathjs 10.5.0 breaking changes
- Behavior changed
det
For integer matrices, det now returns exact results without round-off errors, so results for integer input may differ slightly from before. github.com - Signature changed
MathJsStatic.ceil
Was ceil(x: Unit): Unit; now ceil(x: BigNumber, n: BigNumber | MathArray): BigNumber ceil(x: Complex, n: number | MathArray): Complex ceil(x: Fraction, n: number): Fraction ceil(x: MathArray, n: number): MathArray ceil(x: Matrix, n: number... npmjs.com
mathjs 10.4.2 breaking changes
- Behavior changed
Getting the sign for units with an offset (such as degC) is now disabled because it is ambiguous. Code that relied on it must change. github.com - Behavior changed
approx.deepEqual
The epsilon argument is now used as the comparison tolerance; it was previously silently ignored, so comparison results may change. github.com
mathjs 10.4.1 breaking changes
- Removed
MathJsJson
MathJsJson was removed in mathjs 10.4.1 npmjs.com - Removed
MathJsStatic.json
MathJsStatic.json was removed in mathjs 10.4.1 npmjs.com
And 5 more in this version.
mathjs 10.4.0 breaking changes
- Signature changed
MathJsStatic.std
Was std(array: MathArray | Matrix, normalization?: 'unbiased' | 'uncorrected' | 'biased' | 'unbiased'): number; now std(...values: number[]): number std(array: MathArray | Matrix, dimension: number, normalization?: 'unbiased' |... npmjs.com - Signature changed
MathJsStatic.variance
Was variance(...args: Array<number | BigNumber | Fraction>): any variance(array: MathArray | Matrix, normalization?: 'unbiased' | 'uncorrected' | 'biased' | 'unbiased'): any; now variance(...args: Array<number | BigNumber | Fraction>)... npmjs.com
mathjs 10.3.0 breaking changes
- Removed
Simplify.simplifyCore
Simplify.simplifyCore was removed in mathjs 10.3.0 npmjs.com
mathjs 10.2.0 breaking changes
- Signature changed
MathJsStatic.gamma
Was gamma(n: number | MathArray | Matrix): number | MathArray | Matrix; now gamma<T extends number | BigNumber | Complex | MathArray | Matrix>(n: T): NoLiteralType<T>. npmjs.com - Signature changed
MathJsStatic.unit
Was unit(value: number | MathArray | Matrix, unit: string): Unit; now unit(value: number | MathArray | Matrix | BigNumber, unit: string): Unit. npmjs.com
mathjs 10.1.1 breaking changes
- Removed
ConfigOptions.parenthesis
ConfigOptions.parenthesis was removed in mathjs 10.1.1 npmjs.com - Signature changed
ConfigOptions.matrix
Was matrix?: string; now matrix?: 'Matrix' | 'Array'. npmjs.com
And 2 more in this version.
mathjs 10.0.0 breaking changes
- Removed
MathNode.args
MathNode.args was removed in mathjs 10.0.0 npmjs.com - Removed
MathNode.clone
MathNode.clone was removed in mathjs 10.0.0 npmjs.com
And 43 more in this version.
mathjs 9.5.2 breaking changes
- Removed
AccessorNode
AccessorNode was removed in mathjs 9.5.2 npmjs.com - Removed
AccessorNodeCtor
AccessorNodeCtor was removed in mathjs 9.5.2 npmjs.com
And 55 more in this version.
mathjs 9.5.1 breaking changes
- Removed
MathNode.args
MathNode.args was removed in mathjs 9.5.1 npmjs.com - Removed
MathNode.clone
MathNode.clone was removed in mathjs 9.5.1 npmjs.com
And 42 more in this version.
mathjs 9.5.0 breaking changes
- Signature changed
Parser.evaluate
Was evaluate(expr: string): any; now evaluate(expr: string | string[]): any. npmjs.com
mathjs 9.4.5 breaking changes
- Removed
MathNode.isConditionalnode
MathNode.isConditionalnode was removed in mathjs 9.4.5 npmjs.com
mathjs 9.4.4 breaking changes
- Behavior changed
The browser bundle now includes the polyfills needed for IE11, so it is larger than before. Code that relies on the bundle size should be checked. github.com - Behavior changed
Node.js 10 reached end of life and is no longer officially supported. Upgrade Node.js to a newer supported version to keep using this release. github.com
mathjs 9.4.3 breaking changes
- Behavior changed
mathjs previously modified the Decimal prototype; this release stops that. Code that relied on the added Decimal prototype properties must change. github.com - Signature changed
MathJsStatic.simplify
Was simplify(expr: MathNode | string, rules?: Array<{l: string; r: string} | string | ((node: MathNode) => MathNode)>, scope?: object): MathNode; now simplify(expr: MathNode | string, rules?: Array<{l: string; r: string} | string | ((node... npmjs.com
mathjs 9.4.2 breaking changes
- Signature changed
MathJsStatic.parse
Was parse(expr: MathExpression, options?: any): MathNode parse(exprs: MathExpression[], options?: any): MathNode[]; now parse: ParseFunction. npmjs.com
mathjs 9.0.0 breaking changes
- Behavior changed
Literals with the 0b, 0c or 0x prefixes are now unsigned unless you add a word-size suffix such as i16 or i32 to parse them as signed. github.com
mathjs 8.0.0 breaking changes
- Removed
The non-minified bundle dist/math.js is no longer published. Use the minified bundle or create a bundle yourself. github.com - Behavior changed
The browser bundle moved from /dist to /lib/browser, ES modules to /lib/esm, and commonjs to /lib/cjs. Update any direct file imports that use the old paths. github.com
And 2 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.