Skip to content

2.3.0

Compare
Choose a tag to compare
@zcohan zcohan released this 27 Mar 10:21
· 34 commits to master since this release

New Localizations

  • Spanish
  • French

Timezone Calculations

  • New preferActiveTimeZoneAbbreviations on EngineFeatureFlags. With this option on, SoulverCore will automatically use the equivalent in-use timezone for when a timezone abbreviations that is not currently being observed is used. The default value is true.

Natural Language Date Parsing & Scheduling

  • The seeksFutureDate mode on EngineFeatureFlags has been upgraded to support unit shorthands like w for weeks and d for days. Also p and a can be used as shorthands for am and pm.
  • Added support for datestamps without spaces, like jul9.
  • Added a dateValue property on String to quickly extract a natural language date

Natural Language Function Parsing

  • Added a convenience static function on Calculator to quickly extract the parameters of a natural language custom function from a string. For example you could quickly extract the decimal 4.0 in the following function:
let parameters = Calculator.functionParametersIn("4 over 20", matching: ["3 over 9"]) // [4.0, 20.0]

Performance

  • Minor performance improvements