Releases
0.32.0
Compare
Sorry, something went wrong.
No results found
Language changes
Allow boolean negation to be written also as a regular method call expr.!. (#8445 , thanks @jan-zajic )
Macros
Add TypeNode#class_vars to list class variables of a type in a macro. (#8405 , thanks @jan-zajic )
Add TypeNode#includers to get an array of types a module is directly included in. (#8133 , thanks @Blacksmoke16 )
Add ArrayLiteral#map_with_index and TupleLiteral#map_with_index. (#8049 , thanks @Blacksmoke16 )
Add docs for ArrayLiteral#reduce. (#8379 , thanks @jan-zajic )
Add lower: named argument to StringLiteral#camelcase. (#8429 , thanks @Blacksmoke16 )
Standard library
(breaking-change) Remove Readline from std-lib. It's now available as a shard at crystal-lang/crystal-readline (#8364 , thanks @ftarulla )
Move Number#clamp to Comparable#clamp. (#8522 , thanks @wontruefree)
Allow abort without arguments. (#8214 , thanks @dbackeus )
Improve error message for not-nil assertion in getters. (#8200 , #8296 , thanks @icy-arctic-fox )
Add Enum.valid?. (#5716 , thanks @makenowjust )
Disable colored output if TERM=dumb. (#8271 , thanks @ilanpillemer )
Documentation improvements. (#7656 , #8337 , #8446 , thanks @r00ster91 , @vlazar , @cserb )
Add docs for pseudo methods. (#8327 , #8491 , thanks @straight-shoota )
Code cleanups. (#8270 , #8368 , #8404 , thanks @asterite , @vlazar , @arcage )
Numeric
Text
(breaking-change) Implement string interpolation as a call to String.interpolation. (#8400 , thanks @asterite )
(breaking-change) Deprecate String#codepoint_at, use char_at(index).ord. (#8475 , thanks @vlazar )
Fixed encoding specs for musl iconv. (#8525 , thanks @straight-shoota )
Add String#presence. (#8345 , #8508 , thanks @igor-alexandrov , @Sija )
Add String#center. (#8557 , thanks @hutou )
(performance) Refactor String#to_utf16 optimizing for ascii-only. (#8526 , thanks @straight-shoota )
Add docs in Levenshtein module. (#8386 , thanks @katafrakt )
Add docs to Regex::Options. (#8448 , thanks @jan-zajic )
Collections
(breaking-change) Deprecate Enumerable#grep, use Enumerable#select. (#8452 , thanks @j8r )
Fixed Enumerable#minmax, #min, #max for partially comparable values. (#8490 , thanks @TedTran2019 )
Fixed Hash#rehash. (#8450 , thanks @asterite )
Fixed Array range assignment index out of bounds. (#8347 , thanks @asterite )
Fixed endless ranged support for String#[]? and Array#[]?. (#8567 , thanks @KarthikMAM )
Add Hash#compare_by_identity and Set#compare_by_identity. (#8451 , thanks @asterite )
Add Enumerable#each_cons_pair and Iterator#cons_pair yielding a tuple. (#8332 , thanks @straight-shoota )
Add offset argument to all map_with_index methods. (#8264 , thanks @asterite )
(performance) Optimized version of Tuple#to_a. (#8265 , thanks @asterite )
Add docs to Hash.merge!(other : Hash, &). (#8380 , thanks @jan-zajic )
Add docs to Hash.select. (#8391 , thanks @jan-zajic )
Add docs and specs to Enumerable.reduce. (#8378 , thanks @jan-zajic )
Serialization
(breaking-change) Make XML::Reader#expand raise, introduce XML::Reader#expand? for former behavior. (#8186 , thanks @Blacksmoke16 )
Allow JSON.mapping & YAML.mapping converter attribute to be applied to Array and Hash. (#8156 , thanks @rodrigopinto )
Add use_json_discriminator and use_yaml_discriminator to choose type based on property value. (#8406 , thanks @asterite )
Remove return type self restriction from Object.from_json and Object.from_yaml. (#8489 , thanks @straight-shoota )
Files
(breaking-change) Remove expand home (~) by default in File.expand_path and Path#expand, now opt-in argument. (#7903 , thanks @didactic-drunk )
Fixed bugs in Path regarding #dirname, #each_part, #each_parent. (#8415 , thanks @jan-zajic )
Fixed GZip::Reader and GZip::Writer to handle large data sizes. (#8421 , thanks @straight-shoota )
Fixed File::Info#same_file? by providing access to 64 bit inode numbers. (#8355 , thanks @didactic-drunk )
Networking
Fixed HTTP::Response#mime_type returns nil on empty Content-Type header. (#8464 , thanks @Sija )
Fixed handling of unidirectional SSL servers hang. (#8481 , thanks @rdp )
Add HTTP::Client#write_timeout. (#8507 , thanks @Sija )
Updated mime type of .js files to text/javascript and include image/webp. (#8342 , thanks @mamantoha )
Refactor websocket protocol GUID string. (#8339 , thanks @vlazar )
Crypto
(breaking-change) Enforce single-line results of OpenSSL::DigestBase#base64digest via Base64.strict_encode. (#8215 , thanks @j8r )
Concurrency
Fixed Channel successful sent and raise behavior. (#8284 , thanks @firejox )
Fixed Channel#close to be thread-safe. (#8249 , thanks @firejox )
Fixed select with receive? and closed channels. (#8304 , thanks @bcardiff )
Faster Mutex implementation and policy checks. (#8295 , #8563 , thanks @waj , @ysbaddaden )
(performance) Channel internals refactor and optimize. (#8322 , #8497 , thanks @firejox , @Sija )
Add docs to Channel#send and Channel#close. (#8356 , thanks @lbarasti )
Fixed Thread#gc_thread_handler for Windows support. (#8519 , thanks @straight-shoota )
System
Runtime
Spec
Fixed --fail-fast behaviour. (#8453 , thanks @asterite )
Add before, after, and around hooks. (#8302 , thanks @asterite )
Restrict the type returned by should_not be_nil and others. (#8412 , thanks @asterite )
Add ability to randomize specs via --order random|<seed-value>. (#8310 , thanks @Fryguy )
Add specs for Spec filters. (#8242 , thanks @Fryguy )
Add ability to tag specs. (#8068 , thanks @Fryguy )
Compiler
Fixed musl libc detection (Alpine 3.10 regression bug). (#8330 , thanks @straight-shoota )
Fixed pragmas handling in macros. (#8256 , thanks @asterite )
Fixed parser crash for 'alias Foo?'. (#8282 , thanks @oprypin )
Fixed parser error on newline before closing parenthesis. (#8320 , thanks @makenowjust )
Fixed generic subtypes edge cases triggering no target defs error. (#8417 , thanks @asterite )
Fixed cleanup of local vars reachable by macros. (#8529 , thanks @asterite )
Add support for LLVM 9. (#8358 , thanks @RX14 )
Add --mcmodel option to compiler. (#8363 , thanks @ffwff )
Disallow instance_sizeof on union. (#8399 , thanks @asterite )
Add mention to crystal <command> --help in help. (#3628 , thanks @rdp )
Improve error message when a filename is misspelled. (#8500 , thanks @rdp )
Show full path of locally compiled Crystal. (#8486 , thanks @rdp )
Code cleanups. (#8460 , thanks @veelenga )
Language semantics
Tools
Formatter
Doc generator
Fixed underscore type restriction in doc generator. (#8331 , thanks @straight-shoota )
Correctly attach docs through multiple macro invocations. (#8502 , thanks @asterite )
Allow constants to use :ditto:. (#8389 , thanks @Blacksmoke16 )
Add sitemap generator. (#8348 , thanks @straight-shoota )
Add documentation for pseudo-methods: !, as, nil?, etc.. (#8327 , #8371 , thanks @straight-shoota )
Add clickable anchor icon next to headings. (#8344 , thanks @Blacksmoke16 )
Use & instead of &block for signature of yielding method. (#8394 , thanks @j8r )
Playground
Do not collapse whitespaces in playground sidebar. (#8528 , thanks @hugopl )
Others
You can’t perform that action at this time.