This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
Update dependency crystal-lang/crystal to v1.6.1 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.1.0
->1.6.1
Release Notes
crystal-lang/crystal
v1.6.1
Compare Source
Compiler
Interpreter
Semantic
Tools
Formatter
Playground
Other
Socket::IPAddress
(#12583, thanks @Blacksmoke16)llvm-configXX
while building compiler (#12602, thanks @HertzDevil)v1.6.0
Compare Source
Language
@[Link]
annotation (#11935, thanks @lbguilherme)Standard Library
GC.malloc_atomic
withGC.realloc
, notPointer#realloc
(#12391, thanks @HertzDevil)Symbol
variables in standard library specs (#12462, thanks @HertzDevil)@[::Primitive]
and@[::Flags]
where necessary (#11900, thanks @HertzDevil)Collection
NamedTuple
deserialization from JSON and YAML (#12008, thanks @HertzDevil)BitArray#tally(hash)
(#11909, thanks @HertzDevil)Slice#unsafe_slice_of
and#to_unsafe_bytes
in the standard library and compiler (#12280, thanks @HertzDevil)BitArray#index
and#rindex
(#12087, thanks @HertzDevil)Indexable#index!
overloads withoffset
parameter (#12089, thanks @HertzDevil)Concurrency
Mutex
on Windows (#12213, thanks @HertzDevil)Crypto
U/Int128
inRandom
(#11977, thanks @BlobCodes)Files
#system_echo
and#system_raw
on all systems (#12352, thanks @HertzDevil)Crystal::System::FileInfo
throughFile::Info
(#12385, thanks @HertzDevil)IO.pipe
spec on FreeBSD (#12324, thanks @dmgk)File.match?
**
globbing pattern. (#12343, thanks @zw963)Dir#info
(#11991, thanks @didactic-drunk)IO::FileDescriptor
's console methods on Windows (#12294, thanks @HertzDevil)LibC::DT_LINK
->DT_LNK
(#11954, thanks @HertzDevil)IO::FileDescriptor#info
(#12384, thanks @HertzDevil)IO::DEFAULT_BUFFER_SIZE
(#12507, thanks @straight-shoota)IO::FileDescriptor
staying open on finalize (#12367, thanks @refi64)Macros
record
documentation (#12334, thanks @straight-shoota)Networking
Socket::IPAddress.valid?
(#12489, #10492, thanks @straight-shoota)HTTP::Client#exec
to abort retry when client was closed (#12465, thanks @straight-shoota)HTTP::Client
implicit compression with retry (#12536, thanks @straight-shoota)HTTP::StaticFileHandler
: Reduce max stat calls from 6 to 2 (#12310, thanks @didactic-drunk)HTTP::Client
(#12527, thanks @straight-shoota)Numeric
sprintf
andString#%
(#10973, thanks @HertzDevil)Float#to_s
ignore NaN sign bit (#12399, thanks @HertzDevil)sprintf
andString#%
ignore NaN sign bit (#12400, thanks @HertzDevil)Complex#to_s
imaginary component sign for certain values (#12244, thanks @HertzDevil)Complex#sign
(#12242, thanks @HertzDevil)rand(Range(Int, Int))
when signed span is too large (#12545, thanks @HertzDevil)#rotate_left
and#rotate_right
for primitive integers (#12307, thanks @HertzDevil)BigDecimal#div
for inexact divisions (#10803, thanks @HertzDevil)Float#to_s
(#10913, thanks @HertzDevil)U/Int128
toisqrt
spec (#11976, thanks @BlobCodes)Runtime
wasi-sdk 16
: don't rely on__original_main
(#12450, thanks @lbguilherme)Serialization
ArrayConverter
andHashValueConverter
(#10638, thanks @HertzDevil)after_initialize
method foryaml
andjson
serializers (#12530, thanks @analogsalad)System
LibC::Passwd
on FreeBSD (#12315, thanks @dmgk)Process.parse_arguments
(#12278, thanks @HertzDevil)Dir.current
respect$PWD
(#12471, thanks @straight-shoota)Text
String
shift state specs on FreeBSD (#12339, thanks @dmgk)sprintf
parameters (#12402, thanks @HertzDevil)Colorize
doc example (#12492, thanks @zw963)String#downcase
andString#upcase
for single byte optimizable case (#12389, thanks @asterite)String#valid_encoding?
(#12145, thanks @HertzDevil)String#unicode_normalize
andString#unicode_normalized?
(#11226, thanks @HertzDevil)sprintf
(#12448, thanks @HertzDevil)LibC.malloc
instead ofGC.malloc
for LibPCRE allocations (#12456, thanks @lbguilherme)Compiler
#to_s
for empty parameters of lib funs (#12368, thanks @HertzDevil)Proc(*T, Void)
toProc(*T, Nil)
(#12388, thanks @asterite)begin
Expression
s that are direct node children (#12362, thanks @HertzDevil)Path.new(string)
instead ofPath.new([string])
(#12419, thanks @asterite)freeze_type
in select AST nodes (#12428, thanks @asterite)merge_if_vars
(#12432, #12433, thanks @asterite)type_from_dependencies
(#12437, thanks @asterite)Dir.current
to avoid thousands of allocations (#12455, thanks @yxhuvud)Codegen
out
instead of an extra variable (#10952, thanks @asterite)Debugger
String
,Array
, andHash
(#12212, thanks @HertzDevil)Interpreter
next
inside captured block (#12237, thanks @asterite)crystal_type_id
for virtual metaclass type (#12246, thanks @asterite)Int128
/UInt128
intrinsics (#12258, thanks @asterite)MixedUnionType
toNilableProcType
(#12286, thanks @asterite)with ... yield
with extra arguments (#12301, thanks @asterite)NoReturn
(#12275, thanks @asterite)with ... yield
scope into account for args bytesize (#12317, thanks @asterite)as?
when there's no resulting type (#12328, thanks @asterite)non_nilable_type
in NilableCast (#12348, thanks @asterite)upcast_distinct
fromA+
toB
(Crystal::VirtualType
toCrystal::NonGenericClassType
) (#12374, thanks @asterite)MainVisitor
each time we need to interpret code (#12512, thanks @asterite)GenericClassInstanceMetaclassType
toVirtualMetaclassType
(#12562, thanks @asterite)$CRYSTAL_INTERPRETER_LOADER_INFO
to show loaded libraries (#12221, thanks @straight-shoota)Prompt
type (#12288, thanks @asterite)i += 1
(#12381, thanks @asterite)Nil
toNoReturn
inFixMissingTypes
(#12230, thanks @asterite)HTTP::Server
specs in interpreted mode (#12420, thanks @asterite)Parser
Int64
's range (#12427, thanks @HertzDevil)arg*
toparam*
(#12235, thanks @potomak)Semantic
Union
restrictions to be ordered before all other restrictions (#12335, thanks @HertzDevil)Class
,Tuple
,NamedTuple
,Enum
,Pointer
,Proc
,StaticArray
andUnion
. (#12160, thanks @I3oris)is_a?
from virtual metaclass to generic metaclass (#12306, thanks @asterite)is_a?
from generic class against generic class instance type (#12312, thanks @asterite)self
in restrictions when instantiating macro def in subtypes (#10954, thanks @HertzDevil)self
when inferring instance variable types (#12466, thanks @HertzDevil)Metaclass
andPath
(#12523, thanks @HertzDevil)Tools
Docs-generator
Formatter
Playground
Other
bin/crystal
: Ensuresh
compatibility (#12486, thanks @HertzDevil)compopt
only when it's present (#12248, thanks @potomak)Makefile.win
and wrapper script on Windows CI (#12344, thanks @HertzDevil)EXPORT_CC
formake crystal
(#11760, thanks @straight-shoota)scripts/update-distribution-scripts.sh
(#12503, thanks @straight-shoota)spec/win32_std_spec.cr
andspec/generate_windows_spec.sh
(#12282, #12549, thanks @HertzDevil and @straight-shoota)v1.5.1
Compare Source
Standard Library
Class#nilable?
for recursive unions and root types (#12353, thanks @HertzDevil)Numeric
Float#abs
andNumber#format
for-0.0
(#12424, thanks @straight-shoota)Text
Base64.encode
(#12377, thanks @dscottboggs)Compiler
Codegen
@needs_value
(#12444, thanks @asterite)homogeneous_aggregate?
check for aarch64 types (#12445, thanks @mattrberry)Semantic
Union(*T)
and similar (#12438, thanks @asterite)Tools
Formatter
Other
v1.5.0
Compare Source
Language
\{{...}}
syntax in macro inside comments (#12175, thanks @asterite)Crystal::Macros::ASTNode#is_a?
(#12086, thanks @HertzDevil)Standard Library
Path
forchdir
arg inProcess
methods (#11932, thanks @caspiano)Enum#value
(#11947, thanks @lbguilherme)contain
expectations in more specs (#11950, thanks @HertzDevil)Collection
Hash#reject!
for non-equality key (#10511, thanks @straight-shoota)Tuple.element_type
andNamedTuple.element_type
(#12011, thanks @HertzDevil)Array#-
with different generic type arguments (#12049, thanks @straight-shoota)Concurrency
GC_set_stackbottom
on Windows (#12186, thanks @HertzDevil)Atomic
primitives (#11583, thanks @HertzDevil)Enumerable(Channel)
parameter forChannel.send_first
,.receive_first
(#12101, thanks @carlhoerberg)Crypto
Digest#hexfinal
(#9292, thanks @didactic-drunk)Files
Path#join(Enumerable)
(#12032, thanks @straight-shoota)Path#join
to convert argument path to base kind (#12033, thanks @straight-shoota)Dir.glob
with multi components after recursive wildcard (#12057, thanks @straight-shoota)File#delete?
andDir#delete?
(#11887, thanks @didactic-drunk)Path
arguments inCompress::Zip
(#11925, thanks @didactic-drunk)File#chown
and#chmod
(#11886, thanks @didactic-drunk)Log
Log
emitters to not emit event when block output isnil
(#12000, thanks @robacarp)Networking
StaticFileHandler
paths (#11884, thanks @straight-shoota)HTTP::Server::Response#status_message
(#10416, thanks @straight-shoota)Numeric
Complex.multiplicative_identity
(#12051, thanks @I3oris)Float
,BigFloat
rounding methods (#12004, thanks @marksiemers)__ashlti3
,__ashrti3
and__lshrti3
for wasm32 (#11948, thanks @lbguilherme)Specs
Spec::Be
,BeClose
failure message to other messages (#11946, thanks @jgaskins)System
File#tempfile
args (#12076, thanks @straight-shoota)SC_PAGESIZE
constant foraarch64-darwin
(#12037, thanks @carlhoerberg)File.tempfile
(#12077, thanks @straight-shoota)Enumerable
as argument toFile.join
(#12102, thanks @caspiano)Runtime
#value
explicitly inPointer
overview. (#12184, thanks @elebow)Text
String#char_bytesize_at
(#11872, thanks @straight-shoota)String#encode
(#11993, thanks @HertzDevil)String
s correctly (#12108, thanks @HertzDevil)String#%
(#12125, thanks @asterite)UUID.parse?
(#11998, thanks @jgaskins)Time
Time.parse!
when end of input is reached (#12124, thanks @asterite)Compiler
NO_COLOR
toColorize
(#11984, thanks @didactic-drunk)Macros
Crystal::Macros::Self
andUnderscore
(#12085, thanks @HertzDevil)Generics
NamedTuple()
(#12009, thanks @HertzDevil)Interpreter
EXPORT
in interpreter spec (#12201, thanks @HertzDevil)Crystal::Loader
: don't check if file exists, leave that to dlopen (#12207, thanks @asterite).class
for modules and unions (#12205, thanks @asterite)Crystal::Loader
for MSVC (#12140, thanks @HertzDevil)librt
andlibdl
on GNU systems (#12038, thanks @1player)Parser
fun
parameter names (#11967, thanks @HertzDevil)Crystal::Parser
(#12067, thanks @lbguilherme)Semantic
exp.@​x
(#12183, thanks @asterite)with_scope
if Call has a receiver (#12138, thanks @asterite)Proc(...)
(#12129, thanks @asterite)Def#raises?
(#12121, thanks @asterite)ASTNode#unbind_all
(#12120, thanks @asterite)Debugger
Tools
Docs-generator
Formatter
Playground
modalContenDom
typo (#12188, thanks @HertzDevil)Other
update-distributions-scripts.sh
(#12156, thanks @straight-shoota)pax_global_header
on Windows CI (#12173, thanks @HertzDevil)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.