hie-core v0.13.42 Release Notes

Release Date: 2020-01-08 // over 4 years ago
  • JSON API - Experimental

    • ๐Ÿ‘€ Rename argument in active contract to payload. 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 under
      DA.Semigroup.Types
    • The types from DA.Monoid are now in a separate package under
      DA.Monoid.Types
    • The types from DA.Time are now in a separate package under
      DA.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 under
      DA.Logic.Types
    • The types from DA.Date are now in a separate package under
      DA.Date.Types.
    • The Down type from DA.Internal.Prelude is now in a separate
      ๐Ÿ“ฆ package under DA.Internal.Down.

    DAML SDK

    • ๐Ÿ“„ daml damlc docs now accepts a --exclude-instances option to exclude unwanted instance docs
      by class name.

    DAML-ON-X-SERVER

    • 0๏ธโƒฃ 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
    as daml install and daml 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 adding fpath=(~/.daml/zsh $fpath) to the beginning of your ~/.zshrc before you call compinit.

    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.dar will
      โœ… execute all definitions matching the type Script a as test-cases.
      ๐Ÿ‘€ See #3687.

    Reference v2

    • ๐Ÿ‘ป On an exception, shut down everything and crash.
      Previously, the server would stay in a half-running state.