Skip to content

@bcardiff bcardiff released this Jun 19, 2020 · 195 commits to master since this release

Standard library

Collections

  • Remove Hash#each type restriction to allow working with splats. (#9456, thanks @bcardiff)

Networking

  • Revert IO#write changes in 0.35.0 and let it return Nil. (#9469, thanks @bcardiff)
  • Avoid leaking logging context in HTTP request handlers. (#9494, thanks @Blacksmoke16)

Crypto

Logging

  • Fix Log.context.set docs for hash based data. (#9470, thanks @bcardiff)

Compiler

Others

Assets 11

@bcardiff bcardiff released this Jun 9, 2020 · 208 commits to master since this release

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, thanks @crush-157)
  • Defer request upgrade in HTTP::Server (aka: WebSockets). (#9243, thanks @waj)
  • Improve URI::Punycode, HTTP::WebSocketHandler, HTTP::Status documentation. (#9068, #9130, #9180, thanks @Blacksmoke16, @dscottboggs, @wontruefree)
  • Remove HTTP::Params::Builder#to_s, use underlying IO directly. (#9319, thanks @straight-shoota)
  • Fixed some regular failing specs in multi-thread mode. (#9412, thanks @bcardiff)

Crypto

Logging

Concurrency

System

Runtime

  • (breaking-change) Deprecate top-level fork. (#9136, thanks @bcardiff)
  • (breaking-change) Move Debug to Crystal namespace. (#9176, thanks @bcardiff)
  • Fix segfaults when static linking with musl. (#9238, thanks @waj)
  • Allow calling at_exit inside at_exit. (#9388, thanks @asterite)
  • Rework DWARF loading and fix empty backtraces in musl. (#9267, thanks @waj)
  • Add DragonFly(BSD) support. (#9178, thanks @mneumann)
  • Add Crystal::System::Process to split out system-specific implementations. (#9035, thanks @oprypin)
  • Move internal CallStack to Exception::CallStack. (#9076, thanks @bcardiff)
  • Specify pkg-config name for libevent. (#9395, thanks @jhass)

Spec

Compiler

Language semantics

  • Fix RegexLiteral#to_s output when first character of literal is whitespace. (#9017, thanks @MakeNowJust)
  • Fix autocasting in multidispatch. (#9004, thanks @asterite)
  • Fix propagation of annotations into other scopes. (#9125, thanks @asterite)
  • Fix yield computation inside macro code. (#9324, thanks @asterite)
  • Fix incorrect type generated with as? when type is a union. (#9417, #9435, thanks @asterite)
  • Don't duplicate instance var in inherited generic type. (#9433, thanks @asterite)
  • Ensure type_vars works for generic modules. (#9161, thanks @toddsundsted)
  • Make autocasting work in default values against unions. (#9366, thanks @asterite)
  • Skip no closure check for non-Crystal procs. (#9248, thanks @jhass)

Debugger

Tools

Formatter

Doc generator

Playground

  • Allow building compiler without 'playground', to avoid dependency on sockets. (#9031, thanks @oprypin)
  • Add support to jquery version 3. (#9028, thanks @deiv)

Others

Assets 11

@bcardiff bcardiff released this Apr 6, 2020 · 450 commits to master since this release

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

Assets 11

@bcardiff bcardiff released this Feb 14, 2020 · 633 commits to master since this release

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 comment inside indexer. (#8627, thanks @asterite)
  • Fixed indent of comments at the end of a proc literal. (#8778, thanks @asterite)
  • Fixed crash when formating comment after macro. (#8697, thanks @asterite)
  • Fixed crash when formating exp.!. (#8768, thanks @asterite)
  • Removes unnecessary escape sequences. (#8619, thanks @RX14)

Doc generator

  • (breaking-change) Deprecate ditto and nodoc in favor of :ditto: and :nodoc:. (#6362, thanks @j8r)
  • Skip creation of docs/ dir when not needed. (#8718, thanks @Sija)

Others

Assets 11

@bcardiff bcardiff released this Dec 18, 2019 · 750 commits to master since this release

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)
Assets 11

@bcardiff bcardiff released this Dec 11, 2019 · 756 commits to master since this release

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

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

Playground

  • Do not collapse whitespaces in playground sidebar. (#8528, thanks @hugopl)

Others

Assets 11

@bcardiff bcardiff released this Sep 30, 2019 · 953 commits to master since this release

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

Assets 12

@bcardiff bcardiff released this Sep 23, 2019 · 962 commits to master since this release

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

Assets 11

@bcardiff bcardiff released this Aug 12, 2019 · 1153 commits to master since this release

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

Assets 11

@bcardiff bcardiff released this Aug 1, 2019 · 1165 commits to master since this release

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

Assets 13
You can’t perform that action at this time.