Skip to content

Commit

Permalink
chore: publish mathjs@12.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Apr 24, 2024
1 parent 9e86a6c commit 970b541
Show file tree
Hide file tree
Showing 32 changed files with 58 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docs/expressions/expression_trees.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ All nodes have the following methods:
this node and each of its child nodes. Similar to `Array.forEach`, except
recursive.
The callback function is a mapping function accepting a node, and returning
a replacement for the node or the original node. Function `callback` is
nothing. Function `callback` is
called as `callback(node: Node, path: string, parent: Node)` for every node
in the tree. Parameter `path` is a string containing a relative JSON Path.
Example:
Expand Down
8 changes: 4 additions & 4 deletions download.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Math.js can be downloaded or linked from various content delivery networks:
<tbody>
<tr>
<td>unpkg</td>
<td><a href="https://unpkg.com/mathjs@12.4.1/">https://unpkg.com/mathjs@12.4.1/</a></td>
<td><a href="https://unpkg.com/mathjs@12.4.2/">https://unpkg.com/mathjs@12.4.2/</a></td>
</tr>
<tr>
<td>cdnjs</td>
Expand All @@ -48,9 +48,9 @@ Or download the full bundle directly from [unpkg](https://unpkg.com):

<p>
<a
href="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"
>math.js (version 12.4.1, <span id="size">200 kB</span>, minified and gzipped)</a>
and if needed the <a href="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js.map">source map</a>
href="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"
>math.js (version 12.4.2, <span id="size">201 kB</span>, minified and gzipped)</a>
and if needed the <a href="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js.map">source map</a>
</p>

Too large for you? Create your own [custom bundle](docs/custom_bundling.html).
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/angle_configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
</style>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/angle_configuration.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ File: [angle_configuration.html](angle_configuration.html) (click for a live dem
}
</style>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/basic_usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>math.js | basic usage</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/basic_usage.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ File: [basic_usage.html](basic_usage.html) (click for a live demo)
<head>
<meta charset="utf-8">
<title>math.js | basic usage</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/currency_conversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | currency conversion</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<style>
body,
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/currency_conversion.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ File: [currency_conversion.html](currency_conversion.html) (click for a live dem
<meta charset="utf-8">
<title>math.js | currency conversion</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<style>
body,
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/custom_separators.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
</style>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/custom_separators.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ File: [custom_separators.html](custom_separators.html) (click for a live demo)
}
</style>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/lorenz.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>math.js | Lorenz Attractor</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<script src="https://cdn.plot.ly/plotly-2.25.2.min.js" charset="utf-8"></script>
<style>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/lorenz.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ File: [lorenz.html](lorenz.html) (click for a live demo)
<head>
<meta charset="UTF-8">
<title>math.js | Lorenz Attractor</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<script src="https://cdn.plot.ly/plotly-2.25.2.min.js" charset="utf-8"></script>
<style>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/lorenz_interactive.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>math.js | Lorenz Attractor</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<script src="https://cdn.plot.ly/plotly-2.28.0.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.js"
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/lorenz_interactive.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ File: [lorenz_interactive.html](lorenz_interactive.html) (click for a live demo)
<head>
<meta charset="UTF-8">
<title>math.js | Lorenz Attractor</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<script src="https://cdn.plot.ly/plotly-2.28.0.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.js"
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/plot.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>math.js | plot</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/plot.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ File: [plot.html](plot.html) (click for a live demo)
<head>
<meta charset="utf-8">
<title>math.js | plot</title>
<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<script src="https://cdn.plot.ly/plotly-1.35.2.min.js"></script>

Expand Down
2 changes: 1 addition & 1 deletion examples/browser/pretty_printing_with_mathjax.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | pretty printing with MathJax</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/pretty_printing_with_mathjax.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ File: [pretty_printing_with_mathjax.html](pretty_printing_with_mathjax.html) (cl
<meta charset="utf-8">
<title>math.js | pretty printing with MathJax</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/printing_html.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>math.js | printing HTML</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<style>
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/printing_html.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ File: [printing_html.html](printing_html.html) (click for a live demo)
<meta charset="utf-8">
<title>math.js | printing HTML</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>

<style>
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/requirejs_loading.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<script>
// load math.js using require.js
require(['https://unpkg.com/mathjs@12.4.1/lib/browser/math.js'], function (math) {
require(['https://unpkg.com/mathjs@12.4.2/lib/browser/math.js'], function (math) {
// evaluate some expression
const result = math.evaluate('1.2 * (2 + 4.5)')
document.write(result)
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/requirejs_loading.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ File: [requirejs_loading.html](requirejs_loading.html) (click for a live demo)

<script>
// load math.js using require.js
require(['https://unpkg.com/mathjs@12.4.1/lib/browser/math.js'], function (math) {
require(['https://unpkg.com/mathjs@12.4.2/lib/browser/math.js'], function (math) {
// evaluate some expression
const result = math.evaluate('1.2 * (2 + 4.5)')
document.write(result)
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/rocket_trajectory_optimization.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<title>math.js | rocket trajectory optimization</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/rocket_trajectory_optimization.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ File: [rocket_trajectory_optimization.html](rocket_trajectory_optimization.html)
<meta charset="utf-8">
<title>math.js | rocket trajectory optimization</title>

<script src="https://unpkg.com/mathjs@12.4.1/lib/browser/math.js"></script>
<script src="https://unpkg.com/mathjs@12.4.2/lib/browser/math.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/webworkers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ File: [webworkers.html](webworkers.html) (click for a live demo)
File: [worker.js](worker.js)

```js
importScripts('https://unpkg.com/mathjs@12.4.1/lib/browser/math.js')
importScripts('https://unpkg.com/mathjs@12.4.2/lib/browser/math.js')

// create a parser
const parser = self.math.parser()
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/webworkers/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
importScripts('https://unpkg.com/mathjs@12.4.1/lib/browser/math.js')
importScripts('https://unpkg.com/mathjs@12.4.2/lib/browser/math.js')

// create a parser
const parser = self.math.parser()
Expand Down
9 changes: 9 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ layout: default

<h1 id="history">History <a href="#history" title="Permalink">#</a></h1>

<h1 id="20240424-1242">2024-04-24, 12.4.2 <a href="#20240424-1242" title="Permalink">#</a></h1>

- Fix <a href="https://github.com/josdejong/mathjs/issues/3192">#3192</a>: function `isNaN` returns `false` for `NaN` units in a matrix or
array (<a href="https://github.com/josdejong/mathjs/issues/3193">#3193</a>). Thanks <a href="https://github.com/lgerin">@lgerin</a>.
- Fix: <a href="https://github.com/josdejong/mathjs/issues/3180">#3180</a> fix type definitions of functions `add` and `multiply` to allow
more than two arguments.
- Docs: correct the docs about `traverse` returning void (<a href="https://github.com/josdejong/mathjs/issues/3177">#3177</a>).
Thanks <a href="https://github.com/rohildshah">@rohildshah</a>.


<h1 id="20240313-1241">2024-03-13, 12.4.1 <a href="#20240313-1241" title="Permalink">#</a></h1>

Expand Down
2 changes: 1 addition & 1 deletion js/lib/math.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/lib/math.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* It features real and complex numbers, units, matrices, a large set of
* mathematical functions, and a flexible expression parser.
*
* @version 12.4.1
* @date 2024-03-13
* @version 12.4.2
* @date 2024-04-24
*
* @license
* Copyright (C) 2013-2024 Jos de Jong <wjosdejong@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion js/lib/math.js.map

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/josdejong/mathjs.git"
},
"dependencies": {
"mathjs": "12.4.1"
"mathjs": "12.4.2"
},
"devDependencies": {
"fancy-log": "2.0.0",
Expand Down

0 comments on commit 970b541

Please sign in to comment.