mathjs 12.3.0 → 12.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/HISTORY.md +27 -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/entry/configReadonly.js +1 -1
  6. package/lib/cjs/entry/dependenciesAny/dependenciesHelpClass.generated.js +2 -2
  7. package/lib/cjs/entry/dependenciesNumber/dependenciesHelpClass.generated.js +2 -2
  8. package/lib/cjs/entry/impureFunctionsAny.generated.js +14 -14
  9. package/lib/cjs/entry/impureFunctionsNumber.generated.js +1 -1
  10. package/lib/cjs/entry/pureFunctionsAny.generated.js +11 -11
  11. package/lib/cjs/expression/Help.js +21 -4
  12. package/lib/cjs/expression/node/OperatorNode.js +2 -1
  13. package/lib/cjs/expression/transform/utils/compileInlineExpression.js +5 -4
  14. package/lib/cjs/function/string/bin.js +3 -3
  15. package/lib/cjs/function/string/format.js +3 -3
  16. package/lib/cjs/function/string/hex.js +3 -3
  17. package/lib/cjs/function/string/oct.js +3 -3
  18. package/lib/cjs/header.js +2 -2
  19. package/lib/cjs/type/unit/physicalConstants.js +1 -1
  20. package/lib/cjs/utils/bignumber/formatter.js +17 -27
  21. package/lib/cjs/utils/map.js +174 -14
  22. package/lib/cjs/utils/number.js +75 -33
  23. package/lib/cjs/utils/scope.js +4 -10
  24. package/lib/cjs/version.js +1 -1
  25. package/lib/esm/entry/configReadonly.js +1 -1
  26. package/lib/esm/entry/dependenciesAny/dependenciesHelpClass.generated.js +2 -2
  27. package/lib/esm/entry/dependenciesNumber/dependenciesHelpClass.generated.js +2 -2
  28. package/lib/esm/entry/impureFunctionsAny.generated.js +16 -16
  29. package/lib/esm/entry/impureFunctionsNumber.generated.js +1 -1
  30. package/lib/esm/entry/pureFunctionsAny.generated.js +12 -12
  31. package/lib/esm/expression/Help.js +21 -4
  32. package/lib/esm/expression/node/OperatorNode.js +2 -1
  33. package/lib/esm/expression/transform/utils/compileInlineExpression.js +5 -4
  34. package/lib/esm/function/string/bin.js +3 -3
  35. package/lib/esm/function/string/format.js +3 -3
  36. package/lib/esm/function/string/hex.js +3 -3
  37. package/lib/esm/function/string/oct.js +3 -3
  38. package/lib/esm/type/unit/physicalConstants.js +1 -1
  39. package/lib/esm/utils/bignumber/formatter.js +19 -28
  40. package/lib/esm/utils/map.js +97 -1
  41. package/lib/esm/utils/number.js +76 -34
  42. package/lib/esm/utils/scope.js +5 -11
  43. package/lib/esm/version.js +1 -1
  44. package/package.json +12 -12
  45. package/types/index.d.ts +30 -18
package/HISTORY.md CHANGED
@@ -1,6 +1,33 @@
1
1
  # History
2
2
 
3
3
 
4
+ # 2024-02-08, 12.3.2
5
+
6
+ - Improved the performance of custom defined functions in the expression
7
+ parser (#3150).
8
+ - Fix: #3143 cannot use `and` and `or` inside a function definition.
9
+ Regression since `v12.1.0` (#3150).
10
+
11
+
12
+ # 2024-02-01, 12.3.1
13
+
14
+ - Improved the typings of the arguments of `ArrayNode`, `FunctionNode`,
15
+ `IndexNode`, `OperatorNode`, and `RelationalNode` (#3123). Thanks @sylee957.
16
+ - Added a fully featured code editor example with CodeMirror and Katex (#3027).
17
+ Thanks @dvd101x.
18
+ - Fix: #3114 build warnings related to a number of wrong `/* #__PURE__ */`
19
+ annotations.
20
+ - Fix: #3142 support BigNumber values for the options of function `format`:
21
+ `precision`, `wordSize`, `lowerExp`, `upperExp`. Support BigNumber values
22
+ for the option `wordSize` in the functions `hex`, `bin`, and `oct`.
23
+ - Fix: #3125 type definitions of function `hypot` (#3144).
24
+ Thanks @silentmissile.
25
+ - Fix: #3141 `help(config)` altering the actual `config` when evaluating the
26
+ examples.
27
+ - Docs: #3145 fix documentation about REPL, it does require a build step
28
+ nowadays.
29
+
30
+
4
31
  # 2024-01-12, 12.3.0
5
32
 
6
33
  - Implement support new metric prefixes: `ronna` (`R`), `quetta` (`Q`),