From 0af4dad5830fa1ebb7958dbcf5dd7ede5104189e Mon Sep 17 00:00:00 2001 From: Nadeeshan96 Date: Fri, 7 Jul 2023 12:42:29 +0530 Subject: [PATCH 01/12] Improve StopHandler BBE --- examples/stop-handler/stop_handler.client.out | 1 - examples/stop-handler/stop_handler.md | 10 +++++++--- examples/stop-handler/stop_handler.server.out | 10 ++++------ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/stop-handler/stop_handler.client.out b/examples/stop-handler/stop_handler.client.out index c9034a00e2..08c1a4bde7 100644 --- a/examples/stop-handler/stop_handler.client.out +++ b/examples/stop-handler/stop_handler.client.out @@ -1,3 +1,2 @@ -# Invoke the service using cURL to add a fruit item. $ curl http://localhost:9090/addToBasket -d 'Guava' ["Apple", "Orange", "Guava"] diff --git a/examples/stop-handler/stop_handler.md b/examples/stop-handler/stop_handler.md index 4bea2219d6..4fec17bebe 100644 --- a/examples/stop-handler/stop_handler.md +++ b/examples/stop-handler/stop_handler.md @@ -1,10 +1,14 @@ # `StopHandler` -The `StopHandler` registers a function that will be called during the graceful shutdown. -This example demonstrates how to register a function that will be executed at the end of the program. +A `StopHandler` is a function called during graceful shutdown, registered at runtime with a module. +This example demonstrates how to register a `StopHandler` that will be executed at the end of the program. ::: code stop_handler.bal ::: -::: out stop_handler.client.out ::: +Navigate to the directory that contains the 'stop_handler.bal' file, and run the 'bal run' command. ::: out stop_handler.server.out ::: + +Invoke the service by executing the following cURL command in a new terminal to add a fruit item. + +::: out stop_handler.client.out ::: diff --git a/examples/stop-handler/stop_handler.server.out b/examples/stop-handler/stop_handler.server.out index 2b049db64c..191e06e938 100644 --- a/examples/stop-handler/stop_handler.server.out +++ b/examples/stop-handler/stop_handler.server.out @@ -1,10 +1,8 @@ -# Navigate to the directory that contains the -# 'stop_handler.bal' file, and run the 'bal run' command below. - $ bal run stop_handler.bal - -# Send the interrupt signal SIGINT to terminate the current process. -Ctrl+c initial items in fruit basket: ["Apple","Orange"] + +# Invoke the service using cURL command as mentioned below in a new terminal. after adding a fruit item: ["Apple","Orange","Guava"] + +# Send the interrupt signal SIGINT (Ctrl+C) to terminate the current process. after removing all fruit items: [] From 209879962d55c11597655d01919da02a852f8180 Mon Sep 17 00:00:00 2001 From: Nadeeshan96 Date: Tue, 11 Jul 2023 15:07:11 +0530 Subject: [PATCH 02/12] Address PR review comments --- examples/stop-handler/stop_handler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stop-handler/stop_handler.md b/examples/stop-handler/stop_handler.md index 4fec17bebe..7cccce26c3 100644 --- a/examples/stop-handler/stop_handler.md +++ b/examples/stop-handler/stop_handler.md @@ -1,6 +1,6 @@ # `StopHandler` -A `StopHandler` is a function called during graceful shutdown, registered at runtime with a module. +A `StopHandler` is a function that is registered at runtime with a module and invoked during graceful shutdown. This example demonstrates how to register a `StopHandler` that will be executed at the end of the program. ::: code stop_handler.bal ::: From c81266d8e178fab76db49f0caa1d3f18c8f37860 Mon Sep 17 00:00:00 2001 From: rdulmina Date: Thu, 13 Jul 2023 19:28:33 +0530 Subject: [PATCH 03/12] Update graphql version --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 38539ac022..c56358f280 100644 --- a/gradle.properties +++ b/gradle.properties @@ -63,7 +63,7 @@ stdlibWebsubVersion=2.9.0-20230622-084100-c86e0c6 stdlibWebsubhubVersion=1.9.0-20230622-083000-02e28c8 # Stdlib Level 07 -stdlibGraphqlVersion=1.9.0-20230622-112800-0ade7bc +stdlibGraphqlVersion=1.9.1-20230713-142300-be8c3e2 stdlibSqlVersion=1.10.0-20230622-103500-ec74911 # Stdlib Level 08 @@ -77,7 +77,7 @@ devToolsVersion=1.2.0-20230622-155200-329d876 ballerinaCommandVersion=1.3.15 # GraphQL Tool -graphqlVersion=0.6.0 +graphqlVersion=0.7.1-20230713-213500-3f0344c # Protoc Tool protocToolVersion=0.1.2-20230621-170600-536ee30 From 98fe5b6a66cf774db385be650055522e38160396 Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Fri, 14 Jul 2023 03:44:24 +0530 Subject: [PATCH 04/12] [Automated] Update ballerina lang to 2201.8.0-20230714-003800-bb79faf2 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 38539ac022..b0e02fdc2f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.7.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.8.0-20230712-000400-d08328e9 +ballerinaLangVersion=2201.8.0-20230714-003800-bb79faf2 ballerinaJreVersion=1.1.0 dependencyJREVersion=jdk-11.0.18+10-jre specVersion=2023R1 From 569b7d23c20b63c43df437a2566aba60fed0f44b Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Tue, 18 Jul 2023 03:53:23 +0530 Subject: [PATCH 05/12] [Automated] Update ballerina lang to 2201.8.0-20230718-003000-d7ad7106 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 86eb46ad78..44e9d0418b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.7.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.8.0-20230714-003800-bb79faf2 +ballerinaLangVersion=2201.8.0-20230718-003000-d7ad7106 ballerinaJreVersion=1.1.0 dependencyJREVersion=jdk-11.0.18+10-jre specVersion=2023R1 From 4e511360e70a6b18d79d4cc223c065742eaeeb91 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 18 Jul 2023 09:58:41 +0530 Subject: [PATCH 06/12] Update version --- ballerina-test-automation/gradle.properties | 4 ++-- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ballerina-test-automation/gradle.properties b/ballerina-test-automation/gradle.properties index 1ad3db58e1..0449033261 100644 --- a/ballerina-test-automation/gradle.properties +++ b/ballerina-test-automation/gradle.properties @@ -1,6 +1,6 @@ -swan-lake-latest-version=swan-lake-2201.6.0 +swan-lake-latest-version=swan-lake-2201.8.0 swan-lake-latest-spec-version=2023R1 -swan-lake-latest-version-display-text=2201.6.0 +swan-lake-latest-version-display-text=2201.8.0 swan-lake-latest-tool-version=1.3.15 latest-tool-version=1.3.15 1-x-channel-latest-version=1.2.13 diff --git a/gradle.properties b/gradle.properties index 44e9d0418b..4c9ade92c4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.caching=true group=org.ballerinalang # During the release workflow, the following will get bumped automatically -version=2201.7.0-SNAPSHOT +version=2201.8.0-SNAPSHOT codeName=swan-lake ballerinaLangVersion=2201.8.0-20230718-003000-d7ad7106 From 28ea8734e479821b35b68cc6d4be441e5391d09f Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Wed, 19 Jul 2023 03:32:33 +0530 Subject: [PATCH 07/12] [Automated] Update ballerina lang to 2201.8.0-20230719-003200-59a10191 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 4c9ade92c4..6057d5145d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.8.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.8.0-20230718-003000-d7ad7106 +ballerinaLangVersion=2201.8.0-20230719-003200-59a10191 ballerinaJreVersion=1.1.0 dependencyJREVersion=jdk-11.0.18+10-jre specVersion=2023R1 From a8cb4ed9900006edbd71db85801b8b523a25a262 Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Thu, 20 Jul 2023 14:24:32 +0530 Subject: [PATCH 08/12] Bump log, GraphQL, and GraphQL tools versions --- gradle.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6057d5145d..a354370299 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ stdlibMathVectorVersion=1.0.1 # Stdlib Level 02 stdlibCryptoVersion=2.4.0-20230620-202300-53ac3fb -stdlibLogVersion=2.8.0-20230620-203000-74034d2 +stdlibLogVersion=2.8.1-20230718-085900-36c385c stdlibOsVersion=1.7.0-20230620-202800-f75dd63 stdlibProtobufVersion=1.5.0-20230620-202600-8d3ad44 stdlibRandomVersion=1.4.0-20230620-162300-6c8d20e @@ -63,7 +63,7 @@ stdlibWebsubVersion=2.9.0-20230622-084100-c86e0c6 stdlibWebsubhubVersion=1.9.0-20230622-083000-02e28c8 # Stdlib Level 07 -stdlibGraphqlVersion=1.9.1-20230713-142300-be8c3e2 +stdlibGraphqlVersion=1.9.1-20230720-134000-2eae4be stdlibSqlVersion=1.10.0-20230622-103500-ec74911 # Stdlib Level 08 @@ -77,7 +77,7 @@ devToolsVersion=1.2.0-20230622-155200-329d876 ballerinaCommandVersion=1.3.15 # GraphQL Tool -graphqlVersion=0.7.1-20230713-213500-3f0344c +graphqlVersion=0.7.1-20230720-140900-c92185d # Protoc Tool protocToolVersion=0.1.2-20230621-170600-536ee30 From 2351d4a6ed87f60d66642df74a0e9a87b7a1e17a Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Thu, 20 Jul 2023 15:23:44 +0530 Subject: [PATCH 09/12] Bump dependency versions --- gradle.properties | 78 +++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/gradle.properties b/gradle.properties index a354370299..2a7d5ef13b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,77 +13,77 @@ balstdlibBranch=master devIdpUrl=https://dev.api.asgardeo.io/oauth2/token/.well-known/openid-configuration # Stdlib Level 01 -stdlibConstraintVersion=1.3.0-20230620-195700-ca941bc -stdlibIoVersion=1.5.0-20230620-192100-29cf327 -stdlibJavaArraysVersion=1.3.0-20230620-192700-c836fd3 +stdlibConstraintVersion=1.3.0 +stdlibIoVersion=1.5.0 +stdlibJavaArraysVersion=1.3.0 stdlibRegexVersion=1.4.3 -stdlibTimeVersion=2.3.0-20230620-192500-12d3432 -stdlibUrlVersion=2.3.0-20230620-193100-90b6489 -stdlibXmldataVersion=2.6.0-20230620-192500-909c3b3 -observeVersion=1.1.0-20230620-193900-57e0c73 +stdlibTimeVersion=2.3.0 +stdlibUrlVersion=2.3.0 +stdlibXmldataVersion=2.6.0 +observeVersion=1.1.0 stdlibMathVectorVersion=1.0.1 # Stdlib Level 02 -stdlibCryptoVersion=2.4.0-20230620-202300-53ac3fb +stdlibCryptoVersion=2.4.0 stdlibLogVersion=2.8.1-20230718-085900-36c385c -stdlibOsVersion=1.7.0-20230620-202800-f75dd63 -stdlibProtobufVersion=1.5.0-20230620-202600-8d3ad44 -stdlibRandomVersion=1.4.0-20230620-162300-6c8d20e -stdlibTaskVersion=2.4.0-20230620-204200-bd8329a -stdlibXsltVersion=2.5.0-20230620-202700-3ea55e6 -observeInternalVersion=1.1.0-20230620-201800-18bbd1b +stdlibOsVersion=1.7.0 +stdlibProtobufVersion=1.5.0 +stdlibRandomVersion=1.4.0 +stdlibTaskVersion=2.4.0 +stdlibXsltVersion=2.5.0 +observeInternalVersion=1.1.0 # Stdlib Level 03 -stdlibCacheVersion=3.6.0-20230620-211300-8e2e2da -stdlibFileVersion=1.8.0-20230620-210800-e8f8123 -stdlibFtpVersion=2.8.0-20230620-214200-1f1f3d2 -stdlibMimeVersion=2.8.0-20230620-205000-a1e0453 -stdlibTcpVersion=1.8.0-20230622-075900-0fa3184 -stdlibUdpVersion=1.8.0-20230622-075900-2d3528e -stdlibUuidVersion=1.6.0-20230620-211300-6fdbff8 +stdlibCacheVersion=3.6.0 +stdlibFileVersion=1.8.0 +stdlibFtpVersion=2.8.0 +stdlibMimeVersion=2.8.0 +stdlibTcpVersion=1.8.0 +stdlibUdpVersion=1.8.0 +stdlibUuidVersion=1.6.0 # Stdlib Level 04 -stdlibAuthVersion=2.9.0-20230620-221100-6b88179 -stdlibEmailVersion=2.8.0-20230620-221300-6012f69 -stdlibJwtVersion=2.9.0-20230620-221100-adcdde4 -stdlibOAuth2Version=2.9.0-20230620-214300-9df2b5a -stdlibYamlVersion=0.4.0-20230621-093200-a851275 -stdlibTomlVersion=0.4.0-20230621-095100-aa7f98e +stdlibAuthVersion=2.9.0 +stdlibEmailVersion=2.8.0 +stdlibJwtVersion=2.9.0 +stdlibOAuth2Version=2.9.0 +stdlibYamlVersion=0.4.0 +stdlibTomlVersion=0.4.0 stdlibEdiVersion=1.0.1 # Stdlib Level 05 -stdlibHttpVersion=2.9.0-20230621-211000-3a0a7fa +stdlibHttpVersion=2.9.1-20230712-161400-d16a019 # Stdlib Level 06 -stdlibGrpcVersion=1.9.0-20230622-103300-e35bf3c -stdlibTransactionVersion=1.7.0-20230622-075500-ff15926 -stdlibWebsocketVersion=2.9.0-20230622-090900-c881396 -stdlibWebsubVersion=2.9.0-20230622-084100-c86e0c6 -stdlibWebsubhubVersion=1.9.0-20230622-083000-02e28c8 +stdlibGrpcVersion=1.9.0 +stdlibTransactionVersion=1.7.0 +stdlibWebsocketVersion=2.9.1-20230718-133100-1515098 +stdlibWebsubVersion=2.9.0 +stdlibWebsubhubVersion=1.9.0 # Stdlib Level 07 stdlibGraphqlVersion=1.9.1-20230720-134000-2eae4be -stdlibSqlVersion=1.10.0-20230622-103500-ec74911 +stdlibSqlVersion=1.10.0 # Stdlib Level 08 -stdlibPersistVersion=1.1.0-20230620-202500-81fc407 +stdlibPersistVersion=1.1.0 # Persist Tool -persistToolVersion=1.1.0-20230622-120500-88996bc +persistToolVersion=1.1.0 # Dev Tools -devToolsVersion=1.2.0-20230622-155200-329d876 +devToolsVersion=1.2.0 ballerinaCommandVersion=1.3.15 # GraphQL Tool graphqlVersion=0.7.1-20230720-140900-c92185d # Protoc Tool -protocToolVersion=0.1.2-20230621-170600-536ee30 +protocToolVersion=0.1.2 # OpenAPI Module -openapiVersion=1.7.0-20230622-162600-20520d8 +openapiVersion=1.7.0 # AsyncAPI Module asyncapiVersion=0.6.0 From 47087be442702f18abf884d583d57f53b5648902 Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Sat, 22 Jul 2023 03:03:34 +0530 Subject: [PATCH 10/12] [Automated] Update ballerina lang to 2201.8.0-20230722-001300-1b14109d --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 2a7d5ef13b..907c280cae 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.8.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.8.0-20230719-003200-59a10191 +ballerinaLangVersion=2201.8.0-20230722-001300-1b14109d ballerinaJreVersion=1.1.0 dependencyJREVersion=jdk-11.0.18+10-jre specVersion=2023R1 From 065c6a3cb04c8d8d551220930b9d39cef4745afc Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Mon, 24 Jul 2023 03:40:05 +0530 Subject: [PATCH 11/12] [Automated] Update ballerina lang to 2201.8.0-20230724-005400-1b14109d --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 907c280cae..0a9c13efb8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.8.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.8.0-20230722-001300-1b14109d +ballerinaLangVersion=2201.8.0-20230724-005400-1b14109d ballerinaJreVersion=1.1.0 dependencyJREVersion=jdk-11.0.18+10-jre specVersion=2023R1 From d391a32f1044193ebe2709056efb23b8336c70a0 Mon Sep 17 00:00:00 2001 From: MaryamZi Date: Tue, 25 Jul 2023 10:26:17 +0530 Subject: [PATCH 12/12] Update versions --- gradle.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 0a9c13efb8..47762bdb8e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -56,11 +56,11 @@ stdlibEdiVersion=1.0.1 stdlibHttpVersion=2.9.1-20230712-161400-d16a019 # Stdlib Level 06 -stdlibGrpcVersion=1.9.0 -stdlibTransactionVersion=1.7.0 +stdlibGrpcVersion=1.9.1-20230720-093600-e476d75 +stdlibTransactionVersion=1.7.0-20230724-121800-61fea60 stdlibWebsocketVersion=2.9.1-20230718-133100-1515098 -stdlibWebsubVersion=2.9.0 -stdlibWebsubhubVersion=1.9.0 +stdlibWebsubVersion=2.9.1-20230720-002500-d909581 +stdlibWebsubhubVersion=1.9.1-20230720-093500-d98cb16 # Stdlib Level 07 stdlibGraphqlVersion=1.9.1-20230720-134000-2eae4be