Release of Daml SDK 0.13.42
JSON API - Experimental
- Rename
argument
in 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/lookup
find by contract key. - Fix
/command/exercise
to 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.Semigroup
are now in a separate package underDA.Semigroup.Types
- The types from
DA.Monoid
are now in a separate package underDA.Monoid.Types
- The types from
DA.Time
are now in a separate package underDA.Time.Types
- The types from
DA.Validation` are now in a separate package under
DA.Validation.Types`` - The types from
DA.Logic
are now in a separate package underDA.Logic.Types
- The types from
DA.Date
are now in a separate package underDA.Date.Types
. - The
Down
type fromDA.Internal.Prelude
is now in a separate package underDA.Internal.Down
.
- The types from
Daml SDK
daml damlc docs
now accepts a--exclude-instances
option 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 install
anddaml version
. - Zsh completions for the Daml Assistant are now installed as part of
daml install
. To activate them you need to add~/.daml/zsh
to your$fpath
, e.g., by addingfpath=(~/.daml/zsh $fpath)
to the beginning of your~/.zshrc
before you callcompinit
.
Daml Script - Experimental
- Allow running Daml scripts as test-cases. Executing
daml test-script --dar mydar.dar
will execute all definitions matching the typeScript a
as test-cases. See#3687 <https://github.com/digital-asset/daml/issues/3687>
__.
Reference v2
- On an exception, shut down everything and crash. Previously, the server would stay in a half-running state.
Newsletter
Join the Daml mailinglist to get occasional updates on announcements and new releases