Skip to content

Releases: scottfr/simulation

simulation v9.0.0

27 Jun 14:05

Choose a tag to compare

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

27 Dec 19:02

Choose a tag to compare

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

14 Jun 11:30

Choose a tag to compare

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 onPause configuration parameter to simulateAsync has been replaced with onStep which is called on every time step
  • Other miscellaneous improvements