mathjs 15.1.1 → 15.2.0

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.
Files changed (40) hide show
  1. package/HISTORY.md +10 -0
  2. package/README.md +2 -2
  3. package/lib/browser/math.js +1 -1
  4. package/lib/browser/math.js.LICENSE.txt +2 -2
  5. package/lib/browser/math.js.map +1 -1
  6. package/lib/cjs/entry/dependenciesAny/dependenciesDen.generated.js +19 -0
  7. package/lib/cjs/entry/dependenciesAny/dependenciesNum.generated.js +19 -0
  8. package/lib/cjs/entry/dependenciesAny.generated.js +14 -0
  9. package/lib/cjs/entry/impureFunctionsAny.generated.js +123 -121
  10. package/lib/cjs/entry/pureFunctionsAny.generated.js +344 -336
  11. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +4 -0
  12. package/lib/cjs/expression/embeddedDocs/function/fraction/den.js +14 -0
  13. package/lib/cjs/expression/embeddedDocs/function/fraction/num.js +14 -0
  14. package/lib/cjs/factoriesAny.js +15 -1
  15. package/lib/cjs/function/fraction/den.js +60 -0
  16. package/lib/cjs/function/fraction/num.js +62 -0
  17. package/lib/cjs/header.js +2 -2
  18. package/lib/cjs/type/unit/Unit.js +7 -0
  19. package/lib/cjs/utils/array.js +3 -0
  20. package/lib/cjs/utils/customs.js +39 -46
  21. package/lib/cjs/utils/map.js +2 -2
  22. package/lib/cjs/version.js +1 -1
  23. package/lib/esm/entry/dependenciesAny/dependenciesDen.generated.js +12 -0
  24. package/lib/esm/entry/dependenciesAny/dependenciesNum.generated.js +12 -0
  25. package/lib/esm/entry/dependenciesAny.generated.js +2 -0
  26. package/lib/esm/entry/impureFunctionsAny.generated.js +125 -123
  27. package/lib/esm/entry/pureFunctionsAny.generated.js +341 -333
  28. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +4 -0
  29. package/lib/esm/expression/embeddedDocs/function/fraction/den.js +8 -0
  30. package/lib/esm/expression/embeddedDocs/function/fraction/num.js +8 -0
  31. package/lib/esm/factoriesAny.js +3 -1
  32. package/lib/esm/function/fraction/den.js +54 -0
  33. package/lib/esm/function/fraction/num.js +56 -0
  34. package/lib/esm/type/unit/Unit.js +7 -0
  35. package/lib/esm/utils/array.js +3 -0
  36. package/lib/esm/utils/customs.js +42 -56
  37. package/lib/esm/utils/map.js +3 -3
  38. package/lib/esm/version.js +1 -1
  39. package/package.json +1 -1
  40. package/types/index.d.ts +51 -1
package/HISTORY.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # History
2
2
 
3
+ # 2026-04-07, 15.2.0
4
+
5
+ - Feat: Add amp-hour charge unit `Ah` (#3617). Thanks @adrfantini.
6
+ - Feat: #3595 implement `num` and `den` functions returning the parts of
7
+ a fraction (#3605). Thanks @AnslemHack.
8
+ - Fix: Provide TypeScript types for [and/or]TransformDependencies (#3639).
9
+ Thanks @NilsDietrich.
10
+ - Fix: two security vulnerabilities that allowed executing arbitrary JavaScript
11
+ via the expression parser. Thanks @CykuTW for finding and reporting them.
12
+
3
13
  # 2026-02-10, 15.1.1
4
14
 
5
15
  - Fix: #3631 Handle bigints in `compareNatural` (#3632). Thanks @Dheemanth07.
package/README.md CHANGED
@@ -191,9 +191,9 @@ To see the coverage results, open the generated report in your browser:
191
191
 
192
192
  ### Continuous integration testing
193
193
 
194
- Continuous integration tests are run on [GitHub Actions](https://github.com/josdejong/mathjs/actions) and [TestMu AI](https://www.testmu.ai) (formerly LambdaTest) every time a commit is pushed to GitHub. GitHub Actions runs the tests for different versions of node.js, and TestMu AI runs the tests on all major browsers.
194
+ Continuous integration tests are run on [GitHub Actions](https://github.com/josdejong/mathjs/actions) and [TestMu AI](https://www.testmuai.com/?utm_medium=sponsor&utm_source=mathjs) (formerly LambdaTest) every time a commit is pushed to GitHub. GitHub Actions runs the tests for different versions of node.js, and TestMu AI runs the tests on all major browsers.
195
195
 
196
- [![TestMu AI](https://raw.github.com/josdejong/mathjs/develop/misc/testmu-ai.svg)](https://www.testmu.ai)
196
+ [![TestMu AI](https://raw.github.com/josdejong/mathjs/develop/misc/testmu-ai.svg)](https://www.testmuai.com/?utm_medium=sponsor&utm_source=mathjs)
197
197
 
198
198
  Thanks, GitHub Actions and TestMu AI for the generous free hosting of this open source project!
199
199