crystal v0.36.1 Release Notes

Release Date: 2021-02-02 // about 3 years ago
  • Standard library

    • ๐Ÿ›  Fix Enum.from_value? for flag enum with non Int32 base type. (#10303, thanks @straight-shoota)

    Text

    • Don't raise on String.new with null pointer and bytesize 0. (#10308, thanks @asterite)

    Collections

    • โช Explicitly return a Hash in Hash#dup and Hash#clone (reverts #9871). (#10331, thanks @straight-shoota)

    Serialization

    • ๐Ÿ—„ XML: fix deprecation warning. (#10335, thanks @bcardiff)

    โš™ Runtime

    • Eager load DWARF only if CRYSTAL_LOAD_DWARF=1. (#10326, thanks @bcardiff)

    Compiler

    • ๐ŸŽ (performance) Initialize right-away constants in a separate function. (#10334, thanks @asterite)
    • ๐Ÿ›  Fix incorrect casting between different union types. (#10333, thanks @asterite)
    • ๐Ÿ›  Fix a formatting error in the "missing argument" error. (#10325, thanks @BlobCodes)
    • ๐Ÿ›  Fix while condition assignment check for Not. (#10347, thanks @asterite)
    • ๐Ÿ‘ Allow operators and setters-like macros names back. (#10338, thanks @asterite)

    Language semantics

    • ๐Ÿ›  Fix type check not considering virtual types. (#10304, thanks @asterite)
    • ๐Ÿ‘‰ Use path lookup when looking up type for auto-cast match. (#10318, thanks @asterite)