- [EEx] Support splitting middle expressions across EEx clauses
- [Access] Add support for keyword lists in
Access.key/2andAccess.key!/1 - [Code] Add
:purgeand:purge_allcompilation tracer events - [Code] Add
:max_integer_bytesoption toCode.string_to_quoted/2and friends to limit the size of integer literals - [Code] Add support for the
:erlc_optionscompiler option - [Code.Formatter] Add a
:migrate_atom_interpolationsoption - [Code.Formatter] Preserve comments at their intended location in many different scenarios
- [File] Accept an open IO device in
File.stat/2,File.stat!/2,File.regular?/2,File.dir?/2, andFile.exists?/2 - [IO.ANSI] Add
bold/0,bold_off/0,dim/0,dim_off/0,blink/0,invisible/0,invisible_off/0,strikethrough/0,strikethrough_off/0,italic_off/0,underline_off/0,overline/0,overline_off/0,cursor_forward/0,cursor_backward/0, andcursor_home/0, aligning names with Erlang/OTP - [IO.ANSI.Docs] Recognize additional punctuation delimiters when rendering Markdown
- [IO.ANSI.Docs] Strip inline attribute lists, such as
{: .warning}, from headings, including inside blockquotes - [Kernel] Improve performance of type constructors and complex intersections
- [Kernel] Refine variables across
or,||, and the falsy side ofandand&&in conditions, such ascond do is_integer(x) or is_boolean(x) -> ... end - [Kernel] Refine variables through the assignments in conditionals, such as
y = is_integer(x); if y, do: x, else: x - [Kernel] Warn on aliases that are never used because a later alias shadows them
- [Kernel] Warn on binary patterns with segments that are not byte-aligned
- [Kernel] Improve type precision of
--/2 - [Kernel] Improve type precision of
casewhen some of its clauses always raise - [Kernel] Improve type precision of
caseandifon literals by ignoring unreachable clauses - [Kernel] Make pin patterns with singleton types precise, so subsequent redundant clauses are detected
- [Kernel.ParallelCompiler] Add a hint when spawned processes cannot load modules defined during compilation
- [Keyword] Optimize
Keyword.pop/3,Keyword.pop!/2, andKeyword.pop_lazy/3 - [List] Add
List.to_existing_atom/2andList.to_unsafe_atom/1 - [Macro] Accept a callback in
Macro.quoted_literal?/2to consider additional nodes, such as variables, as literals - [MapSet] Optimize
MapSet.symmetric_difference/2when set sizes differ - [Path] Add
Path.safe_join/2 - [Protocol] Add the
:skip_consolidatedoption toProtocol.extract_protocols/2 - [Protocol] Warn when implementing a protocol for a module that does not define a struct
- [Registry] Add the
:spawn_optoption toRegistry.start_link/1 - [Registry] Optimize exact key matching in lookups
- [String] Optimize
String.bag_distance/2 - [String] Add
String.to_existing_atom/2andString.to_unsafe_atom/1 - [URI] Optimize percent-decoding and
URI.to_string/1
- [ExUnit.Assertions] Add
trace/3helper - [ExUnit.CLIFormatter] Improve rendering of test locations in some terminals
- [mix test] Add
--coverage-formatto emit coverage reports ashtml(the default) ortext
The following bug fixes may break applications relying on the broken behaviour:
- [Kernel] Fix parsing precedence of unary operators applied to do-end blocks, such as
!if a do b end || c - [Kernel] Parse chained
inandnot inoperators as left associative - [Process] Use
exit_signal/2from:erlanginProcess.exit/2, so exit signals sent to the calling process are delivered asynchronously and:normalno longer terminates it
- [bin/elixirc] Fail compilation on warnings when
--warnings-as-errorsis given - [Calendar] Fix
Calendar.strftime/3formatting of negative years with%y - [Calendar] Fix rounding for
:day,:hour, and:minuteunits inDateTime.diff/3,NaiveDateTime.diff/3, andTime.diff/3 - [Calendar.ISO] Fix
Calendar.ISO.valid_time?/4to reject non-integer microsecond precision - [Calendar.ISO] Reject negative zero UTC offsets in basic formats
- [Code] Fall back to
doc/chunksinCode.fetch_docs/1when given the path to a.beamfile without documentation - [Code] Properly escape C1 control characters and Unicode noncharacters in
Code.quoted_to_algebra/2(andMacro.to_string/1) - [Code.Formatter] Fix rendering calls where
dois followed by non-block keyword arguments - [Code.Formatter] Keep parentheses on anonymous function calls with do-end blocks
- [Code.Formatter] Keep parentheses on unary operators on the left side of
in, such as(!foo) in bar - [Code.Fragment] Fix cursor completion when operator keywords such as
in,when,and,or, andnotfollow another operator - [Code.Fragment] Respect the
:file,:line, and:columnoptions inCode.Fragment.container_cursor_to_quoted/2 - [Date] Preserve the
:formatoption inDate.to_iso8601/2with custom calendars - [Date.Range] Fix slicing date ranges with stepped ranges returning the wrong results
- [DateTime] Keep the calendar of the given map in
DateTime.convert/2andDateTime.truncate/2 - [DateTime] Truncate fractional differences towards zero in
DateTime.diff/3 - [Duration] Reject duplicate seconds in
Duration.from_iso8601/1 - [DynamicSupervisor] Do not discard the exit reason of children that terminate during shutdown
- [Enum] Fix
Enum.min/2,3andEnum.max/2,3with custom sorters on ranges - [File] Return
{:error, :badarg, path}fromFile.cp_r/3andFile.rm_rf/1on paths with null bytes instead of raising, aligning with Erlang/OTP - [File] Trim UTF-32 LE BOMs in
File.stream!/3 - [IO.ANSI.Docs] Do not crash on unclosed HTML comments
- [Inspect.Algebra] Break optimistic groups when their parent group breaks
- [Kernel] Check range endpoints are integers in guards using
inwith literal steps, such asx in 0..max//1 - [Kernel] Continue compilation after reporting repeated map keys in patterns
- [Kernel] Do not consider local functions invoked in bitstring size expressions inside macros as unused
- [Kernel] Do not expand macros twice in
in/2, in multi-alias options, such asalias Foo.{Bar, Baz}, warn: false, and in@before_compile,@after_compile, and@derivecallbacks - [Kernel] Do not evaluate generator guards in
forcomprehensions as body expressions, which raised instead of filtering when they failed - [Kernel] Do not fold
URI.parse/1,URI.new/1, andURI.new!/1at compile time, as they depend on the default ports configured at runtime - [Kernel] Do not warn on comparisons between data structures with numbers that may be equal, such as
{1} == {1.0}, nor discard such values when narrowing types - [Kernel] Expand
defguardmacros separately in guard and body contexts, preservingand/orerror semantics outside guards - [Kernel] Fix
unquoteinquoteoptions, such asquote bind_quoted: [x: unquote(v)], inside unquote fragments - [Kernel] Fix inferred stacktrace types to allow arbitrary keyword metadata
- [Kernel] Fix false positive type warnings on guards which may fail depending on values, such as
div/2andmap_get/2with non-atom keys, especially as operands ofand/or - [Kernel] Fix printing of list types in type warnings, which could show wider types or misplace exclusions
- [Kernel] Fix type information about variables defined in one default argument leaking into subsequent default arguments
- [Kernel] Follow UAX #9 levels when computing the bidi skeleton of confusable identifiers
- [Kernel] Raise when
|is used in guards - [Kernel] Raise on duplicate keys in
@enforce_keys - [Kernel] Do not accept empty tuples in
elem/2and other tuple operations during type checking - [Kernel] Fix inferred types of comprehensions using
:intowith binaries and bitstrings - [Kernel] Fix type checker crash on functions with impossible clauses
- [Kernel] Fix type checker crash on
defimplfor modules that are not Elixir structs - [Kernel] Fix type checker crash on variables used by nested clauses in conditionals
- [Kernel] Fix type checker crash on
forgenerators using variables bound in:intoor:reduce - [Kernel] Keep atom keys in the inferred type of
Map.from_keys/2when given mixed keys - [Kernel] Preserve alignment of untyped nested bitstring segments, such as
<<<<x::1>>::binary>> - [Kernel] Preserve evaluation order when the compiler merges map updates with
Map.merge/2 - [Kernel] Report applying empty function types as bad functions instead of bad arities
- [Kernel] Return
dynamic()frommin/2andmax/2when their arguments are dynamic - [Kernel] Skip non-matching chunks in bitstring generators instead of halting the comprehension in some cases, such as with
:uniq - [Kernel] Support Erlang modules in
import Mod, only: :sigils - [Kernel.CLI] Keep the exit status when the error cannot be printed to stderr
- [Keyword] Delete duplicate keys when
Keyword.get_and_update/3andKeyword.get_and_update!/3return:pop - [Macro] Respect the disabled ANSI setting in
Macro.dbg/3 - [Macro] Return
truefromMacro.quoted_literal?/1for literals wrapped in__block__ - [Macro] Return valid AST from
Macro.pipe/3when piping intoAccess.get/3 - [NaiveDateTime] Fix
NaiveDateTime.diff/3over-counting incomplete units - [OptionParser] Report missing and invalid arguments for switches with
:keep - [Path] Return
[]fromPath.wildcard/2on paths with null bytes instead of raising, aligning with Erlang/OTP - [Range] Fix
Range.disjoint?/2for ranges beyond floating-point precision - [Range] Fix
Range.disjoint?/2for single-element ranges with a negative step - [Record] Evaluate the arguments of record macros from left to right and only once, including the record being updated
- [Regex] Escape U+0085, U+200E, U+200F, U+2028, and U+2029 in
Regex.escape/1, as Erlang/OTP 28+ ignores them in extended mode - [Stream] Close resources in
Stream.zip/1,2,Stream.zip_with/2,3, andStream.cycle/1when the consumer or one of the streams raises - [String] Fix
String.reverse/1grapheme ordering around invalid UTF-8 bytes - [String] Return
1.0fromString.bag_distance/2for two empty strings - [System] Do not drop the final unterminated line in
System.cmd/3with:lines - [System] Return
nilfromSystem.find_executable/1on programs with null bytes instead of raising, aligning with Erlang/OTP - [Task] Do not leave replies in the caller's mailbox when
Task.ignore/1,Task.await/2, andTask.await_many/2exit - [Task] Report the actual exit reason, instead of
:noproc, of tasks inTask.async_stream/3andTask.Supervisor.async_stream/4which exit immediately - [Task] Return the exit reason of tasks, instead of
{:exit, :noproc}, fromTask.shutdown/2when they terminate before being monitored - [Time] Validate microseconds in
Time.from_seconds_after_midnight/3
- [ExUnit] Warn on invalid line filters instead of raising in
ExUnit.Filters.parse/1 - [ExUnit] Do not count excluded tests towards
--max-failuresonsetup_allfailures - [ExUnit] Give each parameter set of parameterized tests its own random seed
- [ExUnit] List tests in execution order with
--dry-run - [ExUnit] Preserve the order of async modules across
--repeat-until-failureruns - [ExUnit] Record tests invalidated by module failures as failures in the failures manifest
- [ExUnit.Assertions] Do not expand the arguments of
match?/2twice inassert/1andrefute/1 - [ExUnit.Assertions] Fix
refute_in_delta/4at the delta boundary and with negative deltas - [ExUnit.Assertions] Support list literals in
catch_throw/1,catch_exit/1, andcatch_error/1 - [ExUnit.CaptureIO] Close the capture device when
capture_iofails to set the group leader - [ExUnit.CLIFormatter] Color the summary yellow only when all tests are excluded
- [ExUnit.CLIFormatter] Report failures whose messages contain invalid UTF-8
- [ExUnit.DocTest] Fix line numbers in
doctest_file/2failures - [ExUnit.DocTest] Fix the expected line in doctests with multi-line expressions
- [IEx.Autocomplete] Fix completion crashes on maps with non-atom keys
- [IEx.Autocomplete] Do not split Unicode codepoints when completing map keys
- [IEx.Evaluator] Recognize
**andnot inas continuation operators - [IEx.Helpers] Do not crash
process_info/1on processes monitoring others by name - [IEx.Helpers] Fix
r/1when multiple modules are defined in the same file - [IEx.Helpers] Fix heap and stack memory calculations in
process_info/1 - [IEx.Helpers] Fix showing macro specs in
h/1 - [IEx.Helpers] Shell-quote file paths given to the editor in
open/1
- [Logger] Restore the Erlang default handler when the
:loggerapplication stops - [Logger.Backends] Do not remove the backends handler when formatting an event crashes, such as on a raising
:report_cb - [Logger.Backends] Support all handler configuration changes, such as
:logger.set_handler_config/3, in the backends handler - [Logger.Formatter] Prune surrogate code points in
Logger.Formatter.prune/1
- [Mix] Ensure the lock and pubsub directories in the system tmp directory are owned by the current user
- [Mix.Generator] Support iodata contents in
create_file/3with:format_elixir - [mix cmd] Exit with the status of the failing command
- [mix compile] Compile optional dependencies that non-optional dependencies require when
--no-optional-depsis given - [mix compile] Support
--listwhencompileis aliased - [mix compile.elixir] Emit absolute
:sourcepaths in diagnostics from@after_verifycallbacks, so Mix persists them in its manifests - [mix compile.elixir] Recompile the project when
--docsor--debug-infochange - [mix compile.elixir] Purge consolidated protocols on recompilation even when the consolidation path was already removed from the code path
- [mix deps] Recompile path and fetchable dependencies when one of their dependencies are removed
- [mix deps] Raise on dependency names containing
.,/,\, or:to avoid path traversal - [mix deps] Handle empty refs and charlist sparse directories in rebar Git dependencies
- [mix deps] Raise if Git refspecs start with
- - [mix deps] Mark fetchable dependencies for compilation when their build exists but their SCM manifest is missing
- [mix deps] Preserve code paths and compiler options across OS partitions
- [mix deps.compile] Do not load dependencies inside a dependency when one of its tasks, such as a compiler, cannot be found, and suggest
--include-childreninstead - [mix escript.install] Respect the
:pathescript option and raise on URLs without a path - [mix format] Invalidate the cached configuration when imported
.formatter.exsfiles change - [mix format] Pass
:sigilsto plugins, allowing nested sigils to be formatted - [mix local.hex] Install Hex with
--if-missingwhen the installed version is older than the requested one - [mix new] Avoid trailing whitespace in generated files
- [mix profile.tprof] Forward script arguments
- [mix release] Keep
:ertsin the release applications - [mix test] Do not crash the coverage summary when there are no modules
- [mix test] Do not let the coverage threshold override the exit status of test failures
- [Macro.Env]
Macro.Env.fetch_alias/2andMacro.Env.fetch_macro_alias/2are deprecated, useMacro.Env.expand_alias/4instead - [Path]
Path.safe_relative_to/2is deprecated, usePath.safe_relative/2instead
- [mix compile.elixir]
--traceris deprecated, set:tracersin:elixirc_optionsor useCode.put_compiler_option/2instead
- [IO.ANSI]
blink_slow/0,conceal/0,crossed_out/0,cursor_left/0,cursor_right/0,home/0,no_underline/0,not_crossed_out/0,not_italic/0,not_overlined/0,overlined/0,reveal/0,reverse/0, andreverse_off/0are deprecated in favor of the names aligned with Erlang/OTP - [Kernel] Atom interpolation (
:"foo_#{bar}") is deprecated in favor of explicitString.to_unsafe_atom/1 - [List]
List.to_atom/1is deprecated in favor ofList.to_unsafe_atom/1 - [String]
String.to_atom/1is deprecated in favor ofString.to_unsafe_atom/1
The CHANGELOG for v1.20 releases can be found in the v1.20 branch.