mathjs 14.0.0 → 14.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mathjs",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.",
5
5
  "author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
6
6
  "homepage": "https://mathjs.org",
@@ -43,18 +43,18 @@
43
43
  "@babel/preset-env": "7.26.0",
44
44
  "@babel/register": "7.25.9",
45
45
  "@types/assert": "1.5.11",
46
- "@types/mocha": "10.0.9",
47
- "@typescript-eslint/eslint-plugin": "7.16.1",
48
- "@typescript-eslint/parser": "7.16.1",
46
+ "@types/mocha": "10.0.10",
47
+ "@typescript-eslint/eslint-plugin": "8.18.0",
48
+ "@typescript-eslint/parser": "8.18.0",
49
49
  "assert": "2.1.0",
50
50
  "babel-loader": "9.2.1",
51
- "benchmark": "2.1.4",
52
- "c8": "10.1.2",
51
+ "c8": "10.1.3",
53
52
  "codecov": "3.8.3",
54
53
  "core-js": "3.39.0",
55
54
  "del": "8.0.0",
56
55
  "dtslint": "4.2.1",
57
- "eslint": "8.57.0",
56
+ "eigen": "0.2.2",
57
+ "eslint": "8.57.1",
58
58
  "eslint-config-prettier": "9.1.0",
59
59
  "eslint-config-standard": "17.1.0",
60
60
  "eslint-plugin-import": "2.31.0",
@@ -77,7 +77,7 @@
77
77
  "karma-mocha-reporter": "2.2.5",
78
78
  "karma-webpack": "5.0.1",
79
79
  "mkdirp": "3.0.1",
80
- "mocha": "10.8.2",
80
+ "mocha": "11.0.1",
81
81
  "mocha-junit-reporter": "2.2.1",
82
82
  "ndarray": "1.0.19",
83
83
  "ndarray-determinant": "1.0.0",
@@ -85,14 +85,14 @@
85
85
  "ndarray-ops": "1.2.2",
86
86
  "ndarray-pack": "1.2.1",
87
87
  "numericjs": "1.2.6",
88
- "pad-right": "0.2.2",
89
- "prettier": "3.3.3",
88
+ "prettier": "3.4.2",
90
89
  "process": "0.11.10",
91
90
  "sinon": "19.0.2",
92
91
  "sylvester": "0.0.21",
92
+ "tinybench": "3.0.7",
93
93
  "ts-node": "10.9.2",
94
- "typescript": "5.5.4",
95
- "webpack": "5.96.1",
94
+ "typescript": "5.7.2",
95
+ "webpack": "5.97.1",
96
96
  "zeros": "1.0.0"
97
97
  },
98
98
  "type": "module",
package/types/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import { Decimal } from 'decimal.js'
2
+ import { Fraction } from 'fraction.js'
3
+
4
+ export { Fraction }
2
5
 
3
6
  export as namespace math
4
7
 
@@ -4046,15 +4049,9 @@ export interface MatrixCtor {
4046
4049
  new (): Matrix
4047
4050
  }
4048
4051
 
4049
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
4052
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
4050
4053
  export interface BigNumber extends Decimal {}
4051
4054
 
4052
- export interface Fraction {
4053
- s: bigint
4054
- n: bigint
4055
- d: bigint
4056
- }
4057
-
4058
4055
  export interface Complex {
4059
4056
  re: number
4060
4057
  im: number
@@ -4246,7 +4243,7 @@ export interface UnitDefinition {
4246
4243
  baseName?: string
4247
4244
  }
4248
4245
 
4249
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
4246
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
4250
4247
  export interface Index {}
4251
4248
 
4252
4249
  export interface PartitionedMap<T, U> {