v0.13.42: release 0.13.42 (#3982)
JSON API - Experimental
- Rename
argumentin active contract topayload. See #3826. - Change variant JSON encoding. The new format is
{ tag: data-constructor, value: argument }.
For example, if we have:data Foo = Bar Int | Baz, these are all valid JSON encodings for
values of type Foo:{"tag": "Bar", "value": 42}{"tag": "Baz", "value": {}}
See #3622
- Fix
/contracts/lookupfind by contract key. - Fix
/command/exerciseto support any LF type as a choice argument.
See #3390
DAML Compiler
-
Move more types from daml-stdlib to standalone LF packages. The module names for the types have
also changed slightly. This only matters over the Ledger API when you specify the module name
explicitly. In DAML you should continue to use the existing module names.- The types from
DA.Semigroupare now in a separate package under
DA.Semigroup.Types - The types from
DA.Monoidare now in a separate package under
DA.Monoid.Types - The types from
DA.Timeare now in a separate package under
DA.Time.Types - The types from
DA.Validationare now in a separate package
underDA.Validation.Types - The types from
DA.Logicare now in a separate package under
DA.Logic.Types - The types from
DA.Dateare now in a separate package under
DA.Date.Types. - The
Downtype fromDA.Internal.Preludeis now in a separate
package underDA.Internal.Down.
- The types from
DAML SDK
daml damlc docsnow accepts a--exclude-instancesoption to exclude unwanted instance docs
by class name.
DAML-ON-X-SERVER
- Made ledger api server to bind to localhost by default instead to the public
interface for security reasons.
DAML Assistant
-
Bash completions for the DAML assistant are now available via
daml install. These will be
installed automatically on Linux and Mac. If you use bash and have bash completions installed,
these bash completions let you use the tab key to autocomplete many DAML Assistant commands, such
asdaml installanddaml version. -
Zsh completions for the DAML Assistant are now installed as part of
daml install. To activate
them you need to add~/.daml/zshto your$fpath, e.g., by addingfpath=(~/.daml/zsh $fpath)to the beginning of your~/.zshrcbefore you callcompinit.
DAML Script - Experimental
are you sure you are actually using bash? iirc macos switched the default to
- Allow running DAML scripts as test-cases. Executing
daml test-script --dar mydar.darwill
execute all definitions matching the typeScript aas test-cases.
See #3687.
Reference v2
- On an exception, shut down everything and crash.
Previously, the server would stay in a half-running state.