mathjs 13.1.1 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/HISTORY.md +17 -0
  2. package/lib/browser/math.js +1 -1
  3. package/lib/browser/math.js.LICENSE.txt +2 -2
  4. package/lib/browser/math.js.map +1 -1
  5. package/lib/cjs/core/function/typed.js +1 -0
  6. package/lib/cjs/expression/parse.js +1 -1
  7. package/lib/cjs/expression/transform/filter.transform.js +28 -40
  8. package/lib/cjs/expression/transform/forEach.transform.js +29 -30
  9. package/lib/cjs/expression/transform/map.transform.js +8 -93
  10. package/lib/cjs/expression/transform/utils/transformCallback.js +101 -0
  11. package/lib/cjs/function/algebra/derivative.js +10 -11
  12. package/lib/cjs/function/matrix/filter.js +3 -2
  13. package/lib/cjs/function/matrix/forEach.js +3 -14
  14. package/lib/cjs/function/matrix/map.js +11 -33
  15. package/lib/cjs/header.js +2 -2
  16. package/lib/cjs/type/matrix/DenseMatrix.js +73 -29
  17. package/lib/cjs/type/matrix/SparseMatrix.js +7 -4
  18. package/lib/cjs/utils/array.js +22 -0
  19. package/lib/cjs/utils/optimizeCallback.js +94 -0
  20. package/lib/cjs/version.js +1 -1
  21. package/lib/esm/core/function/typed.js +1 -0
  22. package/lib/esm/expression/parse.js +1 -1
  23. package/lib/esm/expression/transform/filter.transform.js +28 -40
  24. package/lib/esm/expression/transform/forEach.transform.js +29 -30
  25. package/lib/esm/expression/transform/map.transform.js +8 -93
  26. package/lib/esm/expression/transform/utils/transformCallback.js +95 -0
  27. package/lib/esm/function/algebra/derivative.js +10 -11
  28. package/lib/esm/function/matrix/filter.js +3 -2
  29. package/lib/esm/function/matrix/forEach.js +3 -14
  30. package/lib/esm/function/matrix/map.js +12 -34
  31. package/lib/esm/type/matrix/DenseMatrix.js +75 -32
  32. package/lib/esm/type/matrix/SparseMatrix.js +7 -4
  33. package/lib/esm/utils/array.js +21 -0
  34. package/lib/esm/utils/optimizeCallback.js +88 -0
  35. package/lib/esm/version.js +1 -1
  36. package/package.json +7 -7
  37. package/types/index.d.ts +50 -12
  38. package/lib/cjs/utils/applyCallback.js +0 -73
  39. package/lib/esm/utils/applyCallback.js +0 -67
package/HISTORY.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # History
2
2
 
3
+ # 2204-10-02 13.2.0
4
+
5
+ - Feat: improve performance of functions `map`, `filter` and `forEach` (#3256).
6
+ Thanks @dvd101x.
7
+ - Feat: improve performance of the methods `map()` and `forEach()`
8
+ of `DenseMatrix` (#3251). Thanks @Galm007.
9
+ - Fix: #3253 cannot use identifiers containing special characters in function
10
+ `derivative`.
11
+ - Fix: improve the type definitions of `ConstantNode` to support all data
12
+ types (#3257). Thanks @smith120bh.
13
+ - Fix: #3259 function `symbolicEqual` missing in the TypeScript definitions.
14
+ - Fix: #3246 function `leafCount` missing in the TypeScript definitions.
15
+ - Fix: #3267 implicit multiplication with a negative number and unit `in`.
16
+ - Docs: fix broken links on the Configuration page. Thanks @vassudanagunta.
17
+ - Docs: document the syntax of `map` and `forEach` in the expression parser
18
+ (#3272). Thanks @dvd101x.
19
+
3
20
  # 2024-08-27, 13.1.1
4
21
 
5
22
  - Fix security vulnerability in the CLI and web API allowing to call functions