Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/specify import require paths #1941

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
52f6def
Fix examples in documentation of `row` and `column`, see #230
josdejong Feb 26, 2020
033a6ba
Publish v6.6.1
josdejong Feb 26, 2020
7fc4606
Use prepare script (#1751)
cinderblock Mar 2, 2020
9272395
Create a `test:all` script to remove duplication (see #1751)
josdejong Mar 2, 2020
6389ed1
Update history and contributor list
josdejong Mar 2, 2020
13ce295
Update devDependencies
josdejong Mar 2, 2020
86606dc
Update babel7 to the latest version 🚀 (#1762)
greenkeeper[bot] Mar 6, 2020
d8d9a93
remove trailing space in HISTORY (#1775)
harrysarson Mar 14, 2020
1dbae6e
Update devDependencies
josdejong Mar 23, 2020
08feb7f
remove contributors from package.json in favour of AUTHORS (#1774)
harrysarson Mar 23, 2020
b2af1d7
Update devDependencies
josdejong Mar 29, 2020
5624e69
Fix #1789: Function `eigs` not calculating with BigNumber precision w…
josdejong Mar 29, 2020
1496cc5
Publish v6.6.2
josdejong Mar 29, 2020
aafef57
Improve dot product (#1773)
cshaa Mar 29, 2020
56e0d1e
Update history
josdejong Mar 29, 2020
b8f2636
Update devDependencies
josdejong Apr 4, 2020
7e8d128
Fixed `eigs` not using `config.epsilon` (see #1789)
josdejong Apr 4, 2020
fae6527
Should be able to take NAMED_DELIMITER as object keys (#1798)
Veeloxfire Apr 4, 2020
a23f9c3
Update history
josdejong Apr 4, 2020
3153de2
Clarify the documentation on `scope` when using `rawArgs`, see #1055
josdejong Apr 4, 2020
4cd2704
Prefix the cli test with 'node' so it works on windows
Veeloxfire Apr 6, 2020
268b594
Revert "Prefix the cli test with 'node' so it works on windows"
Veeloxfire Apr 6, 2020
6bff420
Revert "Revert "Prefix the cli test with 'node' so it works on windows""
Veeloxfire Apr 6, 2020
b1850b5
Bump @babel/preset-env from 7.9.0 to 7.9.5 (#1810)
dependabot-preview[bot] Apr 8, 2020
76a9506
Merge branch 'develop' into Undo
josdejong Apr 8, 2020
f6a8a23
Prefix the cli test with 'node' so it works on windows (#1807)
Veeloxfire Apr 8, 2020
7833e23
Fix #1808: `toNumber()` not working on a unitless unit (#1811)
josdejong Apr 8, 2020
9f8564b
Update history
josdejong Apr 8, 2020
bc3cbbc
Diff function
Veeloxfire Apr 8, 2020
49a6521
Included createDiff in factoriesAny
Veeloxfire Apr 8, 2020
b94a346
Diff docs
Veeloxfire Apr 8, 2020
9a66b80
Finalized Diff function
Veeloxfire Apr 8, 2020
79066f1
Merge branch 'develop' into Undo
Veeloxfire Apr 8, 2020
7216bc8
Bump karma from 4.4.1 to 5.0.1
dependabot-preview[bot] Apr 10, 2020
0dda76d
update package-lock
harrysarson Apr 11, 2020
3f6646f
Fix #1813: bug in engineering notation for numbers of function `forma…
josdejong Apr 11, 2020
c2c3f73
Merge branch 'develop' into Undo
josdejong Apr 11, 2020
8fcf7d2
Improve explanation of engineering notation in function format
josdejong Apr 11, 2020
12395f2
Merge branch 'develop' into Undo
josdejong Apr 11, 2020
7501265
Publish v6.6.3
josdejong Apr 11, 2020
6a50291
Merge branch 'develop' into Undo
josdejong Apr 11, 2020
cb32347
Bump uglify-js from 3.8.1 to 3.9.0 (#1816)
dependabot-preview[bot] Apr 14, 2020
8945f00
Publish v6.6.4
josdejong Apr 15, 2020
c1fc7a4
Bump uglify-js from 3.9.0 to 3.9.1 (#1818)
dependabot-preview[bot] Apr 16, 2020
1348d67
Updated diff function to allow selecting a dimension
Veeloxfire Apr 24, 2020
ac92336
Bump karma from 4.4.1 to 5.0.3 (#1830)
dependabot-preview[bot] Apr 30, 2020
4e78bb7
Bump karma-mocha from 1.3.0 to 2.0.1 (#1832)
dependabot-preview[bot] Apr 30, 2020
9c0cd2c
Bump karma from 5.0.3 to 5.0.4 (#1839)
dependabot-preview[bot] May 1, 2020
8c6aacc
Bump mocha from 7.1.1 to 7.1.2 (#1827)
dependabot-preview[bot] May 1, 2020
ccb1323
Update devDependencies
josdejong May 3, 2020
28b7a02
Fix #1834: value `Infinity` cannot be serialized and deserialized
josdejong May 3, 2020
f948755
Fix broken bundle tests and linting issues
josdejong May 3, 2020
d145588
Fix unit test on node 8 (yeah, I know)
josdejong May 3, 2020
6038d12
Fix #1842: value `Infinity` not turned into the latex symbol `\\infty`
josdejong May 4, 2020
37d9184
Publish v6.6.5
josdejong May 4, 2020
654e193
Fix fixer.io example, the free plan doesn't support SSL
josdejong May 6, 2020
aafa456
Merge branch 'develop' into v7
josdejong May 6, 2020
0566944
Change node versions (#1845)
Markel May 6, 2020
23c1ebf
Update version number to 7.0.0
josdejong May 6, 2020
23e38be
Remove all deprecated code and warnings
josdejong May 6, 2020
5f87df5
Update karma browser versions
josdejong May 6, 2020
a572de4
Revert testing newer android device (takes too long)
josdejong May 6, 2020
87f9f9e
Publish v7.0.0
josdejong May 7, 2020
9c293a8
Bump karma from 5.0.4 to 5.0.5 (#1848)
dependabot-preview[bot] May 8, 2020
05860b8
Clarify `eigs` documentation (#1847)
Lazersmoke May 9, 2020
f40fab0
Update history and author list
josdejong May 9, 2020
cf8ade9
Remove greenkeeper badge
josdejong May 9, 2020
1b6dfd0
Bump standard from 14.3.3 to 14.3.4 (#1853)
dependabot-preview[bot] May 12, 2020
db78ff5
Bump uglify-js from 3.9.2 to 3.9.3 (#1858)
dependabot-preview[bot] May 16, 2020
c896f13
Bump karma from 5.0.5 to 5.0.7 (#1859)
dependabot-preview[bot] May 18, 2020
23f32fa
Fix #1856: make the library robust against Object prototype pollution…
josdejong May 18, 2020
d229faa
Bump karma from 5.0.7 to 5.0.8 (#1863)
dependabot-preview[bot] May 19, 2020
24dba41
Bump karma-browserstack-launcher from 1.5.2 to 1.6.0 (#1861)
dependabot-preview[bot] May 19, 2020
e44cb97
Fix #1855: Fix error in the documentation for `math.nthRoots(x)`
josdejong May 20, 2020
2d394ba
Merge remote-tracking branch 'origin/develop' into develop
josdejong May 20, 2020
20d83de
Bump karma from 5.0.8 to 5.0.9 (#1864)
dependabot-preview[bot] May 20, 2020
8cf7bd6
Bump codecov from 3.6.5 to 3.7.0 (#1862)
dependabot-preview[bot] May 20, 2020
5c179a9
Bump mocha from 7.1.2 to 7.2.0 (#1865)
dependabot-preview[bot] May 25, 2020
f038a4c
Update devDependencies
josdejong May 30, 2020
3202027
Publish v7.0.1
josdejong May 30, 2020
5e85b19
Bump nyc from 15.0.1 to 15.1.0 (#1878)
dependabot-preview[bot] Jun 5, 2020
7dd764b
Update devDependencies
josdejong Jun 6, 2020
ef1c7a2
Bump mocha from 7.2.0 to 8.0.1 (#1881)
dependabot-preview[bot] Jun 11, 2020
6c7f4c8
Fix #1882: have `DenseMatrix.resize` and `SparseMatrix.resize` accept…
josdejong Jun 13, 2020
ac97133
Fix lint error
josdejong Jun 13, 2020
8428b18
Bump karma from 5.0.9 to 5.1.0 (#1884)
dependabot-preview[bot] Jun 19, 2020
0ae2d49
Fix `sum("abc")` not throwing a conversion error
josdejong Jun 23, 2020
4154a50
Merge remote-tracking branch 'origin/develop' into develop
josdejong Jun 23, 2020
eef3b9e
Fix `prod("abc")` not throwing a conversion error
josdejong Jun 23, 2020
f8521d3
Add two examples on creating a custom instance of `evaluate`
josdejong Jun 23, 2020
7b5038e
Update devDependencies. Fix linting error
josdejong Jun 23, 2020
c19492a
Fix functions `sum`, `prod`, `min`, and `max` not throwing a conversi…
josdejong Jun 24, 2020
719fc80
Fix unit test
josdejong Jun 24, 2020
9e4967a
Publish v 7.0.2
josdejong Jun 24, 2020
98ce1fe
g != h (#1897)
Groovin-Dev Jun 27, 2020
2df28bb
Fix #1899: documentation on expression trees still using old namespace
josdejong Jun 28, 2020
ca6aa45
Fix typo
josdejong Jun 28, 2020
cab9866
Merge remote-tracking branch 'origin/develop' into develop
josdejong Jun 28, 2020
2a76ff6
Describe `.toTex` function property being deprecated since v6.0.0 (se…
josdejong Jun 30, 2020
103f078
Oops, remove wrong change again
josdejong Jun 30, 2020
e9cf247
Fix #1902: typo in an example in the documentation
josdejong Jul 3, 2020
d3f7117
Update devDependencies
josdejong Jul 11, 2020
859cfa2
Replace recursive calls in typed-functions with `this`-style calls (#…
nickewing Jul 13, 2020
6ef0f9b
Allow to pick embedded docs from an other comment block than just the…
josdejong Jul 13, 2020
76a0ec7
Publish v7.1.0
josdejong Jul 13, 2020
e993e83
Added other types to diff.test.js
Veeloxfire Jul 17, 2020
0c61d21
added unit tests for diff Errors
Veeloxfire Jul 17, 2020
fbebed7
added better(?) support for matrices
Veeloxfire Jul 17, 2020
3ecf86e
spelling in diff.test.js
Veeloxfire Jul 17, 2020
28115de
Updated docs
Veeloxfire Jul 17, 2020
1fd3c8b
Added one-based indexing for diff inside the parse
Veeloxfire Jul 17, 2020
84f2746
Merge branch 'Undo' of https://github.com/Veeloxfire/mathjs into Veel…
josdejong Jul 19, 2020
96330dd
Update history and authors
josdejong Jul 19, 2020
80fb20f
Fix some unit tests failing on IE 11
josdejong Jul 19, 2020
2e0b37e
Update devDependencies
Jul 25, 2020
cbed43e
Add `.js` extension to source file imports
GreenImp Aug 5, 2020
d755bca
Specify package `exports` in `package.json`
GreenImp Aug 5, 2020
42d1743
Move all compiled scripts into `lib` directory
GreenImp Aug 5, 2020
e2a11e0
Allow importing of package.json
GreenImp Aug 7, 2020
d98fb11
Make library ESM first
GreenImp Sep 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
],
"plugins": ["@babel/plugin-transform-object-assign"],
"ignore": [
"dist/*.js",
"lib/**/*.js",
"es/**/*.js"
"lib/**/*.js"
]
}
}
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
.vscode
.c9
_site
coverage
*swp
node_modules
*.log
dist
lib
es
.nyc_output
*.bak

node_modules
.nyc_output
/coverage

/lib/**/*.js
/lib/**/*.map
*.generated.js
28 changes: 28 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Bartosz Leoniak <leoniak.bartosz@gmail.com>
Benjamin Lucas <bnlcas@gmail.com>
Eric Mansfield <ericman314@gmail.com>
Finn Pauls <derfinn@gmail.com>
Gary Passero <gary.passero@rolemodelsoftware.com>
Harsh Gupta <w327AJUdMV2yGVq5dkNX>
Karl Lew <karl@firepick.org>
Horatiu Lazu <horatiulazu@gmail.com>
Michael M. <mm151@og4-pool-23.ub.privat>
Oleg <koshelnikov@gmail.com>
Pat Grasso <pgrasso@stevens.edu>
Saket Saurabh <contact@saketsaurabh.me>
Sathish Kumar Subramani <kartheeswarison3@gmail.com>
Slava Ganzin <slava.ganzin@gmail.com>
Stu Blair <elstoo@gmail.com>
Harry Sarson <harry.sarson@hotmail.co.uk> H.D. Sarson <hds28@cam.ac.uk>
<harry.sarson@hotmail.co.uk> <harry@home.home>
<harry.sarson@hotmail.co.uk> <harry.sason@hotmail.co.uk>
<harry.sarson@hotmail.co.uk> <harry.sarson@utterberry.com>
Timothy Lee <tetslee@gmail.com>
Tóth Róbert <nekomajin42@gmail.com>
Todd Morse <todd@morsecodist.io>
<rogelio.javier@baucells.net> <rjbaucells@users.noreply.github.com>
Rogelio J. Baucells <rogelio.javier@baucells.net> rjbaucells <rjbaucells@gmail.com>
<wjosdejong@gmail.com> <jos@almende.org>
<pbuchsbaum@globo.com> <30529574+paulobuchsbaum@users.noreply.github.com>
Paulo Buchsbaum <pbuchsbaum@globo.com>
<devanp92@ufl.edu> <devanp92@users.noreply.github.com>
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- 8
- 10
- 12
- 14

script: npm run test:src

Expand Down
139 changes: 139 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# Authors ordered by first contribution.

Jos de Jong <wjosdejong@gmail.com>
Bart Kiers <bkiers@gmail.com>
Bryan Cuccioli <blc72@cornell.edu>
Zak Zibrat <zakzibrat@gmail.com>
Jim Garrison <jim@garrison.cc>
Sebastien Piquemal <sebpiq@gmail.com>
Guillermo Indalecio <guillermobox@gmail.com>
Waldir Pimenta <waldir@email.com>
Elijah Insua <tmpvar@gmail.com>
Marcus André <hello@marcusandre.de>
Daniel Levin <daniellevin2607@gmail.com>
hama_du <dercll1020@gmail.com>
Finn Pauls <derfinn@gmail.com>
Matt Traynham <mrt6467@alum.uncw.edu>
Fabrice Colas <pub@grano-salis.net>
Rogelio J. Baucells <rogelio.javier@baucells.net>
Niels Heisterkamp <niels@ineffable.nl>
Mitchel Kelonye <kelonyemitchel@gmail.com>
Pavel Panchekha <me@pavpanchekha.com>
Owen Versteeg <me@owenversteeg.com>
Andy Pan <andy0130tw@yahoo.com.tw>
Ryan Seys <ryan@ryanseys.com>
Favian Contreras <fnc4@cornell.edu>
Kenan Yildirim <kenan@kenany.me>
Pete Corey <petecorey@gmail.com>
Max Bruckner <max@maxbruckner.de>
Ole Kröger <o.kroeger@wikunia.de>
J. Harshbarger <hypercubed@gmail.com>
James Herdman <james.herdman@gmail.com>
Nick Foti <nfoti01@gmail.com>
Devan Patel <devanp92@ufl.edu>
Kunal Vyas <kv.kunalvyas@gmail.com>
Liam Newman <bitwiseman@gmail.com>
Alex Edgcomb <alex.edgcomb@zyante.com>
Ganga Christopher <ganga.chris@outlook.com>
Ubuntu <ubuntu@ip-172-31-35-162.us-west-2.compute.internal>
Sergey Romanov <xxsmotur@gmail.com>
Eric Mansfield <ericman314@gmail.com>
Veaceslav Grimalschi <grimalschi@yandex.ru>
Holman Gao <holman@golmansax.com>
Robert Eisele <robert@xarg.org>
Tomek Wiszniewski <t.wiszniewski@gmail.com>
Ben Nelson <Ben.Nelson@inin.com>
devdevdata222 <devdevdata222@gmail.com>
David Simons <12e.david@gmail.com>
john marinelli <jonmarinelli@hotmail.com>
paulmasson <paulmasson@comcast.net>
Keunhong Park <kpar@cs.washington.edu>
Brett Jurgens <brett.jurgens@avant.com>
oyvindjam <oyvindjam@gmail.com>
Harsh Gupta <w327AJUdMV2yGVq5dkNX>
Stu Blair <elstoo@gmail.com>
Priidik Vaikla <priidik.vaikla@gmail.com>
Mathias Polligkeit <potoroo@posteo.de>
Horatiu Lazu <horatiulazu@gmail.com>
Thomas Brierley <tomxor@gmail.com>
Ekin Koc <ekin@eknkc.com>
Pat Grasso <pgrasso@stevens.edu>
Adam Butler <adam@lab.io>
Timothy Lee <tetslee@gmail.com>
woylie <woylie@users.noreply.github.com>
Harry Sarson <harry.sarson@hotmail.co.uk>
Sebastian Ruhleder <sebastian.ruhleder@nterra.com>
Maxired (Maxence Dalmais) <github@maxired.fr>
Adam Kelly <adam.guitar12@gmail.com>
Troy Alford <TroyAlford@users.noreply.github.com>
Todd Morse <todd@morsecodist.io>
Dzmitry Litskalau <litmit@gmail.com>
Max Kramer <mckramer@gmail.com>
Slava Ganzin <slava.ganzin@gmail.com>
Gulfaraz Yasin <gulfarazyasin@gmail.com>
Tóth Róbert <nekomajin42@gmail.com>
Victor <viclai@users.noreply.github.com>
viclai <victor1.lai@gmail.com>
PJ Hampton <pjhampton@protonmail.com>
Alexander Beyn <malex@fatelectrons.org>
Vincent Lee <ancienlee@live.com>
Karl Lew <karl@firepick.org>
mocking <mocking@gmail.com>
Michael M. <mm151@og4-pool-23.ub.privat>
Ivan Vergiliev <ivan.vergiliev@gmail.com>
Paulo Buchsbaum <pbuchsbaum@globo.com>
jeffreyshen19 <jshen@andover.edu>
Oleg <koshelnikov@gmail.com>
Joel Hoover <joelahoover@gmail.com>
denisx <github@denisx.ru>
Clément P <yukulele@users.noreply.github.com>
jean-emmanuel <jean-emmanuel.doucet@groolot.net>
pokeball99 <pokeball99@users.noreply.github.com>
Robin Wieruch <wrobin@gmx.net>
Dakota Blair <dakota@tensen.net>
Henrique Ferrolho <ferrolho@users.noreply.github.com>
Jack Schmidt <github@mowsey.org>
Daniel Ruf <daniel@daniel-ruf.de>
Saket Saurabh <contact@saketsaurabh.me>
Gary Passero <gary.passero@rolemodelsoftware.com>
Chris Chudzicki <christopher.chudzicki@gmail.com>
Daniel Kostro <kostro.d@gmail.com>
Ben Weinshel <ben@weinshel.net>
Honeybar <verina_jean@hotmail.com>
Amin Abdul Manaf <afolanyaaminu@gmail.com>
Jason Shin <yong.j.shin@student.uts.edu.au>
Mathias Rasmussen <mathiasvr@gmail.com>
Sathish Kumar Subramani <kartheeswarison3@gmail.com>
dkenul <damon.kenul@gmail.com>
Gold Holk <85619andy@gmail.com>
Benjamin Lucas <bnlcas@gmail.com>
Albert Emil <albert.emil@posteo.co.uk>
Maximilian <mcschempp@gmx.de>
Rian McGuire <rian@rian.id.au>
Jack Mason <42824992+jackcmason@users.noreply.github.com>
SzechuanSage <chris.hadgis@gmail.com>
sam-19 <sampsa.lohi@gmail.com>
Chris Hadgis <SzechuanSage@users.noreply.github.com>
Jackie Han <han.guokai@gmail.com>
Kevin J <qaz111id@gmail.com>
Vlad Levitskiy <swimer96@mail.ru>
Tom MacWright <tmcw@users.noreply.github.com>
0xflotus <0xflotus@gmail.com>
Waseem Yusuf <waseem.yusuf.hossain@gmail.com>
Tanmay <maytan.thegeek@gmail.com>
Clinton Curry <github@clintoncurry.net>
Arthur Guiot <arguiot@gmail.com>
Bartosz Leoniak <leoniak.bartosz@gmail.com>
Veeloxfire <58116051+Veeloxfire@users.noreply.github.com>
Arkajit Mandal <arkajitmandal@gmail.com>
David Bramwell <13053834+dbramwell@users.noreply.github.com>
Cameron Tacklind <cameron@tacklind.com>
Michal Grňo <m93a.cz@gmail.com>
Tom Hickson <thomasjhickson@gmail.com>
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Markel F <github@markel.dev>
Lazersmoke <lazersmoke@gmail.com>
SungJinWoo-SL <56172528+SungJinWoo-SL@users.noreply.github.com>
Nick Ewing <nick@nickewing.net>

# Generated by tools/update-authors.js
81 changes: 77 additions & 4 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,98 @@
# History

# not yet published, version 7.2.0

# not yet published, version 6.6.1
- Implemented new function `diff`, see #1634, #1920. Thanks @Veeloxfire.


# 2020-07-13, version 7.1.0

- Implement support for recursion (self-referencing) of typed-functions,
new in `typed-function@2.0.0`. This fixes #1885: functions which where
extended with a new data type did not always work. Thanks @nickewing.
- Fix #1899: documentation on expression trees still using old namespace
`math.expression.node.*` instead of `math.*`.


# 2020-06-24, version 7.0.2

- Fix #1882: have `DenseMatrix.resize` and `SparseMatrix.resize` accept
`DenseMatrix` and `SparseMatrix` as inputs too, not only `Array`.
- Fix functions `sum`, `prod`, `min`, and `max` not throwing a conversion error
when passing a single string, like `sum("abc")`.


# 2020-05-30, version 7.0.1

- Fix #1844: clarify the documentation of function `eigs`. Thanks @Lazersmoke.
- Fix #1855: Fix error in the documentation for `math.nthRoots(x)`.
- Fix #1856: make the library robust against Object prototype pollution.


# 2020-05-07, version 7.0.0

Breaking changes:

- Improvements in calculation of the `dot` product of complex values.
The first argument is now conjugated. See #1761. Thanks @m93a.
- Dropped official support for Node.js v8 which has reached end of life.
- Removed all deprecation warnings introduced in v6.
To upgrade smoothly from v5 to v7 or higher, upgrade to v6 first
and resolve all deprecation warnings.


# 2020-05-04, version 6.6.5

- Fix #1834: value `Infinity` cannot be serialized and deserialized.
This is solved now with a new `math.replacer` function used as
`JSON.stringify(value, math.replacer)`.
- Fix #1842: value `Infinity` not turned into the latex symbol `\\infty`.


# 2020-04-15, version 6.6.4

- Fix published files containing Windows line endings (CRLF instead of LF).


# 2020-04-10, version 6.6.3

- Fix #1813: bug in engineering notation for numbers of function `format`,
sometimes resulting in needless trailing zeros.
- Fix #1808: methods `.toNumber()` and `.toNumeric()` not working on a
unitless unit.
- Fix #1645: not being able to use named operators `mod`, `and`, `not`, `or`,
`xor`, `to`, `in` as object keys. Thanks @Veeloxfire.
- Fix `eigs` not using `config.epsilon`.


# 2020-03-29, version 6.6.2

- Fix #1789: Function `eigs` not calculating with BigNumber precision
when input contains BigNumbers.
- Run the build script during npm `prepare`, so you can use the library
directly when installing directly from git. See #1751. Thanks @cinderblock.


# 2020-02-26, version 6.6.1

- Fix #1725: simplify `a/(b/c)`. Thanks @dbramwell.
- Fix examples in documentation of `row` and `column`.


# 2020-02-01, version 6.6.0

- Implemented function `eigs`, see #1705, #542 #1175. Thanks @arkajitmandal.
- Fixed #1727: validate matrix size when creating a `DenseMatrix` using
- Fixed #1727: validate matrix size when creating a `DenseMatrix` using
`fromJSON`.
- Fixed `DenseMatrix.map` copying the size and datatype from the original
- Fixed `DenseMatrix.map` copying the size and datatype from the original
matrix instead of checking the returned dimensions and type of the callback.
- Add a caret to dependencies (like) `^1.2.3`) to allow downstream updates
without having to await a new release of mathjs.


# 2020-01-08, version 6.5.0

- Implemented `baseName` option for `createUnit`, see #1707.
- Implemented `baseName` option for `createUnit`, see #1707.
Thanks @ericman314.


Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Math.js is an extensive math library for JavaScript and Node.js. It features a f
[![Version](https://img.shields.io/npm/v/mathjs.svg)](https://www.npmjs.com/package/mathjs)
[![Downloads](https://img.shields.io/npm/dm/mathjs.svg)](https://www.npmjs.com/package/mathjs)
[![Build Status](https://img.shields.io/travis/josdejong/mathjs/master.svg)](https://travis-ci.org/josdejong/mathjs)
[![Greenkeeper badge](https://badges.greenkeeper.io/josdejong/mathjs.svg)](https://greenkeeper.io/)
[![Maintenance](https://img.shields.io/maintenance/yes/2020.svg)](https://github.com/josdejong/mathjs/graphs/commit-activity)
[![License](https://img.shields.io/github/license/josdejong/mathjs.svg)](https://github.com/josdejong/mathjs/blob/master/LICENSE)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs?ref=badge_shield)
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const PRECISION = 14 // decimals
* @return {*}
*/
function getMath () {
return require('../lib/bundleAny')
return require('../lib/cjs/bundleAny')
}

/**
Expand Down
2 changes: 1 addition & 1 deletion bin/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This simply preloads mathjs and drops you into a REPL to
* help interactive debugging.
**/
global.math = require('../lib/bundleAny')
global.math = require('../lib/cjs/bundleAny')
const repl = require('repl')

repl.start({ useGlobal: true })
16 changes: 0 additions & 16 deletions core.js

This file was deleted.

14 changes: 13 additions & 1 deletion docs/core/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,23 @@ function:

```js
const x = math.complex('2 + 3i')
const str = JSON.stringify(x)
const str = JSON.stringify(x, math.json.replacer)
console.log(str)
// outputs a string '{"mathjs":"Complex","re":2,"im":3}'
```

> IMPORTANT: in most cases works, serialization correctly without
> passing the `math.json.replacer` function as second argument. This is because
> in most cases we can rely on the default behavior of JSON.stringify, which
> uses the `.toJSON` method on classes like `Unit` and `Complex` to correctly
> serialize them. However, there are a few special cases like the
> number `Infinity` which does require the replacer function in order to be
> serialized without losing information: without it, `Infinity` will be
> serialized as `"null"` and cannot be deserialized correctly.
>
> So, it's best to always pass the `math.json.replacer` function to prevent
> weird edge cases.

In order to deserialize a string, containing math.js data types, `JSON.parse`
can be used. In order to recognize the data types of math.js, `JSON.parse` must
be called with the reviver function of math.js:
Expand Down
4 changes: 3 additions & 1 deletion docs/expressions/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ Where :

- `args` is an Array with nodes of the parsed arguments.
- `math` is the math namespace against which the expression was compiled.
- `scope` is the scope provided when evaluating the expression.
- `scope` is a shallow _copy_ of the `scope` object provided when evaluating
the expression, optionally extended with nested variables like a function
parameter `x` of in a custom defined function like `f(x) = x^2`.

Raw functions must be imported in the `math` namespace, as they need to be
processed at compile time. They are not supported when passed via a scope
Expand Down
Loading