LF: Realease LF 1.14 (#10077)

CHANGELOG_BEGIN
- [LF] Add support for Excepction
CHANGELOG_END
This commit is contained in:
Remy 2021-06-24 13:44:09 +02:00 committed by GitHub
parent 05056ddd8c
commit f745f10394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 31 additions and 28 deletions

View File

@ -25,7 +25,7 @@ class EngineInfoTest extends AnyWordSpec with Matchers {
"Daml-LF Engine supports LF versions: 1.6, 1.7, 1.8"
engineInfoStable.show shouldBe
"Daml-LF Engine supports LF versions: 1.6, 1.7, 1.8, 1.11, 1.12, 1.13"
"Daml-LF Engine supports LF versions: 1.6, 1.7, 1.8, 1.11, 1.12, 1.13, 1.14"
engineEarlyAccess.show shouldBe
"Daml-LF Engine supports LF versions: 1.6, 1.7, 1.8, 1.11, 1.12, 1.13, 1.14"

View File

@ -19,8 +19,7 @@
lf_version_configuration = {
"legacy": "1.8",
"stable": "1.13",
"latest": "1.13",
"preview": "1.14",
"latest": "1.14",
"dev": "1.dev",
}

View File

@ -58,7 +58,7 @@ object LanguageVersion {
// All the stable versions.
val StableVersions: VersionRange[LanguageVersion] =
VersionRange(min = v1_6, max = v1_13)
VersionRange(min = v1_6, max = v1_14)
// All versions compatible with legacy contract ID scheme.
val LegacyVersions: VersionRange[LanguageVersion] =
@ -67,7 +67,7 @@ object LanguageVersion {
// All the stable and preview versions
// Equals `Stable` if no preview version is available
val EarlyAccessVersions: VersionRange[LanguageVersion] =
StableVersions.copy(max = v1_14)
StableVersions
// All the versions
val DevVersions: VersionRange[LanguageVersion] =

View File

@ -250,12 +250,12 @@ Version: 1.13
- add `BigNumeric` builtins
Version: 1.14 (preview)
.......................
Version: 1.14
.............
* Introduction date:
2021-06-03
2021-06-22
* Description:

View File

@ -5,7 +5,7 @@
Daml-LF Transaction Specification
=================================
**version 14, 04 June 2021**
**version 14, 22 June 2021**
This specification, in concert with the ``transaction.proto``
machine-readable definition, defines a format for *Daml-LF
@ -183,7 +183,7 @@ later.
+--------------------+-----------------+
| 13 | 2021-04-06 |
+--------------------+-----------------+
| (preview) 14 | 2021-06-03 |
| 14 | 2021-06-03 |
+--------------------+-----------------+
| dev | |
+--------------------+-----------------+

View File

@ -4,7 +4,7 @@
Daml-LF Value Specification
===========================
**version 13, 06 April 2021**
**version 14, 22 June 2021**
The Daml-LF language includes ways to define *data types*,
specifications of structure, and includes rules by which a restricted
@ -162,7 +162,9 @@ later.
+--------------------+-----------------+
| 13 | 2021-04-06 |
+--------------------+-----------------+
| dev | 2019-12-14 |
| 14 | 2021-22-06 |
+--------------------+-----------------+
| dev | |
+--------------------+-----------------+
message VersionedValue

View File

@ -40,8 +40,8 @@ daml_compile(
name = "Exceptions",
srcs = ["Exceptions.daml"],
# TODO https://github.com/digital-asset/daml/issues/9914
# Switch to "stable" once LF 1.14 is released.
target = lf_version_configuration.get("preview"),
# Drop line once LF 1.14 is the default compiler output.
target = lf_version_configuration.get("latest"),
visibility = ["//daml-lf:__subpackages__"],
)
@ -73,8 +73,8 @@ daml_compile(
name = "MultiKeys",
srcs = ["MultiKeys.daml"],
# TODO https://github.com/digital-asset/daml/issues/9914
# Switch to "stable" once LF 1.14 is released.
target = lf_version_configuration.get("preview"),
# Drop line once LF 1.14 is the default compiler output.
target = lf_version_configuration.get("latest"),
visibility = ["//daml-lf:__subpackages__"],
)

View File

@ -291,9 +291,7 @@ class TransactionSpec
"contractKeys" - {
"return all the contract keys" in {
// TODO: https://github.com/digital-asset/daml/issues/9914
// change to TransactionVersion.StableVersions.max LF 1.14 is released
val builder = TransactionBuilder(TransactionVersion.EarlyAccessVersions.max)
val builder = TransactionBuilder(TransactionVersion.StableVersions.max)
val parties = List("Alice")
def create(s: String) = builder
@ -393,9 +391,7 @@ class TransactionSpec
"contractKeyInputs" - {
import Transaction._
// TODO: https://github.com/digital-asset/daml/issues/9914
// change to TransactionVersion.StableVersions.max LF 1.14 is released
val dummyBuilder = TransactionBuilder(TransactionVersion.EarlyAccessVersions.max)
val dummyBuilder = TransactionBuilder(TransactionVersion.StableVersions.max)
val parties = List("Alice")
val tmplId = Ref.Identifier.assertFromString("-pkg-:Mod:T")
def keyValue(s: String) = V.ValueText(s)

View File

@ -63,7 +63,8 @@ conformance_test(
],
lf_versions = [
"stable",
"latest",
# FIXME: enable the following line once canton-test-runner supports LF 1.14
# "latest",
],
ports = [
5011,
@ -103,7 +104,8 @@ conformance_test(
],
lf_versions = [
"stable",
"latest",
# FIXME: enable the following line once canton-test-runner supports LF 1.14
# "latest",
],
ports = [
5011,

View File

@ -400,8 +400,8 @@ server_conformance_test(
server_conformance_test(
name = "conformance-test-exceptions",
# TODO https://github.com/digital-asset/daml/issues/9914
# Switch to "stable" once LF 1.14 is released.
lf_versions = ["preview"],
# Drop line once LF 1.14 is the default compiler output.
lf_versions = ["latest"],
server_args = [
"--wall-clock-time",
"--contract-id-seeding=testing-weak",
@ -416,8 +416,8 @@ server_conformance_test(
server_conformance_test(
name = "conformance-test-exceptions-append-only",
# TODO https://github.com/digital-asset/daml/issues/9914
# Switch to "stable" once LF 1.14 is released.
lf_versions = ["preview"],
# Drop line once LF 1.14 is the default compiler output.
lf_versions = ["latest"],
server_args = [
"--wall-clock-time",
"--contract-id-seeding=testing-weak",

View File

@ -27,6 +27,10 @@
type: jar-lib
- target: //daml-lf/archive:daml_lf_1.13_archive_proto_java
type: jar-proto
- target: //daml-lf/archive:daml_lf_1.14_archive_proto_jar
type: jar-lib
- target: //daml-lf/archive:daml_lf_1.14_archive_proto_java
type: jar-proto
- target: //daml-lf/archive:daml_lf_dev_archive_proto_jar
type: jar-lib
- target: //daml-lf/archive:daml_lf_dev_archive_proto_java