From 9934498390a700a44a4c478cbc9a0eb8d52af19a Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Fri, 22 Nov 2024 11:43:26 +0530 Subject: [PATCH 1/5] [Automated] Update the native jar versions --- ballerina/Ballerina.toml | 8 ++++---- ballerina/CompilerPlugin.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 4ba44123..7488a053 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,13 +1,13 @@ [package] org = "ballerina" name = "websubhub" -version = "1.12.0" +version = "1.13.0" authors = ["Ballerina"] keywords = ["websub", "hub", "publisher", "service", "listener", "client"] repository = "https://github.com/ballerina-platform/module-ballerina-websubhub" icon = "icon.png" license = ["Apache-2.0"] -distribution = "2201.9.0" +distribution = "2201.11.0" [platform.java17] graalvmCompatible = true @@ -15,5 +15,5 @@ graalvmCompatible = true [[platform.java17.dependency]] groupId = "io.ballerina.stdlib" artifactId = "websubhub-native" -version = "1.12.0" -path = "../native/build/libs/websubhub-native-1.12.0.jar" +version = "1.13.0" +path = "../native/build/libs/websubhub-native-1.13.0-SNAPSHOT.jar" diff --git a/ballerina/CompilerPlugin.toml b/ballerina/CompilerPlugin.toml index e8a00e39..cabf8ce4 100644 --- a/ballerina/CompilerPlugin.toml +++ b/ballerina/CompilerPlugin.toml @@ -3,4 +3,4 @@ id = "websubhub-compiler-plugin" class = "io.ballerina.stdlib.websubhub.WebSubHubCompilerPlugin" [[dependency]] -path = "../compiler-plugin/build/libs/websubhub-compiler-plugin-1.12.0.jar" +path = "../compiler-plugin/build/libs/websubhub-compiler-plugin-1.13.0-SNAPSHOT.jar" From 8f8301463e5d4695e33fcb20f9f41a8c99af5d88 Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Fri, 22 Nov 2024 11:46:48 +0530 Subject: [PATCH 2/5] [Automated] Update the native jar versions --- ballerina/Dependencies.toml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 0bf584bc..c32b2be4 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -5,7 +5,7 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.10.0" +distribution-version = "2201.11.0-20241008-112400-81975006" [[package]] org = "ballerina" @@ -50,6 +50,15 @@ modules = [ {org = "ballerina", packageName = "crypto", moduleName = "crypto"} ] +[[package]] +org = "ballerina" +name = "data.jsondata" +version = "0.3.0" +dependencies = [ + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.object"} +] + [[package]] org = "ballerina" name = "file" @@ -64,12 +73,13 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.12.0" +version = "2.13.0" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, {org = "ballerina", name = "constraint"}, {org = "ballerina", name = "crypto"}, + {org = "ballerina", name = "data.jsondata"}, {org = "ballerina", name = "file"}, {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -237,7 +247,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.10.0" +version = "2.10.1" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -304,7 +314,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.4.0" +version = "2.5.0" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -337,7 +347,7 @@ modules = [ [[package]] org = "ballerina" name = "websubhub" -version = "1.12.0" +version = "1.13.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "http"}, From d22c888c399a74e7329b87a53176af2db75a238b Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Fri, 22 Nov 2024 11:47:54 +0530 Subject: [PATCH 3/5] Mark HubClient as isolated --- ballerina/hub_client.bal | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ballerina/hub_client.bal b/ballerina/hub_client.bal index 2abbf54e..8eb03365 100644 --- a/ballerina/hub_client.bal +++ b/ballerina/hub_client.bal @@ -19,13 +19,13 @@ import ballerina/mime; import ballerina/crypto; # HTTP Based client for WebSub content publishing to subscribers -public client class HubClient { - private string callback; - private string hub; - private string topic; - private string hubLinks; - private string? secret; - private http:Client httpClient; +public isolated client class HubClient { + private final string callback; + private final string hub; + private final string topic; + private final string hubLinks; + private final string? secret; + private final http:Client httpClient; # Initializes the `websubhub:HubClient`. # ```ballerina From 35876a69aca17b5d3b2965afd7448afc1c7faf76 Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Fri, 22 Nov 2024 11:53:24 +0530 Subject: [PATCH 4/5] Update change log --- changelog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index 53e6977d..9f9b90ae 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- [Mark `websubhub:HubClient` as an isolated client](https://github.com/ballerina-platform/ballerina-library/issues/7400) + +## [1.11.0] - 2024-05-03 + ### Fixed - [`websubhub` compiler plugin does not allow listener port to be a pre-defined variable](https://github.com/ballerina-platform/ballerina-library/issues/6339) From 8e67d7e5e022af3b78bd76441e05bdc9fc1e90e0 Mon Sep 17 00:00:00 2001 From: Ayesh Almeida Date: Fri, 22 Nov 2024 12:53:14 +0530 Subject: [PATCH 5/5] Update the changelog --- changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index 9f9b90ae..2b9397e6 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.11.1] - 2024-11-22 + ### Changed - [Mark `websubhub:HubClient` as an isolated client](https://github.com/ballerina-platform/ballerina-library/issues/7400)