From c0057005098c13dd699330edf55957e97dd8113c Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Fri, 17 Dec 2021 19:00:35 +0200 Subject: [PATCH 1/7] Bump the version. --- version.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/version.gradle.kts b/version.gradle.kts index 7e8ac2324e..684120a341 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -29,6 +29,6 @@ * already in the root directory. */ -val spineBaseVersion: String by extra("1.7.4") -val spineWebVersion: String by extra("1.7.1") -val versionToPublish: String by extra("1.7.2-SNAPSHOT.1") +val spineBaseVersion: String by extra("1.8.0") +val spineWebVersion: String by extra("1.8.0") +val versionToPublish: String by extra("1.8.0") From 93c1cdd1b7125e3157d1c7e20a2e5bc6729a767e Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Fri, 17 Dec 2021 19:23:25 +0200 Subject: [PATCH 2/7] Bump the version. --- client/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pubspec.yaml b/client/pubspec.yaml index 0976a65376..be25963477 100644 --- a/client/pubspec.yaml +++ b/client/pubspec.yaml @@ -1,6 +1,6 @@ name: spine_client description: Dart-based library for client applications of Spine-based systems. -version: 1.7.5 +version: 1.8.0 homepage: https://spine.io environment: From 14d06ab38722634b4523f515dd830163a21bbc59 Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Fri, 17 Dec 2021 19:25:55 +0200 Subject: [PATCH 3/7] Bump the version. --- codegen/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/pubspec.yaml b/codegen/pubspec.yaml index 2e2261bd0f..1b095d9ce7 100644 --- a/codegen/pubspec.yaml +++ b/codegen/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_code_gen description: A command-line tool which generates Dart code for Protobuf type registries. -version: 1.7.5 +version: 1.8.0 homepage: https://spine.io environment: From 544deb0be2564fb624484c2a4f9fbda2c2780be7 Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Fri, 17 Dec 2021 19:38:06 +0200 Subject: [PATCH 4/7] Migrate up from the pre-release dependency. --- client/pubspec.yaml | 2 +- codegen/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pubspec.yaml b/client/pubspec.yaml index be25963477..ed768b9618 100644 --- a/client/pubspec.yaml +++ b/client/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: firebase: ^9.0.1 fixnum: ^1.0.0 sprintf: ^6.0.0 - optional: ^6.0.0-nullsafety.2 + optional: ^6.0.0 dev_dependencies: pedantic: ^1.11.0 diff --git a/codegen/pubspec.yaml b/codegen/pubspec.yaml index 1b095d9ce7..cb8ffe970d 100644 --- a/codegen/pubspec.yaml +++ b/codegen/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: fixnum: ^1.0.0 code_builder: ^4.0.0 dart_style: ^2.0.1 - optional: ^6.0.0-nullsafety.2 + optional: ^6.0.0 dev_dependencies: pedantic: ^1.11.0 From e2b2d3e0dc08ed697343b2c78cd6c62e049e0818 Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Sat, 18 Dec 2021 12:47:50 +0200 Subject: [PATCH 5/7] Update the changelog. --- client/CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/client/CHANGELOG.md b/client/CHANGELOG.md index 83c462ac3b..3ce5cefc1c 100644 --- a/client/CHANGELOG.md +++ b/client/CHANGELOG.md @@ -41,3 +41,20 @@ ## 1.7.3 This release introduces null-safe API, according to the new Dart null safety feature. The Dart language version is promoted to `2.13`. + +## 1.7.4 + + In this release, the subscription API has been improved. It is now possible to cancel the event + subscriptions via `EventSubscription` type, which is now returned + instead of `Stream`. + +## 1.7.5 + In this release, the asynchronous nature of the subscription API has been reflected in returning + `Future`s upon calling `post(..)`. This makes the flow more transparent for end-users, + as previously `Future` instances were hidden deep inside the returned `EventSubscription` and + `StateSubscription` objects. + +## 1.8.0 + This release is a compatibility package, issued in scope of Spine's `1.8.0` release. + Additionally, the dependency onto `optional` package was upgraded from + a pre-release `6.0.0-nullsafety.2` to `^6.0.0`. From 7cb5d8099946e39ea6dbc94cc5f0d44f923f3010 Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Sat, 18 Dec 2021 14:20:16 +0200 Subject: [PATCH 6/7] Un-ignore `build` folders to enable publishing via `pub`. --- .gitignore | 11 +++++++++-- client/.gitignore | 4 ++-- codegen/.gitignore | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 82df412f10..121ab5c4db 100644 --- a/.gitignore +++ b/.gitignore @@ -47,7 +47,14 @@ **/generated/** # Gradle build files -**/build/** +# IMPORTANT: ignoring `/build/` folder in any form makes it impossible to publish +# the `build/pub/..` contents due to the recently introduced `pub` tool regulations. +**/build/descriptors +**/build/extracted-include-protos +**/build/extracted-protos +**/build/libs +**/build/resources +**/build/tmp # Build files produced by the IDE **/out/** @@ -94,7 +101,7 @@ hs_err_pid* # Files and directories created by pub .dart_tool/ .packages -pubspec.lock +#pubspec.lock **/*.pb.dart **/*.pbenum.dart diff --git a/client/.gitignore b/client/.gitignore index 50602ac67e..cc3c058e26 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -4,8 +4,8 @@ # Remove the following pattern if you wish to check in your lock file pubspec.lock -# Conventional directory for build outputs -build/ +# IMPORTANT: ignoring `/build/` folder in any form makes it impossible to publish +# the `build/pub/..` contents due to the recently introduced `pub` tool regulations. # Directory created by dartdoc doc/api/ diff --git a/codegen/.gitignore b/codegen/.gitignore index 50602ac67e..cc3c058e26 100644 --- a/codegen/.gitignore +++ b/codegen/.gitignore @@ -4,8 +4,8 @@ # Remove the following pattern if you wish to check in your lock file pubspec.lock -# Conventional directory for build outputs -build/ +# IMPORTANT: ignoring `/build/` folder in any form makes it impossible to publish +# the `build/pub/..` contents due to the recently introduced `pub` tool regulations. # Directory created by dartdoc doc/api/ From 5a7f9b8feaf9580f38e4c91b2291e559c34b5fb7 Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Sat, 18 Dec 2021 14:23:45 +0200 Subject: [PATCH 7/7] Ignore `pubspec.lock` back. --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 121ab5c4db..769bec02b9 100644 --- a/.gitignore +++ b/.gitignore @@ -101,7 +101,7 @@ hs_err_pid* # Files and directories created by pub .dart_tool/ .packages -#pubspec.lock +pubspec.lock **/*.pb.dart **/*.pbenum.dart