Crystal 1.18.2 is released!
We are announcing a new Crystal release 1.18.2 with two regressions fixed.

Crystal 1.18.2 is now available, addressing two critical regressions that were introduced in the previous major release, 1.18.0. This minor update, numbered 1.18.2, focuses on fixing these issues to ensure the stability and reliability of the Crystal programming language.
The release notes for 1.18.0 provide a comprehensive overview of the changes introduced in the major release. For those who have already upgraded to 1.18.0, it's essential to note that this 1.18.2 update is a patch release designed to rectify the two regressions that arose after the initial 1.18.0 release. These regressions could potentially cause issues in certain applications built with Crystal, so it's recommended for users to update to the latest version as soon as possible.
The first regression fixed in Crystal 1.18.2 pertains to the type restrictions of the IO#read_bytes method. This issue, identified as #16231, was introduced in 1.18.0 and could lead to unexpected behavior or errors in code that relies on this method. By addressing this regression, developers can now be confident that their applications will function as intended when using IO#read_bytes.
The second regression, labeled as #16227, concerns a bug in Fiber::ExecutionContext.default_workers_count. This error, also introduced in 1.18.0, could impact the performance and stability of applications that utilize Crystal's concurrency features. The fix in 1.18.2 ensures that the default workers count is correctly calculated, preventing potential issues related to thread management and execution.
In addition to these fixes, Crystal 1.18.2 includes three changes since the previous minor release, 1.18.1, contributed by three different developers. The Crystal team expresses their gratitude to all contributors for their dedication to improving the language. Their efforts have been instrumental in enhancing the overall quality and functionality of Crystal.
Pre-built packages for Crystal 1.18.2 are available on GitHub Releases and through the official distribution channels. Users can find detailed installation instructions on the Crystal website at crystal-lang.org/install. It's crucial for developers to ensure they have the latest version of Crystal installed to benefit from these important fixes and maintain the stability of their applications.
The Crystal team acknowledges the continued support of 84codes and all other sponsors, who have played a vital role in enabling the development and release of this update. To sustain and accelerate the pace of development, donations and sponsorships are essential. OpenCollective serves as a platform for those interested in supporting Crystal financially. Those who wish to become direct sponsors or explore other ways to contribute are encouraged to reach out to crystal@manas.tech. The team thanks all supporters in advance for their invaluable contributions.
In conclusion, Crystal 1.18.2 is a crucial update that addresses two significant regressions introduced in the previous major release. With these fixes, developers can now rely on the stability and reliability of the Crystal programming language, ensuring their applications run smoothly. As always, the Crystal team remains committed to improving the language and welcomes contributions from the community.










