mathjs 13.1.1 → 13.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/HISTORY.md +24 -0
  2. package/lib/browser/math.js +1 -1
  3. package/lib/browser/math.js.LICENSE.txt +2 -9
  4. package/lib/browser/math.js.map +1 -1
  5. package/lib/cjs/core/function/typed.js +2 -1
  6. package/lib/cjs/entry/dependenciesAny/dependenciesParserClass.generated.js +2 -0
  7. package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +0 -18
  8. package/lib/cjs/entry/dependenciesNumber/dependenciesParserClass.generated.js +2 -0
  9. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +0 -14
  10. package/lib/cjs/entry/impureFunctionsAny.generated.js +2 -12
  11. package/lib/cjs/entry/impureFunctionsNumber.generated.js +2 -10
  12. package/lib/cjs/expression/Parser.js +21 -2
  13. package/lib/cjs/expression/parse.js +1 -1
  14. package/lib/cjs/expression/transform/filter.transform.js +28 -40
  15. package/lib/cjs/expression/transform/forEach.transform.js +29 -30
  16. package/lib/cjs/expression/transform/map.transform.js +8 -93
  17. package/lib/cjs/expression/transform/utils/transformCallback.js +101 -0
  18. package/lib/cjs/function/algebra/derivative.js +10 -11
  19. package/lib/cjs/function/algebra/simplify.js +2 -13
  20. package/lib/cjs/function/matrix/filter.js +3 -2
  21. package/lib/cjs/function/matrix/forEach.js +3 -14
  22. package/lib/cjs/function/matrix/map.js +11 -33
  23. package/lib/cjs/header.js +2 -2
  24. package/lib/cjs/type/matrix/DenseMatrix.js +73 -29
  25. package/lib/cjs/type/matrix/MatrixIndex.js +3 -0
  26. package/lib/cjs/type/matrix/SparseMatrix.js +7 -4
  27. package/lib/cjs/type/resultset/ResultSet.js +1 -1
  28. package/lib/cjs/utils/array.js +22 -0
  29. package/lib/cjs/utils/optimizeCallback.js +94 -0
  30. package/lib/cjs/version.js +1 -1
  31. package/lib/esm/core/function/typed.js +2 -1
  32. package/lib/esm/entry/dependenciesAny/dependenciesParserClass.generated.js +2 -0
  33. package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +0 -18
  34. package/lib/esm/entry/dependenciesNumber/dependenciesParserClass.generated.js +2 -0
  35. package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +0 -14
  36. package/lib/esm/entry/impureFunctionsAny.generated.js +2 -12
  37. package/lib/esm/entry/impureFunctionsNumber.generated.js +2 -10
  38. package/lib/esm/expression/Parser.js +21 -2
  39. package/lib/esm/expression/parse.js +1 -1
  40. package/lib/esm/expression/transform/filter.transform.js +28 -40
  41. package/lib/esm/expression/transform/forEach.transform.js +29 -30
  42. package/lib/esm/expression/transform/map.transform.js +8 -93
  43. package/lib/esm/expression/transform/utils/transformCallback.js +95 -0
  44. package/lib/esm/function/algebra/derivative.js +10 -11
  45. package/lib/esm/function/algebra/simplify.js +2 -13
  46. package/lib/esm/function/matrix/filter.js +3 -2
  47. package/lib/esm/function/matrix/forEach.js +3 -14
  48. package/lib/esm/function/matrix/map.js +12 -34
  49. package/lib/esm/type/matrix/DenseMatrix.js +75 -32
  50. package/lib/esm/type/matrix/MatrixIndex.js +3 -0
  51. package/lib/esm/type/matrix/SparseMatrix.js +7 -4
  52. package/lib/esm/type/resultset/ResultSet.js +1 -1
  53. package/lib/esm/utils/array.js +21 -0
  54. package/lib/esm/utils/optimizeCallback.js +88 -0
  55. package/lib/esm/version.js +1 -1
  56. package/package.json +19 -19
  57. package/types/index.d.ts +50 -12
  58. package/lib/cjs/utils/applyCallback.js +0 -73
  59. package/lib/esm/utils/applyCallback.js +0 -67
package/HISTORY.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # History
2
2
 
3
+ # 2024-11-06, 13.2.1
4
+
5
+ - Update to the latest version of `complex.js`.
6
+ - Fix `Index.dimension(dim)` accepting non-numeric input.
7
+ - Fix: #3290 should validate variables names in method `Parser.set` (#3308).
8
+ Thanks @nkumawat34.
9
+
10
+ # 2024-10-02, 13.2.0
11
+
12
+ - Feat: improve performance of functions `map`, `filter` and `forEach` (#3256).
13
+ Thanks @dvd101x.
14
+ - Feat: improve performance of the methods `map()` and `forEach()`
15
+ of `DenseMatrix` (#3251). Thanks @Galm007.
16
+ - Fix: #3253 cannot use identifiers containing special characters in function
17
+ `derivative`.
18
+ - Fix: improve the type definitions of `ConstantNode` to support all data
19
+ types (#3257). Thanks @smith120bh.
20
+ - Fix: #3259 function `symbolicEqual` missing in the TypeScript definitions.
21
+ - Fix: #3246 function `leafCount` missing in the TypeScript definitions.
22
+ - Fix: #3267 implicit multiplication with a negative number and unit `in`.
23
+ - Docs: fix broken links on the Configuration page. Thanks @vassudanagunta.
24
+ - Docs: document the syntax of `map` and `forEach` in the expression parser
25
+ (#3272). Thanks @dvd101x.
26
+
3
27
  # 2024-08-27, 13.1.1
4
28
 
5
29
  - Fix security vulnerability in the CLI and web API allowing to call functions