daml/ledger/ledger-api-client
Samir Talwar 5399f3ff44
ledger-api-client: More backwards-compatibility. (#6346)
Let's not break others' code until they've had a chance to migrate.
This changes `LedgerIdRequirement` so that properties don't change
types, and adds `@deprecated` where necessary.

There is one behavior change: `ledgerId` used to return whatever string
was passed in (typically `""`) if the requirement was not enabled. It
now throws an exception.

In the future, we will change the type of `ledgerId` to be
`Option[String]`, and make `optionalLedgerId` an alias for that
property.

CHANGELOG_BEGIN
CHANGELOG_END
2020-06-15 14:26:13 +00:00
..
src ledger-api-client: More backwards-compatibility. (#6346) 2020-06-15 14:26:13 +00:00
BUILD.bazel ledger-api-client: Support legacy LedgerApiRequirement#copy behavior. (#6330) 2020-06-15 07:56:36 +00:00