Releases: scottfr/simulation
Releases · scottfr/simulation
simulation v9.0.0
New features
- Added unit support for some functions that previously did not support units, such as rand(). For example,
rand({1 meter}, {100 meters})will generate a random number of meters between 1 and 100. - ModelJSON import/export support added for scenarios
Other changes
- Performance optimizations leading to up to 30% faster simulations in some cases
- Improved simulation numerical precision by replacing Math.log with Math.log1p in several places
- Upgraded to antlr-ng and various other changes to better support autocompletion and other features related to language intelligence
- delay() can now be used with primitives containing strings
- Improved parameter validation for a number of functions, including pulse(), ramp(), select(), indexof(), contains(), and sample()
- Other fixes and improvements
simulation v8.0.0
New features
- ModelJSON support added for globals and custom unit definitions
- Generated TypeScript declaration (.d.ts) files from the JSDoc comments
Other changes
- Improved validation and function improvements
- Fixed an issue with cloning agents
- Fixed an issue with setting agent connection weights
- Fixed an issue with escape sequences in strings
- Other miscellaneous improvements and fixes
simulation v7.0.0
New features
- Support for ModelJSON import and export
- New function,
Model.check()that checks for some classes of errors (such as syntax errors) across a model without running a simulation
Other changes
- Unicode letters and number characters can now be used in identifiers and units
- Improved error reporting
- Using
[Alpha]and[Omega]as aliases for the start and end of flows and transitions is no longer supported - The
onPauseconfiguration parameter tosimulateAsynchas been replaced withonStepwhich is called on every time step - Other miscellaneous improvements