48 Commits

Author SHA1 Message Date
Jos de Jong
6f00715754
Specify import require paths (continuation of #1941) (#1962)
* Add `.js` extension to source file imports

* Specify package `exports` in `package.json`

Specify package type as `commonjs` (It's good to be specific)

* Move all compiled scripts into `lib` directory

Remove ./number.js (You can use the compiled ones in `./lib/*`)

Tell node that the `esm` directory is type `module` and enable tree shaking.

Remove unused files from packages `files` property

* Allow importing of package.json

* Make library ESM first

* - Fix merge conflicts
- Refactor `bundleAny` into `defaultInstance.js` and `browserBundle.cjs`
- Refactor unit tests to be able to run with plain nodejs (no transpiling)
- Fix browser examples

* Fix browser and browserstack tests

* Fix running unit tests on Node 10 (which has no support for modules)

* Fix node.js examples (those are still commonjs)

* Remove the need for `browserBundle.cjs`

* Generate minified bundle only

* [Security] Bump node-fetch from 2.6.0 to 2.6.1 (#1963)

Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1. **This update includes a security fix.**
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Cleanup console.log

* Add integration tests to test the entry points (commonjs/esm, full/number only)

* Create backward compatibility error messages in the files moved/removed since v8

* Describe breaking changes in HISTORY.md

* Bump karma from 5.2.1 to 5.2.2 (#1965)

Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

Co-authored-by: Lee Langley-Rees <lee@greenimp.co.uk>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-20 18:01:29 +02:00
Jos de Jong
76a0ec755b Publish v7.1.0 2020-07-13 21:26:05 +02:00
Jos de Jong
6ef0f9b887 Allow to pick embedded docs from an other comment block than just the first 2020-07-13 21:17:28 +02:00
jos
d8a4f3a00a Update to standard@13.0.2 2019-07-20 13:46:31 +02:00
jos
b390a23f4b Fix function reference not published in npm library 2019-06-09 20:44:16 +02:00
jos
ec44199dc0 Ignore generated docs in repo, cleanup generated docs before generation 2019-05-22 14:25:42 +02:00
jos
158e39b673 Replace deprecated gulp-util with fancy-log 2019-05-04 10:05:15 +02:00
jos
078f1dd69f Renamed methods .eval to .evaluate, updated all docs and examples accordingly 2019-01-16 10:11:32 +01:00
jos
05e6cfec7f Doc generation working again. Renamed variance and evaluate occurrences in the docs. 2019-01-09 11:21:43 +01:00
jos
88263c47c7 Woohoo fixed the last lint errors 2018-06-13 21:51:09 +02:00
jos
e844004cbf Removed redundant escape characters 2018-06-13 21:15:10 +02:00
jos
b1777e3cf9 Fixed mixing || and && in expressions 2018-06-13 15:38:57 +02:00
jos
b6b36bfd9b Use strict equality checks everywhere (=== and !==) 2018-06-13 15:02:21 +02:00
jos
6d340e0faa Fixed import.js not being documented correctly in the function reference 2018-06-13 13:34:27 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
6308e5b7fc Added missing embedded docs 2018-05-02 09:51:08 +02:00
jos
8eb8aba6ce Fixed truncation of multi-line descriptions of @return too (see #1040) 2018-02-21 14:34:52 +01:00
jos
3059e1b94f Fixed truncation of some docs when generating markdown (see #1040) 2018-02-21 13:22:08 +01:00
jos
e0095229ac Handle functions without examples correctly in docgenerator 2016-08-15 21:17:57 +02:00
jos
cd9214727d Released version 3.4.1 2016-08-08 20:22:15 +02:00
jos
d9cc810689 Put the comment on automatically generated docs on top of the files 2016-03-19 09:44:24 +01:00
jos
2ef9bf5878 Fixed the links on the functions reference page 2016-03-04 13:45:22 +01:00
jos
e2a3878ba9 Moved functions format and print to section string 2016-03-03 20:17:41 +01:00
jos
6a94e1a0de Improved function reference page (see #556):
- changed headers to "Category functions"
 - show function name with namespace, like `math.sin`
 - functions are now shown in a table with description
2016-03-03 20:08:57 +01:00
jos
10bc7be287 Fixed escaping of html tags in function parameter types 2016-03-01 21:01:29 +01:00
jos
344f681a9f Order function categories in a particular order 2016-02-27 21:01:53 +01:00
jos
2898fd09eb Fixed broken filter for construction functions 2016-02-27 20:52:29 +01:00
jos
0922121e82 Added core functions config, import, and typed to the docs. Updated other docs 2016-02-27 20:37:26 +01:00
jos
481e8da2b5 Removed alphabetical function list, moved categorical list to root of docs. 2016-02-27 14:27:19 +01:00
jos
22300be63b Updated docgenerator to ignore function distribution 2015-11-20 20:13:33 +01:00
jos
507c0119e5 Fixed: added functions math.sparse and math.index to the reference docs, they where missing. 2015-10-28 21:12:25 +01:00
jos
d2e8ec06f2 Fixed docgenerator for v2. Updated docs. 2015-06-10 20:50:29 +02:00
jos
7e3eda8603 Moved all data types and their construction functions into a folder of their own under ./lib/type 2015-05-05 13:51:24 +02:00
jos
2614ca6203 Added docs for xor, removed docs of _divide 2014-12-25 14:11:15 +01:00
jos
32060ca104 Removed a redundant comma 2014-06-25 13:17:50 +02:00
jos
087463dc84 Added a set with functions syntax for special cases 2014-06-25 13:17:30 +02:00
jos
a42dcd9cc3 Added categorical function reference 2014-06-23 22:36:24 +02:00
jos
4719d213de Created docs page with alphabetical function reference 2014-06-23 22:22:42 +02:00
jos
31aa5655b1 Added a section "Where:" to some of the reference docs 2014-05-22 22:15:40 +02:00
jos
9ebc24662f More reference docs added 2014-05-22 21:17:53 +02:00
jos
38066a9335 More docs added 2014-05-17 12:21:31 +02:00
jos
37a7494a2f Some fixes in docgenerator 2014-05-16 20:20:13 +02:00
jos
6c8104f938 More docs added 2014-05-15 21:43:08 +02:00
jos
f6fe12d452 Added more reference docs (not all docs are complete yet) 2014-04-28 22:08:11 +02:00
jos
a737849f7d Docgenerator now supports descriptions with multiple paragraphs. 2014-04-26 16:31:54 +02:00
josdejong
2f98984d51 Some fixes in the docgenerator 2014-02-19 21:55:21 +01:00
josdejong
b87f989c43 Created a simple docgenerator to generate references. It's too boring to do manually 2014-02-17 22:54:09 +01:00