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/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..7cccce26c3 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 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 ::: -::: 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: [] diff --git a/gradle.properties b/gradle.properties index ac9375277d..5720a658ce 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,10 +1,10 @@ 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-20230712-000400-d08328e9 +ballerinaLangVersion=2201.8.0-20230724-005400-1b14109d ballerinaJreVersion=1.1.0 dependencyJREVersion=jdk-11.0.18+10-jre specVersion=2023R1 @@ -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 -stdlibLogVersion=2.8.0-20230620-203000-74034d2 -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 +stdlibCryptoVersion=2.4.0 +stdlibLogVersion=2.8.1-20230718-085900-36c385c +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 +stdlibCacheVersion=3.6.0 stdlibFileVersion=1.8.1 -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 +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.1-20230720-093600-e476d75 +stdlibTransactionVersion=1.7.0-20230724-121800-61fea60 +stdlibWebsocketVersion=2.9.1-20230718-133100-1515098 +stdlibWebsubVersion=2.9.1-20230720-002500-d909581 +stdlibWebsubhubVersion=1.9.1-20230720-093500-d98cb16 # Stdlib Level 07 -stdlibGraphqlVersion=1.9.0-20230622-112800-0ade7bc -stdlibSqlVersion=1.10.0-20230622-103500-ec74911 +stdlibGraphqlVersion=1.9.1-20230720-134000-2eae4be +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.6.0 +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