- 1.2.55
- 1.2.54
- 1.2.53
- 1.2.52
- 1.2.51
- 1.2.50
- 1.2.49
- 1.2.48
- 1.2.47
- 1.2.46
- 1.2.45
- 1.2.44
- 1.2.43
- 1.2.42
- 1.2.41
- 1.2.40
- 1.2.39
- 1.2.38
- 1.2.37
- 1.2.36
- 1.2.35
- 1.2.34
- 1.2.33
- 1.2.32
- 1.2.31
- 1.2.30
- 1.2.29
- 1.2.28
- 1.2.27
- 1.2.26
- 1.2.25
- 1.2.24
- 1.2.23
- 1.2.22
- 1.2.21
- 1.2.20
- 1.2.19
- 1.2.18
- 1.2.17
- 1.2.16
- 1.2.15
- 1.2.14
- 1.2.13
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
Overview of Ballerina Swan Lake 2201.1.1
Swan Lake 2201.1.1 is the first patch release of Ballerina 2201.1.0 (Swan Lake Update 1) and it includes a new set of bug fixes to the compiler, runtime, standard library, and developer tooling.
Update Ballerina
If you are already using Ballerina 2201.0.0 (Swan Lake), run either of the commands below to directly update to 2201.1.1 using the Ballerina Update Tool.
bal dist update
(or bal dist pull 2201.1.1
)
If you are using a version below 2201.0.0 (Swan Lake), run the commands below to update to 2201.1.1.
-
Run
bal update
to get the latest version of the Update Tool. -
Run
bal dist update
( orbal dist pull 2201.1.1
) to update your Ballerina version to 2201.1.1.
However, if you are using a version below 2201.0.0 (Swan Lake) and if you already ran bal dist update
(or bal dist pull 2201.1.1
) before bal update
, see Troubleshooting to recover your installation.
Install Ballerina
If you have not installed Ballerina, then download the installers to install.
Language updates
To view bug fixes, see the GitHub milestone for Swan Lake 2201.1.1.
Developer tools updates
New features
Language Server
- Implemented a publisher/subscriber model for internal components and extensions to be notified about various events like project updates
- Added new code actions to extract anonymous records into records and to generate undefined record types
- Introduced new code actions to generate getters and setters for class-level variables
- Added a new code action to make annotation declarations with the
source
attach point(s) constant
Improvements
Language Server
- Improved hover feature support to display default values for defaultable parameters when hovering over a function
- Improved the
Create function
code action to add theisolated
keyword to a function - Improved the
Create function
code action to handle named arguments - Improved the
Change return type
code action to add an optional error for check expressions - Extended the
Type cast
code action to support several unsupported binary operations - Improved the completion item sorting in
wait
actions and already-completed statements - Updated the
resource function
snippet to add default values for the resource method and path - Refactored the
CommonUtil
class by introducing several new utilities for the methods that are not used by only a single entity - Modified the snippet labels for
record-type
definitions - Improved the renaming support to avoid renaming on a compilation error
- Improved the
strand
annotation completion support in variable declarations - Added completion support for already-imported modules as well as
spread
andrest
fields in records
OpenAPI Tool
- Improved the service resource function return type generation by moving inline record generation to customised record.
Bug Fixes
To view bug fixes, see the GitHub milestone for 2201.1.1 (Swan Lake) of the repositories below.