Skip to content

Releases: crystal-lang/crystal

0.35.0

09 Jun 18:51
3c48f31
Compare
Choose a tag to compare

Language changes

  • (breaking-change) Let case when be non-exhaustive, introduce case in as exhaustive. (#9258, #9045, thanks @asterite)
  • Allow ->@ivar.foo and ->@@cvar.foo expressions. (#9268, thanks @makenowjust)

Macros

  • Allow executing OpAssign (+=, ||=, etc.) inside macros. (#9409, thanks @asterite)

Standard library

Macros

  • (breaking-change) Remove top-level assert_responds_to macro. (#9085, thanks @bcardiff)
  • (breaking-change) Drop top-level parallel macro. (#9097, thanks @bcardiff)
  • Fix lazy property not forwarding annotations. (#9140, thanks @asterite)
  • Add host_flag? macro method, not affected by cross-compilation. (#9049, thanks @oprypin)
  • Add .each and .each_with_index to various macro types. (#9120, thanks @Blacksmoke16)
  • Add StringLiteral#titleize macro method. (#9269, thanks @makenowjust)
  • Add TypeNode methods to check what "type" the node is. (#9270, thanks @Blacksmoke16)
  • Fix support TypeNode.name(generic_args: false) for generic instances. (#9224, thanks @Blacksmoke16)

Numeric

  • (breaking-change) Add Int#digits, reverse BigInt#digits result. (#9383, thanks @asterite)
  • Fix overflow checking for operations with mixed sign. (#9403, thanks @waj)
  • Add BigInt#factorial using GMP. (#9132, thanks @peheje)

Text

Collections

  • (breaking-change) Add Enumerable#first with fallback block. (#8999, thanks @makenowjust)
  • Fix Array#delete_at bug with negative start index. (#9399, thanks @asterite)
  • Fix Enumerable#{zip,zip?} when self is an Iterator. (#9330, thanks @mneumann)
  • Make Range#each and Range#reverse_each work better with end/begin-less values. (#9325, thanks @asterite)
  • Improve docs on Hash. (#8887, thanks @rdp)

Serialization

Time

  • (breaking-change) Support different number of fraction digits for RFC3339 time format. (#9283, thanks @waj)
  • Fix parsing AM/PM hours. (#9334, thanks @straight-shoota)
  • Improve File.utime precision from second to 100-nanosecond on Windows. (#9344, thanks @kubo)

Files

Networking

  • (breaking-change) Make IO#skip, IO#write returns the number of bytes it skipped/written as Int64. (#9233, #9363, thanks @bcardiff)
  • (breaking-change) Improve error handling and logging in HTTP::Server. (#9115, #9034, thanks @waj, @straight-shoota)
  • (breaking-change) Change HTTP::Request#remote_address type to Socket::Address?. (#9210, thanks @waj)
  • Fix flush methods to always flush underlying IO. (#9320, thanks @straight-shoota)
  • Fix HTTP::Server sporadic failure in SSL handshake. (#9177, thanks @waj)
  • WebSocket shouldn't reply with same close code. (#9313, thanks @waj)
  • Ignore response body during WebSocket handshake. (#9418, thanks @waj)
  • Treat cookies which expire in this instant as expired. (#9061, thanks @RX14)
  • Set sync or flush_on_newline for standard I/O on Windows. (#9207, thanks @kubo)
  • Prefer HTTP basic authentication in OAuth2 client. (#9127, ...
Read more

0.34.0

06 Apr 20:36
4401e90
Compare
Choose a tag to compare

Language changes

Standard library

  • (breaking-change) Replace Errno, WinError, IO::Timeout with RuntimeError, IO::TimeoutError, IO::Error, File::Error, Socket::Error, and subclasses. (#8885, thanks @waj)
  • (breaking-change) Replace Logger module in favor of Log module. (#8847, #8976, thanks @bcardiff)
  • (breaking-change) Move Adler32 and CRC32 to Digest. (#8881, thanks @bcardiff)
  • (breaking-change) Remove DL module. (#8882, thanks @bcardiff)
  • Enable more win32 specs. (#8683, #8822, thanks @straight-shoota)
  • Make SemanticVersion::Prerelease comparable. (#8991, thanks @makenowjust)
  • Use flag?(:i386) instead of obsolete flag?(:i686). (#8863, thanks @bcardiff)
  • Remove Windows workaround using vsnprintf. (#8942, thanks @oprypin)
  • Fixed docs broken link to ruby's prettyprint source. (#8915, thanks @MattHin)
  • Update OptionParser example to exit on --help. (#8927, thanks @vlazar)

Numeric

Text

Collections

  • Fixed make Range#size raise on an open range. (#8829, thanks @Sija)
  • Add Enumerable#empty?. (#8960, thanks @Sija)
  • (performance) Optimized Implementation of Array#fill for zero Values. (#8903, thanks @toddsundsted)
  • Refactor Reflect to an Enumerable private definition. (#8884, thanks @bcardiff)

Serialization

Time

Files

  • Fixed multi-thread race condition by setting fd to -1 on closed File/Socket. (#8873, thanks @bcardiff)
  • Fixed File.dirname with unicode chars. (#8911, thanks @asterite)
  • Add IO::Buffered#flush_on_newline back and set it to true for non-tty. (#8935, thanks @asterite)
  • Forward missing methods of IO::Hexdump to underlying IO. (#8908, thanks @carlhoerberg)

Networking

  • (breaking-change) Correctly support WebSocket close codes. (#8975, #8981, thanks @RX14, @Sija)
  • Make HTTP::Client return empty body_io if content-length is zero. (#8503, thanks @asterite)
  • Fixed UDP specs in the case of a local firewall. (#8817, thanks @RX14)
  • Fixed MIME spec examples to not collide with actual registry. (#8795, thanks @straight-shoota)
  • Fixed UNIXServer, and HTTP::WebSocket specs to ensure server is accepting before closing. (#8755, #8879, thanks @bcardiff)
  • Add type annotation to tls argument in HTTP. (#8678, thanks @j8r)
  • Add Location to HTTP::Request common header names. (#8992, thanks @mamantoha)

Concurrency

System

Runtime

  • Fixed exceptions not being inspectable when running binary from PATH. (#8807, thanks @willhbr)
  • Move AtExitHandlers to Crystal namespace. (#8883, thanks @bcardiff)

Compiler

  • (breaking-change) Drop disable_overflow compiler flag. (#8772, thanks @Sija)
  • Fixed url in "can't infer block return type" error message. (#8869, thanks @nilium)
  • Fixed typo in math interpreter error message. (#8941, thanks @j8r)
  • Use CRYSTAL_OPTS environment variable as default compiler options. (#8900, thanks @bcardiff)
  • Avoid using the default --exclude-warnings value if some is specified. (#8899, thanks @bcardiff)
  • Honor LIBRARY_PATH as default library path, and allow linking with no explicit /usr/lib:/usr/local/lib paths. (#8948, thanks @bcardiff)
  • Fix Windows LLVM globals codegen in non-single-module mode. (#8978, thanks @oprypin)
  • Add support for LLVM 10. (#8940, thanks @RX14)
  • Remove redundant calls to Object.to_s in interpolation in compiler's code. (#8947, thanks @veelenga)

Language semantics

  • Type as NoReturn if calling method on abstract class with no concrete subclasses. (#8870, thanks @asterite)

Tools

Doc generator

Others

Read more

0.33.0

14 Feb 21:08
Compare
Choose a tag to compare

Language changes

Macros

  • Add TypeNode#name(generic_args : BoolLiteral) to return TypeNode's name with or without type vars. (#8483, thanks @Blacksmoke16)

Standard library

  • (breaking-change) Remove several previously deprecated methods and modules: PartialComparable, Crypto::Bcrypt::Password#==, HTTP::Server::Response#respond_with_error, JSON::PullParser::Kind#==, Symbol#==(JSON::PullParser::Kind), JSON::Token#type, String#at, Time.new, Time.now, Time.utc_now, URI.escape, URI.unescape. (#8646, #8596, thanks @bcardiff, @Blacksmoke16)
  • Fixed docs wording. (#8606, #8784, thanks @fxn)
  • Add Object#in?. (#8720, #8723, thanks @Sija)
  • Allow to create an enum from a symbol. (#8634, thanks @bew)
  • Add VaList#next for getting the next element in a variadic argument list. (#8535, #8688, thanks @ffwff, @RX14)
  • Refactor ARGF implementation. (#8593, thanks @arcage)
  • Fixed specs of Colorize on dumb terminal. (#8673, thanks @oprypin)
  • Fixed some specs on Win32. (#8670, thanks @straight-shoota)

Numeric

Text

  • Fixed \u0000 wrongly added on String#sub(Hash) replaces last char. (#8644, thanks @mimame)

Collections

  • Fixed Enumerable#zip to work with union types. (#8621, thanks @asterite)
  • Fixed docs regarding Hash's initial_capacity. (#8569, thanks @r00ster91)

Serialization

  • Improved JSON deserialization into union types. (#8689, thanks @kimburgess)
  • Fixed expected error message in libxml2 error spec. (#8699, thanks @straight-shoota)
  • Fixed JSON::PullParser overflow handling. (#8698, thanks @kimburgess)
  • Fixed JSON::Any#dig?/YAML::Any#dig? on non-structure values. (#8745, thanks @Sija)

Time

Files

  • (breaking-change) Deprecate File::Info#owner, and File::Info#group; use owner_id, and group_id. (#8007, thanks @j8r)
  • Fixed Path.new receiving Path as first argument. (#8753, thanks @straight-shoota)
  • Fixed File.size and File.info to work with Path parameters. (#8625, thanks @snluu)
  • Fixed Path specs when ENV["HOME"] is unset. (#8667, thanks @straight-shoota)
  • Refactor Dir.mkdir_p to use Path#each_parent and make it work on Win32. (#8668, thanks @straight-shoota)
  • Fixed IO::MultiWriter specs to close file before reading/deleting it. (#8674, thanks @oprypin)

Networking

  • Fixed invalid call to libevent and race conditions on closed IO when resuming readable/writable event. (#8707, #8733, thanks @bcardiff)
  • Fixed unexpected EOF in terminated SSL connection. (#8540, thanks @rdp)
  • Fixed HTTP::Cookie to support Int64 max-age values. (#8759, thanks @asterite)
  • Improve error message for getaddrinfo failure. (#8498, thanks @rdp)
  • Make IO::SysCall#wait_readable and IO::SysCall#wait_writable public, yet :nodoc:. (#7366, thanks @stakach)
  • Refactor StaticFileHandler to use Path. (#8672, thanks @straight-shoota)
  • Remove fixed date in spec. (#8640, thanks @bcardiff)
  • Remove non-portable error message in TCPServer spec. (#8702, thanks @straight-shoota)

Crypto

Concurrency

System

  • Enable system module for Win32 in prelude. (#8661, thanks @straight-shoota)
  • Handle exceptions raised at __crystal_sigfault_handler. (#8743, thanks @waj)

Runtime

  • Fixed wrongly collected exception object by the GC. Ensure LibUnwind::Exception struct is not atomic. (#8728, thanks @waj)
  • Fixed reporting of non-statement rows in DWARF backtrace. (#8499, thanks @rdp)
  • Add top level exception handler. (#8735, #8791, thanks @waj)
  • Try to open stdio in non-blocking mode. (#8787, thanks @waj)
  • Allow Crystal::System.print_error to use printf like format. (#8786, thanks @bcardiff)

Spec

Compiler

  • (breaking-change) Drop support for previously deprecated comma separators in enums and other cleanups. (#8657, thanks @bcardiff)
  • (breaking-change) Drop uppercase F32 and F64 float number suffixes. (#8782, thanks @rhysd)
  • Fixed memory corruption issues by using LLVM's memset and memcpy that matches target machine. (#8746, thanks @bcardiff)
  • Fixed ICE when trying to add type inside annotation. (#8628, thanks @asterite)
  • Fixed ICE on typeof in an unused block. (#8695, thanks @asterite)
  • Fixed ICE in case of wrong target triple. (#8710, thanks @Sija)
  • Fixed ICE when raising a macro exception with empty message. (#8654, thanks @jan-zajic)
  • Fixed parser bug macro with "eenum" in it. (#8760, thanks @asterite)
  • Change CRYSTAL_PATH to allow shards to override std-lib. (#8752, thanks @bcardiff)

Language semantics

  • Fixed missing virtualization of Proc pointer. (#8757, thanks @asterite)
  • Fixed type of vars after begin/rescue if all rescue are unreachable. (#8758, thanks @asterite)
  • Fixed visibility propagation to macro expansions in all cases. (#8762, #8796, thanks @asterite)

Tools

Formatter

  • Fixed indent after comme...
Read more

0.32.1

18 Dec 18:53
41bd18f
Compare
Choose a tag to compare

Standard library

Collections

  • Fixed docs of Enumerable#each_cons_pair and Iterator#cons_pair. (#8585, thanks @arcage)

Networking

  • Fixed HTTP::WebSocket's on_close callback is called for all errors. (#8552, thanks @stakach)
  • Fixed sporadic failure in specs with OpenSSL 1.1+. (#8582, thanks @rdp)

Compiler

Language semantics

  • Combine contiguous string literals before string interpolation. (#8581, thanks @asterite)

0.32.0

11 Dec 18:54
6952aac
Compare
Choose a tag to compare

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

Numeric

Text

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

System

Runtime

  • Fixed fiber initialization on -Dgc_none -Dpreview_mt. ([#8280](https:...
Read more

0.31.1

30 Sep 17:18
0e2e1d0
Compare
Choose a tag to compare

Standard library

Numeric

Networking

  • Workaround IO::Evented#evented_write invalid IndexError error. (#8239, thanks @bcardiff)

Concurrency

  • Use bdw-gc upstream patch for green threads support. (#8225, thanks @bcardiff)
  • Refactor Channel to use records instead of tuples. (#8227, thanks @asterite)

Spec

Compiler

  • Fix debug location information when emitting main code from module. (#8234, thanks @asterite)

Language semantics

0.31.0

23 Sep 19:42
8d4715a
Compare
Choose a tag to compare

Language changes

  • Allow non-captured block args with type restriction using & : T -> U. (#8117, thanks @asterite)

Macros

  • Ensure @type is devirtualized inside macros. (#8149, thanks @asterite)

Standard library

  • (breaking-change) Remove Markdown from the std-lib. (#8115, thanks @asterite)
  • (breaking-change) Deprecate OptionParser#parse!, use OptionParser#parse. (#8041, thanks @didactic-drunk)
  • Fix example codes in multiple places. (#8194, thanks @maiha)

Numeric

  • (breaking-change) Enable overflow by default. (#8170, thanks @bcardiff)
  • (breaking-change) Make / the arithmetic division for all types. (#8120, thanks @bcardiff)
  • Add BigDecimal#** and BigRational#** (pow operator). (#7860, thanks @jwbuiter)
  • Avoid overflow exception in Number#round(digits, base). (#8204, thanks @bcardiff)
  • Refactor Int#divisible_by? for clarity. (#8045, thanks @yxhuvud)

Text

  • (performance) Minor String#lchop? ASCII-only optimization. (#8052, thanks @r00ster91)

Collections

  • (performance) Array optimizations for small number of elements. (#8048, thanks @asterite)
  • (performance) Optimize Array#*. (#8087, thanks @asterite)
  • (performance) Hash now uses an open addressing algorithm. (#8017, #8182, thanks @asterite)
  • (performance) Optimize Hash#to_a, Hash#keys and Hash#values. (#8042, thanks @asterite)
  • (performance) Add Hash#put and optimize Set#add?. (#8116, thanks @asterite)
  • Fixed Slice#== for some generic instantiations, add Slice#<=>. (#8074, thanks @asterite)
  • Add docs on idempotence and methods involving eager evaluation in Iterator. (#8053, thanks @kimburgess)
  • Add Set#+. (#8121, thanks @sam0x17)
  • Refactor Hash to use integer division instead of float division. (#8104, thanks @asterite)

Serialization

  • (breaking-change) Rename XML::Type to XML::Node::Type, introduce XML::Reader::Type. (#8134, thanks @asterite)
  • Fixed JSON and YAML parsing of NamedTuple with nilable fields. (#8109, thanks @asterite)
  • Fixed YAML to emit unicode characters as such. (#8132, thanks @asterite)
  • Fixed INI generation of empty sections. (#8106, thanks @j8r)

Files

  • (performance) Optimize Path#join by precomputing capacity if possible. (#8078, thanks @asterite)
  • (performance) Optimize Path#join for the case of joining one single part. (#8082, thanks @asterite)
  • (performance) Optimize Dir.glob. (#8081, thanks @asterite)
  • Fixed File.basename off-by-one corner-case. (#8119, thanks @ysbaddaden)
  • Fixed unneeded evaluation of Path.home on Path.expand. (#8128, thanks @asterite)
  • Fixed Zip::Writer STORED compression. (#8142, thanks @asterite)
  • Fixed missing check on ARGF if read_count is zero. (#8177, thanks @Blacksmoke16)

Networking

  • (breaking-change) Replace HTTP::Server::Response#respond_with_error with #respond_with_status. (#6988, thanks @straight-shoota)
  • (breaking-change) Handle too long URIs and too large header fields in HTTP::Request.from_io and remove HTTP::Request::BadRequest. (#8013, thanks @straight-shoota)
  • Fixed memory leak from SSL_new if ssl_accept fails. (#8088, thanks @rdp)
  • Fixed WebSocket ipv6 hostname connection. (#8066, thanks @MrSorcus)
  • Add URI#query_params method. (#8090, thanks @rodrigopinto)
  • Add URI#resolve and URI#relativize. (#7716, thanks @straight-shoota)
  • Add #clear, #delete, and #size methods to HTTP::Cookies. (#8107, thanks @sam0x17)
  • Refactor http/server_spec. (#8056, thanks @straight-shoota)
  • Refactor UDP specs to use random port. (#8139, thanks @waj)

Concurrency

  • Multithreading. (#8112, thanks @waj)
  • Delay releasing of fiber stack in multi-thread mode. (#8138, thanks @waj)
  • Make Crystal::Scheduler.init_workers block until workers are ready. (#8145, thanks @bcardiff)
  • Make Crystal::ThreadLocalValue thread-safe. (#8168, thanks @waj)
  • Let exec_recursive use a thread-local data structure. (#8146, thanks @asterite)
  • Add explicit return types for some channel methods. (#8161, thanks @Blacksmoke16)
  • Remove the dedicated fiber to run the event loop. (#8173, thanks @waj)
  • Fix corruption of thread linked list. (#8196, thanks @waj)
  • Workaround compile on win32 until fibers is implemented. (#8195, thanks @straight-shoota)

System

Spec

Compiler

Language semantics

  • Fixed abstract def check regarding generic ancestor lookup. (#8098, thanks @asterite)
  • Fixed missing virtualization of type arguments in Proc types. (#8159, thanks @asterite)
  • Fixed incorrect typing after exception handler. (#8037, thanks @asterite)
  • Fixed behaviour when a yield node can't be typed. (#8101, thanks @asterite)
  • Fixed offsetof on reference types. (#8137, thanks @mcr431)
  • Allow rescue var to be closured. (#8143, thanks @asterite)
  • Refactor class var and constant initialization. (#8067, #8091, thanks @waj)
  • Add runtime check for recursive initialization of class variables and constants. (#8172, thanks @waj)

Tools

Doc generator

  • Fixed link to constructors of another class. (#8110, thanks @asterite)
  • Enable docs from previous def and/or ancestors to be inherited. (#6989, thanks @asterite)

Others

Read more

0.30.1

12 Aug 19:33
5e6a1b6
Compare
Choose a tag to compare

Standard library

Numeric

Networking

  • Fixed TCP socket leaking after failed SSL connect in HTTP::Client#socket. (#8025, thanks @straight-shoota)
  • Honor normalized header names for HTTP requests. (#8061, thanks @asterite)

Concurrency

  • Don't resume fibers directly from event loop callbacks (or support for libevent 2.1.11). (#8058, thanks @waj)

Compiler

Language semantics

  • Consider abstract method implementation in supertype for abstract method checks. (#8035, thanks @asterite)

Tools

Formatter

  • Handle consecutive macro literals when subformatting. (#8034, thanks @asterite)
  • Fixed crash when formatting syntax error inside macro. (#8055, thanks @asterite)

Others

0.30.0

01 Aug 19:37
cbf651a
Compare
Choose a tag to compare

Language changes

Macros

  • Add args/named_args macro methods to Annotations. (#7694, thanks @Blacksmoke16)
  • Unify resolve and types macro methods API for Type and Path for convenience. (#7970, thanks @asterite)

Standard library

Numeric

  • Fixed incorrect Int#% overflow. (#7980, thanks @asterite)
  • Fixed inconsistency between Float#to_s and BigFloat#to_s, always show .0 for whole numbers. (#7982, thanks @Lasvad)

Text

  • Fixed unicode alternate ranges generation. (#7924, thanks @asterite)

Collections

Serialization

  • (breaking-change) JSON: use enums instead of symbols. (#7966, thanks @asterite)
  • Fixed YAML deserialization of String in a union type. (#7938, thanks @asterite)
  • Validate element names in XML::Builder. (#7965, thanks @Blacksmoke16)
  • Allow numeric keys in JSON (ie: Hash(Int32, String).from_json). (#7944, thanks @asterite)
  • Add alias/merge methods to YAML::Builder and YAML::Nodes::Builder. (#7949, thanks @Blacksmoke16)

Files

Networking

Crypto

  • Require openssl algorithm in pkcs5. (#7985, thanks @will)
  • Fixed cipher expectation in OpenSSL::SSL::Socket spec. (#7871, thanks @j8r)

Concurrency

  • Fixed sysconf call on OpenBSD. (#7879, thanks @jcs)

System

Compiler

Language semantics

  • Fixed generic metaclass argument expansion. (#7916, thanks @asterite)
  • Fixed top-level private const not being scoped. (#7907, thanks @asterite)
  • Fixed enum overflow when declaring members. (#7881, thanks @asterite)
  • Fixed annotation lookup on generic types. (#7891, thanks @asterite)

Tools

Formatter

Doc generator

Others

0.29.0

05 Jun 22:29
fbfe8b6
Compare
Choose a tag to compare

Standard library

  • Fix example codes in multiple places. (#7718, thanks @maiha)

Macros

Numeric

  • (performance) Optimize String#to_u methods for the case of a negative number. (#7446, thanks @r00ster91)

Text

  • (breaking-change) Deprecate String#at, use String#char_at. (#7633, thanks @j8r)
  • (breaking-change) Change String#to_i to parse octals with prefix 0o (but not 0 by default). (#7691, thanks @icy-arctic-fox)
  • (breaking-change) Restrict some String#to_i arguments to be Bool. (#7436, thanks @j8r)
  • Add downcase option to String#camelcase. (#7717, thanks @wontruefree)
  • Add support for unicode 12.0.0. (#7721, thanks @Blacksmoke16)
  • Fix Unicode not showing up in the API docs. (#7720, thanks @r00ster91)

Collections

Serialization

Time

Files

  • (breaking-change) Rename File::DEVNULL to File::NULL. (#7778, thanks @r00ster91)
  • Fix handling of files starting with ~ in Path#expand. (#7768, thanks @byroot)
  • Fix Dir.glob(match_hidden: false) not hiding hidden files properly. (#7774, thanks @ayazhafiz)

Networking

Crypto

  • (breaking-change) Rename Crypto::Bcrypt::Password#== to #verify. (#7790, thanks @asterite)

Concurrency

Compiler

  • (breaking-change) Fix require relative path resolution. (#7758, thanks @asterite)
  • (breaking-change) Disallow '!' or '?' at the end of the LHS in an assignment. (#7582, thanks @Maroo-b)
  • Allow running compiler_specs with specific flags. (#7837, thanks @bcardiff)
  • Fix extend from generic types. (#7812, thanks @asterite)
  • Don't virtualize types in Union(...) and keep more accurate type information. (#7815, thanks @asterite)
  • Do not generate debug metadata for arguments of naked functions. (#7775, thanks @eyusupov)
  • Detect deprecation on initialize methods and methods with named args. (#7724, thanks @bcardiff)
  • Fix track of AST nodes location. (#7827, thanks @asterite)
  • Fix offsetof not being usable with macros. (#7703, thanks @malte-v)
  • Allow parsing of call &.@ivar. (#7754, thanks @asterite)
  • Fix Def#to_s with **options and &block. (#7854, thanks @makenowjust)
  • Check pointerof inner expression for errors. (#7755, thanks @asterite)
  • Fix some error messages. (#7833, thanks @asterite)
  • Improve wording of pointerof(self) parser error. (#7542, thanks @r00ster91)
  • Fix typo. (#7828, thanks @RX14)

Language semantics

  • (breaking-change) Fix new/initialize lookup regarding modules. (#7818, thanks @asterite)
  • (breaking-change) Don't precompute sizeof on abstract structs and modules. (#7801, thanks @asterite)
  • Consider macro calls in @ivar initializer. (#7750, thanks @asterite)
  • Give precedence to T.class over Class in method lookup. (#7759, thanks @asterite)
  • Honor enum base type on non-default values. (#7776, thanks @asterite)
  • Avoid lookup of private def defined inside macro. (#7733, thanks @asterite)
  • Improve type flow of var in if with &&. (#7785, thanks @asterite)
  • Fix handling of NoReturn in if. (#7792, thanks @asterite)
  • Improve edge issues with while and rescue. (#7806, thanks @asterite)
  • Improve error on macro call in proc pointer. (#7757, thanks @asterite)
  • Fix error on named args forwarding. (#7756, thanks @asterite)
  • Check NoReturn type in named args. (#7761, thanks @asterite)
  • Fix internal handling of unbound/abstract generic types. (#7781, thanks @asterite)
  • Fix wrong cast to unbound generic type. (#7793, thanks @asterite)
  • Fix subclass observer to handle edge case call over generic types. (#7735, thanks @asterite)
  • Fix edge case of abstract struct with one subclass. (#7787, thanks @asterite)
  • Make automatic cast work with with ... yield. (#7746, thanks @asterite)

Tools

Formatter

Others