0.25.1
Standard library
Macros
- Fixed
Object.delegate
is now able to be used with[]=
methods. (#6178, thanks @straight-shoota) - Fixed
p!
pp!
are now able to be used with tuples. (#6244, thanks @bcardiff) - Add
#copy_with
method to structs generated byrecord
macro. (#5736, thanks @chris-baynes) - Add docs for
ArrayLiteral#push
and#unshift
. (#6232, thanks @makenowjust)
Collections
- Add docs for
Indexable#zip
and#zip?
methods. (#5734, thanks @rodrigopinto)
Serialization
- Add
#dup
and#clone
forJSON::Any
andYAML::Any
. (6266, thanks @asterite) - Add docs example of nesting mappings to
YAML.builder
. (#6097, thanks @kalinon)
Time
- Fixed docs regarding formatting and parsing
Time
. (#6208, #6214, thanks @r00ster91 and @straight-shoota) - Fixed
Time
internals for future windows support. (#6181, thanks @RX14) - Add
Time::Span#microseconds
,Int#microseconds
andFloat#microseconds
. (#6272, thanks @asterite) - Add specs. (#6174, thanks @straight-shoota)
Files
- Fixed
File.extname
edge case. (#6234, thanks @bcardiff) - Fixed
FileInfo#flags
return value. (#6248, thanks @fgimian)
Networking
- Fixed
IO#write(slice : Bytes)
won't write information if slice is empty. (#6269, thanks @asterite) - Fixed docs regarding
HTTP::Server#bind_tcp
method. (#6179, #6233, thanks @straight-shoota and @makenowjust) - Add Etag support in
HTTP::StaticFileHandler
. (#6145, thanks @emq)
Misc
- Fixed
mmap
usage on OpenBSD 6.3+. (#6250, thanks @jcs) - Fixed
big/big_int
,big/big_float
, etc are now able to be included directly. (#6267, thanks @asterite) - Refactor dependency in
Crystal::Hasher
to avoid load order issues. (#6184, thanks @ysbaddaden)
Compiler
- Fixed a leakage of unbounded generic type variable and show error. (#6128, thanks @asterite)
- Fixed error message when lookup of library fails and lib's name contains non-alpha chars. (#6187, thanks @oprypin)
- Fixed integer kind deduction for very large negative numbers. (#6182, thanks @rGradeStd)
- Refactor specs tempfiles and data files usage in favor of portability (#5951, thanks @straight-shoota)
- Improve formatting and information in some compiler error messages. (#6261, thanks @RX14)
Tools
Formatter
- Fixed crash when semicolon after block paren were present. (#6192, thanks @makenowjust)
- Fixed invalid code produced when heredoc and comma were present. (#6222, thanks @straight-shoota and @makenowjust)
- Fixed crash when one-liner
begin
/rescue
were present. (#6274, thanks @asterite)
Doc generator
- Fixed JSON export that prevent jumping to constant. (#6218, thanks @straight-shoota)
- Fixed crash when virtual types were reached. (#6246, thanks @bcardiff)