81 Commits

Author SHA1 Message Date
Jos de Jong
69b991fe54
fix: #3523 cleanup old polyfills from the browser bundle by removing core-js (#3524) 2025-09-05 10:21:32 +02:00
Jos de Jong
1f05a35d68
chore: convert CJS files to ESM (#3204) 2024-05-22 08:46:14 +02:00
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
josdejong
23e38bea60 Remove all deprecated code and warnings 2020-05-06 21:57:33 +02:00
jos
e628320aaa Fix cleaning up *.generated.js files before build 2019-08-05 22:42:47 +02:00
jos
202cecc39a Fix generated files not compiled into ./es folder 2019-08-05 22:08:57 +02:00
jos
9991449ce0 Generate ESModules transpiled to ES5 2019-08-05 21:19:00 +02:00
jos
d8a4f3a00a Update to standard@13.0.2 2019-07-20 13:46:31 +02:00
jos
64529c3d2e replace tools/validateEmbeddedDocs with a unit test 2019-05-22 14:41:34 +02:00
jos
ec44199dc0 Ignore generated docs in repo, cleanup generated docs before generation 2019-05-22 14:25:42 +02:00
jos
20f82df057 Disable failing test, cleanup logging and temporary npm script 2019-05-22 14:06:33 +02:00
jos
e5048a8001 Allow math.import(all). Dropped support for renaming factory functions 2019-05-22 13:49:56 +02:00
jos
b52c4ca595 Publish v6.0.0-beta.2 2019-05-21 20:23:51 +02:00
jos
2a2074ade8 Merge remote-tracking branch 'origin/v5' into develop
# Conflicts:
#	gulpfile.js
#	package-lock.json
#	package.json
#	src/version.js
2019-05-18 08:29:35 +02:00
jos
80fa60f75d Publish v5.10.2, fix #1515, #1516, #1517 2019-05-18 08:03:02 +02:00
jos
ab1b83a2f6 Remove generated files from repo, make tests independent from generated files 2019-05-12 15:14:13 +02:00
jos
cc740b39be Move snapshot code into /src to have it transpiled 2019-05-04 15:17:15 +02:00
jos
158e39b673 Replace deprecated gulp-util with fancy-log 2019-05-04 10:05:15 +02:00
jos
af37445940 Merge branch 'develop' into modular_architecture
# Conflicts:
#	HISTORY.md
#	gulpfile.js
#	package-lock.json
2019-05-02 20:44:31 +02:00
jos
20aa9a005a Fix circular dependency in math namespace for evaluate 2019-04-29 21:19:50 +02:00
jos
427c39c33b Created ES5 and ES6 entry points 2019-04-28 20:56:08 +02:00
jos
bb9a1e2164 Rename *Full files to *Any 2019-04-27 20:27:26 +02:00
Kevin J
29c8fb8474 Fix banner/license for custom bundling (#1488)
* updated gulpfile so lib header sends correct version and date

* change from watch to build

* linted
2019-04-24 20:18:18 +02:00
jos
fb2f19b08f Fix links to mainBundle 2019-04-24 11:49:55 +02:00
jos
f4d4180cea Move all entry files under ./src/entry 2019-04-24 10:48:01 +02:00
jos
33cead1327 Improved deprecation errors and warnings. Introduce lazy again for factories. 2019-04-22 09:45:57 +02:00
jos
6081360d6a Merged develop into modular_architecture 2019-04-13 16:51:51 +02:00
jos
6c700d12a2 Publish v5.5.0 2019-02-20 17:10:03 +01:00
jos
83df09800b Merge branch 'develop' into modular_architecture_merge
# Conflicts:
#	HISTORY.md
#	gulpfile.js
#	package-lock.json
#	package.json
#	src/core/function/typed.js
#	src/expression/transform/index.js
#	src/function/statistics/sum.js
#	src/function/utils/index.js
#	src/type/unit/Unit.js
#	src/version.js
#	test/expression/node/FunctionNode.test.js
#	test/type/unit/function/createUnit.test.js
#	test/utils/bignumber/formatter.test.js
#	test/utils/number.test.js
2019-02-09 21:26:25 +01:00
jos
19bc1e0fce Implemented snapshot testing for all exported bundles and instances 2019-01-23 14:50:29 +01:00
jos
05e6cfec7f Doc generation working again. Renamed variance and evaluate occurrences in the docs. 2019-01-09 11:21:43 +01:00
Harry Sarson
1e2f3ed0d4 Improve error handling if webpack errors. (#1374)
It turns out webpack can error in two ways. This adds a check for the second way
and also surfaces any warnings.
See: https://webpack.js.org/api/node/#error-handling.
2019-01-05 11:13:54 +01:00
jos
5dd0a9ba9c Get bundle working (with lazy loading) 2019-01-02 10:03:05 +01:00
jos
c856e698f9 Update package-lock.json, restore latest gulpfile changes 2018-12-12 11:12:46 +01:00
jos
abc83aad4c some more gulp fixes 2018-12-10 23:19:24 +01:00
jos
c42485c781 Fix broken gulp scripts 2018-12-10 23:16:20 +01:00
jos
5574f2e27d Upgrade to gulp 4.0 2018-12-10 22:26:56 +01:00
jos
c529c14323 Split index file in two, having partials and fully created functions. Memoize created factory functions. Fix setting global epsilon of complex.js 2018-11-28 11:04:37 +01:00
jos
2630129c72 Fix linting issues 2018-11-20 21:24:59 +01:00
jos
d09a7ff584 Create script to check for non-ascii characters (see #1326) 2018-11-20 21:13:36 +01:00
jos
4c35d62158 Refactor the last files with commonjs 2018-11-09 14:07:14 +01:00
jos
2fd6cbd568 Converted matrix classes. Fixes in dependency resolving/ordering. 2018-11-07 12:38:00 +01:00
jos
88263c47c7 Woohoo fixed the last lint errors 2018-06-13 21:51:09 +02:00
jos
f1ce473457 Consistend camel case naming of variables and functions 2018-06-13 16:09:51 +02:00
jos
17f07ec098 Fixed incompatibility with v4 (index.js file) 2018-06-13 14:02:50 +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
b4c4050dd0 Moved lib to src (WIP) 2018-06-06 15:03:00 +02:00
jos
f87ec1c6db Setup Babel compilation (WIP) 2018-06-06 14:31:33 +02:00