Releases: accordproject/ergo
Ergo v0.6.0
🕑 It's 2019: time for a brand new Date & Time library! You can now use directly Duration
and Period
concepts from the most recent Concerto time model. New operations include converting durations between different time units, duration division and computing the minimum/maximum in an array of dates.
Also included in this release: new fancy overloaded operators (never write +i
ever again), and various bug fixes.
Language
- 🛍 Overloaded operators (#375)
- 🕑 DateTime support:
Testing
- 🥒 Now uses Cucumber for functional tests!
Bug fixes
- 🐞 The JavaScript target now provides runtime access to the model's inheritance hierarchy (#58)
- 🐞 Accessing fields from records now works as expected (#385)
- 🐞 Long does not get confused with Double by the type checker anymore (#488 )
- 🐞 Type checking for match over optionals now fails when the input type isn't an optional (as expected!) (#502, #387)
Ergo v0.5.8
Ergo v0.5.7
This is a bug-fix and improvements release for Ergo.
Compiler
- 🚴 Enabling optimizations in the NNRC Intermediate Language!
Bug fixes
Ergo v0.5.5
This is a bug-fix and improvements release for Ergo.
Standard library
- 🕑 New support for DateTime functions:
dateTimeStartOf
(beginning of time period)dateTimeEndOf
(end of time period) anddateTimeComponent
(time period)
Bug fixes
- 🐞
toString
built-in function now works onDateTime
Ergo v0.5.4
This is a bug-fix and improvements release for Ergo.
Standard library
- π New support for trigonometric functions:
cos
,sin
,tan
, etc.
Bug fixes
- 🐞JSON results printed by
ergorun
look nice again!
Ergo v0.5.3
This is a bug-fix and dependency upgrade release for Ergo.
- ⚙Upgrade to Concerto 0.60
- 🐞Generated JavaScript code does not depend on where you run the compiler anymore (file name removed from enforce expression expansion) #474
Ergo v0.5.2
⚙ Ergo is now using the brand new Composer Concerto modeling language as its type system!
While this isn't likely to affect many Ergo users, this is a breaking change:
- If your Ergo code depends on any of the previous system Hyperledger types (
Event
,Transaction
,Concept
,Asset
, orParticipant
) those will now be considered by the Ergo compiler to be in theorg.accordproject.base
namespace. - The
org.accordproject.base
namespace is now reserved for built-in types. If you have CTO models or Ergo code depending on it you should consider renaming to a new namespace.
Ergo v0.4.4
This is a bug-fix release and adjustments for the up and coming ergo playground template studio!
General improvements
- 🎉 Consolidation of JavaScript version of REPL
Compiler
- 🔧
cicero
target now generatesdispatch
andinit
functions for convenience
Bug fixes
Ergo v0.4.3
This release features improved command-line tools, and general improvements .
Command lines
- New
ergorun
command replacingergo execute
with clearer options ergoc
command now fully replacesergo compile
- Align command line arguments for all CLI
Bug fixes
- 🐞 Location information for string literals is now accurate
Ergo v0.4.2
This release features new compiler targets for ES5 and Java, as well as improvements to the REPL and bug fixes.
Compiler
- New compiler target for ES5
- New compiler target for Java (experimental)
ergo compile
is now deprecated, useergoc
instead- New
--link
option toergoc
links the javascript runtime
REPL
- Consolidate examples
- No more semicolon is needed after
return
statements