5456 Commits

Author SHA1 Message Date
David Contreras
367c0d3d1e
chore: improve performance of functions map, filter and forEach (#3256)
* Implement reduceCallback

* Add jsdocs

* implement simplifyCallback in other functions

* Moved recurse to array.js

* Format

* Separate transform callback

* forEach transform

* Renamed applyCallback to simplifyCallback

* Simplified index transform

* renamed to reducedCallback and simplifiedCallback to simpleCallback

* chore: fix linting issue

* Added forEach benchmark

* renamed simplifyCallback to optimizeCallback

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-09-11 11:32:17 +02:00
Jos de Jong
0f87a7b6c3 chore: fix linting issue 2024-09-04 16:17:09 +02:00
Jos de Jong
76e23d1954 chore: extend the map.js benchmark 2024-09-04 16:11:34 +02:00
Jos de Jong
db913e5e3d chore: update history 2024-09-04 12:21:13 +02:00
Jos de Jong
d1ecf44e2f fix: #3253 cannot use identifiers containing special characters in function derivative 2024-09-04 12:19:46 +02:00
Jos de Jong
4c64018a79 fix: #3246 add type definitions for function leafCount 2024-09-04 11:35:39 +02:00
Jos de Jong
8d244d2754 fix: #3259 revert the duplicate symbolicEqual definition and just export the existing definitions 2024-09-04 11:32:47 +02:00
Jos de Jong
143a8b79dd chore: update AUTHORS file 2024-09-04 11:06:32 +02:00
Jos de Jong
4d91f10095 fix: #3259 function symbolicEqual missing in the TypeScript definitions 2024-09-04 11:06:21 +02:00
Jos de Jong
6b743d07b8 chore: fix broken benchmark 2024-09-04 10:01:43 +02:00
Jos de Jong
9ed6774257 chore: update history 2024-08-28 17:18:50 +02:00
Brooks Smith
2e34c795e7
fix: improve the type definitions of ConstantNode to support all data types (#3257) 2024-08-28 17:15:00 +02:00
Jos de Jong
30b195c9b5 chore: update history 2024-08-27 19:47:53 +02:00
Vas Sudanagunta
70d4170dd3
fix broken links in configuration.md (#3254)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-08-27 19:46:57 +02:00
Jos de Jong
695a246b58 chore: publish v13.1.1 v13.1.1 2024-08-27 16:45:17 +02:00
Jos de Jong
ed2cce4d17
fix: various security vulnerabilities (#3255)
* fix: disable parser functions in the CLI (security issue)

* fix: ensure `ObjectWrappingMap` doesn't allow deleting unsafe properties (security issue)

* fix: enable using methods and (safe) properties on plain arrays

* docs: update the "Less vulnerable expression parser" section in the docs

* chore: fix typos and linting issues

* chore: keep functions like `simplify` enabled in the CLI

* docs: update the security page

* fix: ensure `ObjectWrappingMap.keys` cannot list unsafe properties

* fix: when overwriting a rawArgs function with a non-rawArgs function it was still called with raw arguments

* docs: fix a typo
2024-08-27 16:42:46 +02:00
Jos de Jong
00a985dbfe chore: publish v13.1.0 v13.1.0 2024-08-26 13:49:27 +02:00
Jos de Jong
1ce2eb57c6 chore: update devDependencies 2024-08-26 13:48:05 +02:00
Jos de Jong
f2078469fe chore: update history 2024-08-22 13:38:00 +02:00
David Contreras
bcf0da46f0
feat: support multiple inputs in function map (#3228) 2024-08-22 13:35:21 +02:00
Jos de Jong
88a4b35e9d chore: add a benchmark testing DenseMatrix.map(...) and DenseMatrix.forEach(...) (see #3251) 2024-08-21 14:59:09 +02:00
Jos de Jong
84effa73fc chore: update history 2024-08-21 14:33:05 +02:00
David Contreras
459ae13725
docs: spelling fixes in the embedded docs (#3252)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-08-21 14:30:40 +02:00
Jos de Jong
14acdad7e8 chore: add tea.yaml file 2024-08-16 14:21:27 +02:00
Jos de Jong
d84cca1be4 chore: update history 2024-08-01 15:56:59 +02:00
David Contreras
c8e4bbd573
fix: function map not always working with matrices (#3242)
* Removed maxArgumentCount in favor of applyCallback

* Making a pure _recurse function

* Added cbrt tests, removed unnecesary changes in functions.

* Fixed main bottleneck

* Restored back function before unintended change

* Fix format

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-08-01 15:54:20 +02:00
Jos de Jong
4e2eeac75a fix: #3244 fix broken link to ResultSet in the docs about classes 2024-08-01 11:20:11 +02:00
Jos de Jong
4a119a3465 Merge remote-tracking branch 'origin/develop' into develop 2024-08-01 11:17:20 +02:00
Jos de Jong
dca0330f54 chore: update history 2024-08-01 10:58:58 +02:00
Jos de Jong
a1eec936fc
feat: export util functions for maps and improve documentation of scope (#3243)
* feat: export util functions `isMap`, `isPartitionedMap`, and `isObjectWrappingMap` and improve the documentation of `scope` (see #3150)

* chore: fix broken unit tests

* docs: refine the explanation about scopes
2024-08-01 10:57:23 +02:00
Jos de Jong
61c5d07ae1 docs: add a link to the documentation page about the syntax expression from the function evaluate (fix #3238) 2024-07-31 12:16:10 +02:00
Jos de Jong
18699a76f8 Merge remote-tracking branch 'origin/develop' into develop 2024-07-30 19:51:59 +02:00
Jos de Jong
900e04ebf8 chore: update history 2024-07-30 19:51:51 +02:00
David Contreras
cf24943d4c
feat: add matrix datatypes in more cases (#3235) 2024-07-30 19:48:19 +02:00
Jos de Jong
4f1575339f chore: enable testing on Node 22 again 2024-07-23 20:02:22 +02:00
Jos de Jong
1409c41bda chore: publish v13.0.3 for real v13.0.3 2024-07-19 14:26:49 +02:00
Jos de Jong
0889416219 Merge branch 'refs/heads/develop' 2024-07-19 14:24:23 +02:00
Jos de Jong
6bd45e3c3c chore: disable testing on Node 22 for now until we get mocha working again in GitHub actions 2024-07-19 14:18:55 +02:00
Jos de Jong
65d559846f chore: try use ubuntu-latest instead of ubuntu-22.04 again 2024-07-19 14:14:54 +02:00
Jos de Jong
f95d4dbbd5 chore: try use ubuntu-22.04 instead of ubuntu-24.04 2024-07-19 14:13:45 +02:00
Jos de Jong
17009ee6c9 chore: try use ubuntu-24.04 instead of ubuntu-latest 2024-07-19 14:12:34 +02:00
Jos de Jong
f4e3692d8e chore: revert reverting updating devDependencies 2024-07-19 14:10:29 +02:00
Jos de Jong
27c18fa631 chore: revert updating devDependencies 2024-07-19 14:02:38 +02:00
Jos de Jong
e7c4b4b06a chore: update package-lock.json 2024-07-18 20:19:16 +02:00
Jos de Jong
6bbdb652e9 Merge branch 'develop' 2024-07-18 20:12:19 +02:00
Jos de Jong
5a632d93ea chore: publish v13.0.3 2024-07-18 20:11:59 +02:00
Jos de Jong
b446f5cc5b chore: update devDependencies 2024-07-18 20:06:01 +02:00
Jos de Jong
e416d40184 chore: update history 2024-07-11 13:28:05 +02:00
Orel Ben Neriah
f5a5463b0d
fix: types static methods and members for Unit class (#3230)
* fix: types static method for Unit class

Changes unit interface to declare class to enable the adding of static methods.

* refactor: change to not using declare class

* fix: adds more unit static methods and updates tests

* chore: moves test from wrong location

* fix: adds additional static methods and updates jsDocs

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-07-11 13:26:50 +02:00
Vistinum
975d1ba800
fix: use exact values for US liquid volume units (#3229)
1 US gallon is defined as 231 cubic inches, which is exactly 3.785411784 L (since 1 inch is defined as 25.4 mm). Other units are defined against the gallon.

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-07-11 13:16:46 +02:00