Releases
0.27.1
Language changes
Standard library
Macros
Numeric
Fixed scale issues when dividing BigDecimal
. (#7218 , thanks @Sija )
Allow underscores in the String
passed to Big*
constructors. (#7107 , thanks @Sija )
Add conversion methods and docs to Complex
. (#5440 , thanks @Sija )
Add specs for Int128
, UInt128
. (#7173 , thanks @bcardiff )
Add unsafe number ops value.to_X!
/T.new!
/Int#&**
. (#7226 , thanks @bcardiff )
Add overflow detection with preview opt-in. (#7206 , thanks @bcardiff )
Text
Collections
Fixed docs example in Hash#from
. (#7210 , thanks @r00ster91 )
Fixed docs links of Enumerable#chunks
and Iterator#chunk
. (#6941 , thanks @r00ster91 )
Remove implicit null skip from Hash
to JSON
serialization. (#7053 , thanks @makenowjust )
Add Iterator#slice_after
. (#7146 , thanks @asterite )
Add Iterator#slice_before
. (#7152 , thanks @asterite )
Add Iteratory#slice_when
and Iterator#chunk_while
. (#7159 , thanks @asterite )
Add Enumerable#to_h(&block)
. (#7150 , thanks @Sija )
Add Enumerable#one?
. (#7166 , thanks @asterite )
Add several Enumerable
, Iterator
and Array
overloads that accept a pattern. (#7174 , thanks @asterite )
Add docs to hash constructors. (#6923 , thanks @KCErb )
Serialization
Time
Fixed Time::Span
initializer and sleep
for big seconds. (#7221 , thanks @asterite )
Fixed docs to show proper use of parse. (#7035 , thanks @jwoertink )
Add missing Float#weeks
method similar to Int#weeks
. (#7165 , thanks @vlazar )
Files
Networking
Fixed HTTP::Client
edge case of exception during in TLS initialization. (#7123 , thanks @asterite )
Fixed OpenSSL::SSL::Error.new
to not raise Errno
. (#7068 , thanks @straight-shoota )
Fixed URI
encoding in StaticFileHandler::DirectoryListing
. (#7072 , thanks @Sija )
Add MIME registry. (#5765 , #7079 , #7080 , thanks @straight-shoota , @Sija )
Add MIME::MediaType
for parsing mime media types. (#7077 , thanks @straight-shoota )
Add support for 100-continue in HTTP::Server::Response
. (#6912 , thanks @jreinert )
Add support for creating sockets from raw file descriptors. (#6894 , thanks @myfreeweb )
Add SNI support for OpenSSL. (#7291 , thanks @bararchy )
Improve HTTP::Server
docs. (#7251 , thanks @straight-shoota )
Refactor OpenSSL
specs to reduce chances of failing. (#7202 , thanks @bcardiff )
Crypto
System
Fixed inline ASM when compiling for ARM. (#7041 , thanks @omarroth )
Implement Crystal::System
for Win32. (#6972 , thanks @markrjr)
Add Errno#errno_message
getter. (#6702 , thanks @r00ster91 )
Spec
Compiler
Fixed how LLVM::Type.const_int
emit Int128
literals. (#7135 , thanks @bcardiff )
Fixed ICE related to named tuples. (#7163 , thanks @asterite )
Fixed automatic casting for private top-level methods. (#7310 , thanks @asterite )
Give proper error if defining initialize inside enum, allow Enum.new
. (#7266 , thanks @asterite )
Give proper error when trying to access instance variable of union type. (#7194 , thanks @asterite )
Give proper error when trying to instantiate Module. (#6735 , thanks @r00ster91 )
Give proper error related to named arguments. (#7288 , thanks @asterite )
Parse required comma between block args. (#7343 , thanks @asterite )
Improve inference in recursion that involves blocks. (#7161 , thanks @asterite )
Add locations to all expanded macro arguments. (#7008 , thanks @makenowjust )
Turn a not compiler specific error while requiring into ICE. (#7208 , thanks @makenowjust )
Remove old nil?
error on pointer types. (#7180 , thanks @asterite )
Improve too big tuple and named tuple error message. (#7131 , thanks @r00ster91 )
Workaround buggy offset debug info values. (#7335 , thanks @bcardiff )
Refactor extract helper methods to emit Float32
, Float64
values. (#7134 , thanks @bcardiff )
Refactor filename resolution logic out of interpret_run
. (#7051 , thanks @Sija )
Refactor internals regarding overflow. (#7262 , thanks @bcardiff )
Refactor Crystal::Codegen::Target
and consolidate triple handling. (#7282 , #7317 , thanks @RX14 , @bcardiff )
Tools
Formatter
Doc generator
(security) Prevent XSS via args. (#7056 , thanks @makenowjust )
Fixed generation of toplevel. (#7063 , thanks @makenowjust )
Fixed display of double splat and block arg. (#7029 , #7031 , thanks @makenowjust )
Fixed keep trailing spaces in macros. (#7099 , thanks @makenowjust )
Fixed avoid showing subtypes of aliased type. (#7124 , thanks @asterite )
Fixed style of methods when hovering. (#7022 , thanks @r00ster91 )
Fixed duplicate source_link
field. (#7033 , thanks @bcardiff )
Fixed missing keywords in Doc::Highlighter
. (#7054 , thanks @makenowjust )
Add --format
option to docs command. (#6982 , thanks @mniak )
Others
CI improvements and housekeeping. (#7018 , #7043 , #7133 , #7139 , #7230 , #7227 , #7263 , thanks @bcardiff )
CI split formatting check. (#7228 , thanks @bcardiff )
Depend on standard variable to let the user define the build date. (#7186 , thanks @eli-schwartz )
Reorganize community section in README, add forum. (#7235 , thanks @straight-shoota )
Fixed docs grammar and typos. (#7034 , #7242 , #7331 , thanks @r00ster91 , @girng )
Improve samples. (#6454 , thanks @r00ster91 )
Fixed 0.27.0 CHANGELOG. (#7024 , thanks @arcage )
Update ISSUE_TEMPLATE to include forum. (#7301 , thanks @straight-shoota )
Update LICENSE's copyright year. (#7246 , thanks @matiasgarciaisaia )
You can’t perform that action at this time.