forked from danhper/opencov
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency elixir to v1.18.0 #214
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/elixir-1.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
March 16, 2023 17:37
6a6daab
to
61d9532
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.14.2
chore(deps): update dependency elixir to v1.14.3
Mar 16, 2023
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.14.3
chore(deps): update dependency elixir to v1.14.4
Apr 3, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
April 3, 2023 10:18
61d9532
to
d59938e
Compare
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
May 28, 2023 09:15
d59938e
to
e39bf7f
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.14.4
chore(deps): update dependency elixir to v1.14.5
May 28, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
June 19, 2023 13:01
e39bf7f
to
d08b259
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.14.5
chore(deps): update dependency elixir to v1.15.0
Jun 19, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
June 30, 2023 17:09
d08b259
to
13e23ff
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.0
chore(deps): update dependency elixir to v1.15.1
Jun 30, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
July 1, 2023 21:14
13e23ff
to
e52c2d0
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.1
chore(deps): update dependency elixir to v1.15.2
Jul 1, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
July 15, 2023 10:04
e52c2d0
to
8b69ae5
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.2
chore(deps): update dependency elixir to v1.15.3
Jul 15, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
July 18, 2023 13:20
8b69ae5
to
aeda573
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.3
chore(deps): update dependency elixir to v1.15.4
Jul 18, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
August 28, 2023 23:26
aeda573
to
f14b298
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.4
chore(deps): update dependency elixir to v1.15.5
Aug 28, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
September 20, 2023 10:14
f14b298
to
4495db9
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.5
chore(deps): update dependency elixir to v1.15.6
Sep 20, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
October 14, 2023 13:37
4495db9
to
6d1a3a7
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.6
chore(deps): update dependency elixir to v1.15.7
Oct 14, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
December 22, 2023 19:37
6d1a3a7
to
fd9227d
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.15.7
chore(deps): update dependency elixir to v1.16.0
Dec 22, 2023
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
January 31, 2024 10:47
fd9227d
to
030c6cc
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.16.0
chore(deps): update dependency elixir to v1.16.1
Jan 31, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
March 10, 2024 14:30
030c6cc
to
048da4d
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.16.1
chore(deps): update dependency elixir to v1.16.2
Mar 10, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
May 21, 2024 00:41
048da4d
to
fd25d77
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.16.2
chore(deps): update dependency elixir to v1.16.3
May 21, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
June 12, 2024 11:23
fd25d77
to
5736f8d
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.16.3
chore(deps): update dependency elixir to v1.17.0
Jun 12, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
June 18, 2024 12:25
5736f8d
to
b6fdfb3
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.17.0
chore(deps): update dependency elixir to v1.17.1
Jun 18, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
July 7, 2024 00:03
b6fdfb3
to
ede4633
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.17.1
chore(deps): update dependency elixir to v1.17.2
Jul 7, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
September 18, 2024 17:02
ede4633
to
b058fe1
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.17.2
chore(deps): update dependency elixir to v1.17.3
Sep 18, 2024
renovate
bot
force-pushed
the
renovate/elixir-1.x
branch
from
December 19, 2024 18:29
b058fe1
to
25f5191
Compare
renovate
bot
changed the title
chore(deps): update dependency elixir to v1.17.3
chore(deps): update dependency elixir to v1.18.0
Dec 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.13.2-otp-24
->1.18.0
Release Notes
elixir-lang/elixir (elixir)
v1.18.0
Compare Source
https://elixir-lang.org/blog/2024/12/19/elixir-v1-18-0-released/
Elixir v1.18 is an impressive release with improvements across the two main efforts happening within the Elixir ecosystem right now: set-theoretic types and language servers. It also comes with built-in JSON support and adds new capabilities to its unit testing library. Here is a quick break down.
Type system improvements
The most exciting change in Elixir v1.18 is type checking of function calls, alongside gradual inference of patterns and return types. To understand how this will impact your programs, consider the following code in "lib/user.ex":
Elixir's type system will infer that the
drive/2
function expects a%User{}
struct and returns either{:ok, dynamic()}
,{:error, :no_choice}
, or{:error, :not_allowed}
.Therefore, the following code in a separate module (either in a separate or the same file), should emit a violation, due to an invalid argument:
Here is the warning:
And the next snippet will warn because the
:error
clause will never match, as that's not a valid return type of theUser.drive/2
call:And here is the warning:
For more details on typing inference and the trade-offs made by the Elixir team, see our official documentation.
There are many other improvements to the type system, which we will go in detail within the official release. Meanwhile, here is a list summary of the overall improvements done to the type system:
Type inference of patterns (typing inference of guards will be part of an upcoming release)
Type checking of all language constructs, including local and remote calls, except
for
,with
, and closuresType checking of all functions inlined by the compiler found in
Kernel
Type checking of all conversion functions inlined by the compiler
Support for tuples and lists as composite types as well as type checking of their basic operations
Detection of clauses and patterns that will never match from
case
,cond
, and=
Detection of unused clauses in private functions
ExUnit improvements
ExUnit now supports parameterized tests to run the same test module multiple times under different parameters.
For example, Elixir ships a local, decentralized and scalable key-value process storage called
Registry
. The registry can be partitioned and its implementation differs depending if partitioning is enabled or not. Therefore, during tests, we want to ensure both modes are exercised. With Elixir v1.18, we can achieve this by writing:ExUnit parameterizes whole test modules. If your modules are configured to run concurrently, as above, so will the parameterized ones.
ExUnit also comes with the ability of specifying test groups. While ExUnit supports running tests concurrently, those tests must not have shared state between them. However, in large applications, it may be common for some tests to depend on some shared state, and other tests to depend on a completely separate state. For example, part of your tests may depend on Cassandra, while others depend on Redis. Prior to Elixir v1.18, these tests could not run concurrently, but in v1.18 they might as long as they are assigned to different groups. Tests modules within the same group do not run concurrently, but across groups, they might.
With features like async tests, suite partitioning, and now grouping, Elixir developers have plenty of flexibility to make the most use of their machine resources, both in development and in CI.
mix format --migrate
The
mix format
command now supports an explicit--migrate
flag, which will convert constructs that have been deprecated in Elixir to their latest version. Because this flag rewrites the AST, it is not guaranteed the migrated format will always be valid when used in combination with macros that also perform AST rewriting.As of this release, the following migrations are executed:
Normalize parens in bitstring modifiers - it removes unnecessary parentheses in known bitstring modifiers, for example
<<foo::binary()>>
becomes<<foo::binary>>
, or adds parentheses for custom modifiers, where<<foo::custom_type>>
becomes<<foo::custom_type()>>
.Charlists as sigils - formats charlists as
~c
sigils, for example'foo'
becomes~c"foo"
.unless
as negatedif
s - rewritesunless
expressions usingif
with a negated condition, for exampleunless foo do
becomesif !foo do
.More migrations may be added in future releases.
JSON support
This release includes official support for JSON encoding and decoding.
Both encoder and decoder fully conform to RFC 8259 and ECMA 404 standards.
Encoding
Encoding can be done via
JSON.encode!/1
andJSON.encode_to_iodata!/1
functions. The default encoding rules are applied as follows:integer() | float()
true | false
nil
binary()
atom()
list()
%{binary() => _}
%{atom() => _}
%{integer() => _}
You may also implement the
JSON.Encoder
protocol for custom data structures. Elixir already implements the protocol for all Calendar types.If you have a struct, you can derive the implementation of the
JSON.Encoder
by specifying which fields should be encoded to JSON:Decoding
Decoding can be done via
JSON.decode/2
andJSON.decode!/2
functions. The default decoding rules are applied as follows:integer() | float()
true | false
nil
binary()
%{binary() => _}
Language server listeners
4 months ago, we welcomed the Official Language Server team, with the goal of unifying the efforts behind code intelligence, tools, and editors in Elixir. Elixir v1.18 brings new features on this front by introducing locks and listeners to its compilation. Let's understand what it means.
At the moment, all language server implementations have their own compilation environment. This means that your project and dependencies during development are compiled once, for your own use, and then again for the language server. This duplicate effort could cause the language server experience to lag, when it could be relying on the already compiled artifacts of your project.
This release address by introducing a compiler lock, ensuring that only a single operating system process running Elixir compiles your project at a given moment, and by providing the ability for one operating system process to listen to the compilation results of others. In other words, different Elixir instances can now communicate over the same compilation build, instead of racing each other.
These enhancements do not only improve editor tooling, but they also directly benefit projects like IEx and Phoenix. For example, you can invoke
IEx.configure(auto_reload: true)
and IEx will automatically reload modules changed elsewhere, either by a separate terminal or your IDE.Potential incompatibilities
This release no longer supports WERL (a graphical user interface on Windows used by Erlang 25 and earlier). For a better user experience on Windows terminals, use Erlang/OTP 26+ (this is also the last Elixir release to support Erlang/OTP 25).
Furthermore, in order to support inference of patterns, Elixir will raise if it finds recursive variable definitions. This means patterns that never match, such as this one, will no longer compile:
However, recursion of root variables (where variables directly point to each other), will also fail to compile:
While the definition above could succeed (as long as all three arguments are equal), the cycle is not necessary and could be removed, as below:
You may also prefer to write using guards:
1. Enhancements
Elixir
elixir
,elixirc
, andmix
on Windows. Those provide a safer entry point for running Elixir from other platformsDuration.to_string/1
Code.format_string!/2
--
and---
inCode.format_string!/2
to make precedence clearerCode.string_to_quoted/2
whentoken_metadata: true
to help compute ranges from the AST:capture_arg
as its own entry inCode.Fragment.surround_context/2
Config.read_config/1
Enum.product_by/2
andEnum.sum_by/2
MissingApplicationsError
exception to denote missing applicationsJSON
module with encoding and decoding functionalityJSON.Encoder
for all Calendar types_
), such ashttp_сервер
. Previously allowed highly restrictive identifiers, which mixed Latin and other scripts, such as the japanese word for t-shirt,Tシャツ
, now require the underscore as wellelem/2
unquote
andunquote_splicing
to catch bugs earlierERL_COMPILER_OPTIONS=deterministic
. Keep in mind deterministic builds strip source and other compile time information, which may be relevant for programsList.ends_with?/2
dbg
handling ofif/2
,with/1
and of code blocksMacro.struct_info!/2
to return struct information mirroringmod.__info__(:struct)
Registry.lock/3
for local lockingPartitionSupervisor.resize!/2
to resize the number of partitions in a supervisor (up to the limit it was started with)Process.sleep/1
@undefined_impl_description
to customize error message when an implementation is undefined__deriving__/1
as optional macro callback toProtocol
, no longer requiring empty implementationsExUnit
ExUnit.Case
test_pid
as a tagIEx
IEx.configure(auto_reload: true)
to automatically pick up modules recompiled from other operating system processes:dot_iex
support toIEx.configure/1
Mix
mix format --migrate
to migrate from deprecated functionality:listeners
configuration to listen to compilation events from the current and other operating system processes2. Bug fixes
Elixir
Code.string_to_quoted/2
next_break_fits
respectsline_length
unquote
andunquote_splicing
to provide better error reports instead of failing too late inside the compilerStream.transform/5
URI.merge/2
ExUnit
assert/1
with=
IEx
IEx.Helpers.recompile/0
will reload modules changed by other operating system processesMix
--all-warnings
when files do not changerebar3
in some casespriv
directories.app
files deterministic in releasesMix.Shell
on Windows when outputting non UTF-8 characters3. Soft deprecations (no warnings emitted)
Elixir
color/3
is deprecated in favor ofcolor_doc/3
fold_doc/2
is deprecated in favor offold/2
unless
in favor ofif
. Usemix format --migrate
to automate the migrationMacro.struct!/2
is deprecated in favor ofMacro.struct_info!/2
__deriving__/3
inside theAny
implementation is deprecated, derive it inside the protocol definition itself4. Hard deprecations
EEx
<%#
is deprecated in favor of<%!--
or<% #
c:EEx.handle_text/2
is deprecated in favor ofc:EEx.handle_text/3
Elixir
:warnings_as_errors
is deprecated viaCode.put_compiler_option/2
. This must not affect developers, as the:warnings_as_errors
option is managed by Mix tasks, and not directly used via theCode
moduleEnumerable.slice/1
List.zip/1
is deprecated in favor ofEnum.zip/1
Module.eval_quoted/3
in favor ofCode.eval_quoted/3
Range.new/2
Tuple.append/2
is deprecated, useTuple.insert_at/3
insteadMix
mix cmd --app APP
in favor ofmix do --app APP
:warnings_as_errors
configuration in:elixirc_options
is deprecated. Instead pass the--warnings-as-errors
flag tomix compile
. Alternatively, you might alias the task:aliases: [compile: "compile --warnings-as-errors"]
:warnings_as_errors
configuration in:test_elixirc_options
is deprecated. Instead pass the--warnings-as-errors
flag tomix test
. Alternatively, you might alias the task:aliases: [test: "test --warnings-as-errors"]
compilers/0
in favor ofMix.Task.Compiler.compilers/0
v1.17
The CHANGELOG for v1.17 releases can be found in the v1.17 branch.
v1.17.3
Compare Source
1. Bug fixes
Elixir
IEx
recompile
Mix
--label
option on stats and cyclesv1.17.2
Compare Source
1. Bug fixes
Logger
:gen_statem
'sformat_status/2
returns non-tupleMix
:ref
RELEASE_MODE
and set ERRORLEVEL on.bat
scriptsv1.17.1
Compare Source
1. Enhancements
Mix
2. Bug fixes
EEx
Elixir
with
'selse
patternsno_return
functionExUnit
--repeat-until-failure
v1.17.0
Compare Source
https://elixir-lang.org/blog/2024/06/12/elixir-v1-17-0-released/
This release includes type inference of patterns to provide warnings for an initial set of constructs (binaries, maps, and atoms) within the same function. It also includes a new Duration data type to interact with Calendar types, support for Erlang/OTP 27, and many other improvements.
Warnings from gradual set-theoretic types
This release introduces gradual set-theoretic types to infer types from patterns and use them to type check programs, enabling the Elixir compiler to find faults and bugs in codebases without requiring changes to existing software. The underlying principles, theory, and roadmap of our work have been outlined in "The Design Principles of the Elixir Type System" by Giuseppe Castagna, Guillaume Duboc, José Valim.
At the moment, Elixir developers will interact with set-theoretic types only through warnings found by the type system. The current implementation models all data types in the language:
binary()
,integer()
,float()
,pid()
,port()
,reference()
- these types are indivisible. This means both1
and13
get the sameinteger()
type.atom()
- it represents all atoms and it is divisible. For instance, the atom:foo
and:hello_world
are also valid (distinct) types.map()
and structs - maps can be "closed" or "open". Closed maps only allow the specified keys, such as%{key: atom(), value: integer()}
. Open maps support any other keys in addition to the ones listed and their definition starts with...
, such as%{..., key: atom(), value: integer()}
. Structs are closed maps with the__struct__
key.tuple()
,list()
, andfunction()
- currently they are modelled as indivisible types. The next Elixir versions will also introduce fine-grained support to them.We focused on atoms and maps on this initial release as they are respectively the simplest and the most complex types representations, so we can stress the performance of the type system and quality of error messages. Modelling these types will also provide the most immediate benefits to Elixir developers. Assuming there is a variable named
user
, holding a%User{}
struct with anaddress
field, Elixir v1.17 will emit the following warnings at compile-time:Pattern matching against a map or a struct that does not have the given key, such as
%{adress: ...} = user
(noticeaddress
vsadress
)Accessing a key on a map or a struct that does not have the given key, such as
user.adress
Updating a struct or a map that does not define the given key, such as
%{user | adress: ...}
Invoking a function on non-modules, such as
user.address()
Capturing a function on non-modules, such as
&user.address/0
Attempting to invoke to call an anonymous function without an actual function, such as
user.()
Performing structural comparisons with structs, such as
my_date < ~D[2010-04-17]
Performing structural comparisons between non-overlapping types, such as
integer >= string
Building and pattern matching on binaries without the relevant specifiers, such as
<<name>>
(this warns because by default it expects an integer, it should have been<<name::binary>>
instead)Attempting to rescue an undefined exception or a struct that is not an exception
Accessing a field that is not defined in a rescued exception
These new warnings help Elixir developers find bugs earlier and give more confidence when refactoring code, especially around maps and structs. While some of these warnings were emitted in the past, they were discovered using syntax analysis. The new warnings are more reliable, precise, and with better error messages. Keep in mind, however, that the Elixir typechecker only infers types from patterns within the same function at the moment. Analysis from guards and across function boundaries will be added in future relases. For more details, see our new reference document on gradual set-theoretic types.
The type system was made possible thanks to a partnership between CNRS and Remote. The development work is currently sponsored by Fresha, Starfish*, and Dashbit.
Erlang/OTP support
This release adds support for Erlang/OTP 27 and drops support for Erlang/OTP 24. We recommend Elixir developers to migrate to Erlang/OTP 26 or later, especially on Windows. Support for WERL (a graphical user interface for the Erlang terminal on Windows) will be removed in Elixir v1.18.
Adding
Duration
andshift/2
functionsElixir introduces the
Duration
data type and APIs to shift dates, times, and date times by a given duration, considering different calendars and time zones.Note the operation is called
shift
(instead ofadd
) since working with durations does not obey properties such as associativity. For instance, adding one month and then one month does not give the same result as adding two months:Still, durations are essential for building intervals, recurring events, and modelling scheduling complexities found in the world around us. For
DateTime
s, Elixir will correctly deal with time zone changes (such as Daylight Saving Time), but provisions are also available in case you want to surface conflicts (for example, you shifted to a wall clock that does not exist, because the clock has been moved forward by one hour). SeeDateTime.shift/2
for examples.Finally, a new
Kernel.to_timeout/1
function has been added, which helps developers normalize durations and integers to a timeout used by Process APIs. For example, to send a message after one hour, one can now write:v1.17.0 (2024-06-12)
1. Enhancements
Elixir
Access.find/1
that mirrorsEnum.find/2
Code.Fragment.container_cursor_to_quoted/2
Date.shift/2
to shift dates with duration and calendar-specific semanticsDate
to accept years outside of-9999..9999
rangeDateTime.shift/2
to shift datetimes with duration and calendar-specific semanticsDuration
data typec:GenServer.format_status/1
callbackKernel.get_in/1
with safe nil-handling for access and structsKernel.is_non_struct_map/1
guardKernel.to_timeout/1
Keyword.intersect/2-3
to mirror theMap
APIMacro.Env.define_alias/4
,Macro.Env.define_import/4
,Macro.Env.define_require/4
,Macro.Env.expand_alias/4
,Macro.Env.expand_import/5
, andMacro.Env.expand_require/6
to aid the implementation of language servers and embedded languagesNaiveDateTime.shift/2
to shift naive datetimes with duration and calendar-specific semanticsProcess.set_label/1
String.byte_slice/3
to slice a string to a maximum number of bytes while keeping it UTF-8 encodeduse_stdio: false
inSystem.cmd/3
andSystem.shell/2
Time.shift/2
to shift times with duration and calendar-specific semanticsExUnit
start_supervised
IEx
recompile
was called and the current working directory changedc/0
as an alias tocontinue/0
IEx.Pry.annotate_quoted/3
to annotate a quoted expression with pry breakpointsLogger
:gen_statem
reports using Elixir data structuresMix
:depth
option toMix.SCM.Git
, thus supporting shallow clones of Git dependencies:optional
is used in combination with:in_umbrella
--umbrella-only
tomix deps.tree
mix test --breakpoints
that sets up a breakpoint before each test that will runmix test --repeat-until-failure
to rerun tests until a failure occursmix test --slowest-modules
to print slowest modules based on all of the tests they hold2. Bug fixes
Elixir
(a -> b)
were not wrapped as part of the literal encoder..
and...
are handled at the AST levelquote bind_quoted: ...
twice:line
property when:file
is given as option toquote
Macro.escape/2
when passing a quote triplet without valid metaModule.get_attribute/3
for persisted attributes which have not yet been written toIEx
Mix
3. Soft deprecations (no warnings emitted)
Elixir
c:GenServer.format_status/2
callback to align with Erlang/OTP 25+Mix
mix profile.tprof
mix profile.tprof
4. Hard deprecations
Elixir
:all
toIO.read/2
andIO.binread/2
is deprecated, pass:eof
instead~c
insteadleft..right
without explicit steps inside patterns and guards is deprecated, writeleft..right//step
instead10..1
without an explicit step is deprecated, write10..1//-1
insteadExUnit
register_test/4
is deprecated in favor ofregister_test/6
for performance reasonsv1.16.3
Compare Source
1. Bug fixes
Elixir
--dbg
flag in Elixir's CLIwhen
System.cmd/3
:undefined
fields are properly converted tonil
when invoking Erlang's APILogger
Mix
v1.16.2
Compare Source
1. Enhancements
Elixir
:defmodule
tracing event on module definitionMix
Mix.install_project_dir/0
Mix.install/2
installationMix.SCM.delete/1
2. Bug fixes
Elixir
Path.relative_to/2
dealt with "." as inputIEx
ExUnit
v1.16.1
Compare Source
1. Bug fixes
Elixir
Code.quoted_to_algebra/2
for operator with :do key as operandString.capitalize/1
with a single codepointIEx
$HOME
is setMix
v1.16.0
Compare Source
Official announcement: https://elixir-lang.org/blog/2023/12/22/elixir-v1-16-0-released/
1. Enhancements
EEx
Elixir
:emit_warnings
forCode.string_to_quoted/2
MismatchedDelimiterError
for handling mismatched delimiter exceptions\r\n
:offset
option toFile.stream!/2
UndefinedFunctionError
Kernel.ParallelCompiler.pmap/2
to compile multiple additional entries in parallelTrue
/False
/Nil
are used as aliases and there is no such aliasMacro.compile_apply/4
@nifs
annotation from Erlang/OTP 25@dialyzer
configurationString.replace_invalid/2
:limit
option toTask.yield_many/2
Logger
Logger.levels/0
Mix
MIX_PROFILE
to profile a list of comma separated tasks--sparse
option:applications
and:extra_applications
are used:details
when possiblelib/
and one of them is changed--sparse
optioninclude/
directory in releasesmix test test/foo_test.exs:13 test/bar_test.exs:27
2. Bug fixes
Elixir
Code.Fragment.surround_context/2
when matching on->
IO.binwrite/2
on terminated device (mirroringIO.write/2
)dbg
module is a compile-time dependencyunquote/1
and the function/macro itself is unusedElixir.
in their definition@after_compile
callbacks to avoid deadlocksMacro.to_string/1
for certain ASTsFile.cwd!/0
inPath.expand/1
andPath.absname/1
Path.relative_to/2
returns a relative path when the given argument does not share a common prefix withcwd
ExUnit
IEx
Mix
mix archive.install
mix escript.install
3. Soft deprecations (no warnings emitted)
Elixir
File.stream!(file, options, line_or_bytes)
in favor of keeping the options as last argument, as inFile.stream!(file, line_or_bytes, options)
Kernel.ParallelCompiler.async/1
in favor ofKernel.ParallelCompiler.pmap/2
Path.safe_relative_to/2
in favor ofPath.safe_relative/2
Mix
Mix.Task.Compiler.Diagnostic
4. Hard deprecations
Elixir
Date.range/3
with a negative step insteadEnum.slice/2
, givefirst..last//1
instead~R/.../
is deprecated in favor of~r/.../
. This is because~R/.../
still allowed escape codes, which did not fit the definition of uppercase sigilsString.slice/2
, givefirst..last//1
insteadExUnit
format_time/2
, useformat_times/1
insteadMix
:leex
to be added as a compiler to run theleex
compiler:yecc
to be added as a compiler to run theyecc
compilerv1.15.8
Compare Source
1. Bug fixes
Elixir
--dbg
flag in Elixir's CLISystem.cmd/3
:undefined
fields are properly converted tonil
when invoking Erlang's APILogger
Mix
v1.15.7
Compare Source
1. Enhancements
Elixir
2. Bug fixes
EEx
Mix
Mix.Tasks.Format.formatter_for_file/2
v1.15.6
Compare Source
This release also includes fixes to the Windows installer.
1. Bug fixes
EEx
Elixir
*
in bitstringsCode.quoted_to_algebra/2
Mix
:extra_applications
declare in umbrella projects are loadedv1.15.5
Compare Source
1. Enhancements
IEx
2. Bug fixes
Elixir
Code.Fragment.surround_context/2
for aliases and submodules of non-aliasesExUnit
IEx
Mix
blake
is always availablev1.15.4
Compare Source
1. Bug fixes
Mix
v1.15.3
Compare Source
1. Enhancements
Elixir
Mix
Mix.install/2
2. Bug fixes
Elixir
with_diagnostics
propagate warnings from inner Erlang passesIEx
--remsh
on Erlang/OTP 25 and earlierMix
__mix_recompile__?
callbacks are properly invokedv1.15.2
Compare Source
1. Bug fixes
IEx
v1.15.1
Compare Source
1. Enhancements
Code.string_to_quoted/2
honors:static_atoms_encoder
for multi-letter sigils2. Bug fixes
ExUnit
capture_log
capture_log
callsIEx
pry
works on Erlang/OTP 25 and earlier while IEx is bootingCode.Fragment.surround_context
considers surround context around spaces and parensLogger
:function
as metadataMix
mtime was successfully retrieved
--werl
from release scripts on Erlang/OTP 26v1.15.0
Compare Source
Official announcement: https://elixir-lang.org/blog/2023/06/19/elixir-v1-15-0-released/
1. Enhancements
EEx
Elixir
%s
) toCalendar.strftime/2
Code.format_string!/2
now converts'charlists'
into~c"charlists"
by default:on_undefined_variable
to the compiler options to preserve the warning behaviour which was deprecated back in Elixir v1.4Code.loaded?/1
andCode.ensure_all_loaded(!)/1
Code.prepend_paths/1
,Code.append_paths/1
, andCode.delete_paths/1
Code.with_diagnostics/2
to return diagnostics when compiling and evaluating codeCode.Fragment.cursor_context/1
Code.Fragment.container_cursor_to_quoted/1
Date.before?/2
andDate.after?/2
DateTime.before?/2
andDateTime.after?/2
DateTime.utc_now/2
File.Stream
Inspect
now renders'charlists'
as~c"charlists"
by defaultcase
andcond
insidedbg/2
t:nonempty_binary/0
andt:nonempty_bitstring/0
@behaviour
s as runtime dependencieserror: ...
messages, similar towarning: ...
Code.compiler_options(on_undefined_variable: :warn)
at the top of yourmix.exs
--sname undefined
/--name undefined
so a name is automatically generatedKeyword.split_with/2
Macro.Env.lookup_alias_as/2
Map.split_with/2
Map.intersect/2
andMap.intersect/3
MapSet.split_with/2
NaiveDateTime.beginning_of_day/1
andNaiveDateTime.end_of_day/1
NaiveDateTime.before?/2
andNaiveDateTime.after?/2
NaiveDateTime.utc_now/2
Module.get_last_attribute/3
:return_separator
optionProcess.alias/0,1
andProcess.unalias/1
Range.split/2
:fast_ascii
mode toString.valid?/2
Supervisor
:lines
inSystem.cmd/3
to capture output line by lineTask.yield_many/2
Task.Supervisor.start_child/2
Time.before?/2
andTime.after?/2
URI.append_path/2
ExUnit
{module, function}
tuples in ExUnitsetup
callbacksExUnit.Case.get_last_registered_test/1
ExUnit.DocTest.doctest_file/2
doctest_data
in doctest tagsIEx
--dbg pry
IEX_HOME
alias
,import
, andrequire
runtime_info(:allocators)
Range
,DateTime
, andRegex
Logger
Logger.add_handlers/1
andLogger.default_formatter/1
default_formatter
anddefault_handler
configuration for Logger which configures Erlang/OTP logger:always_evaluate_messages
configuration to LoggerMix
:start_concurrently
configuration--all-warnings
by default@external_resources
optional_applications
to.app
file--purge-consolidation-path-if-stale
which will purge the given consolidation path if compilation is requiredmix deps.get
/mix deps.update
--check-locked
which raises if changes to the lockfile are required--no-exit
option--check-formatted
fails--trace-to-file
to improve performance when working with large outputseval
command--output
flagdef cli
to unify all CLI defaults in a single placeMix.Project.deps_tree/1
2. Bug fixes
Elixir
Exception.blame/3
File.cp/2
File.rm_rf/1
try/rescue
...
inside typespecsbehaviour_info
andmodule_info
functions from Erlang modulesModule.get_attribute/3
returnsnil
and not the given default value when an attribute has been explicitly set asnil
System.stop/1
executesURI.merge/2
works accordingly with relative pathsExUnit
@tag capture_log: true
was set to true and the Logger application was shut down in the middle of the testsetup_all
IEx
whenever the input reader was killed
Mix
cwd
in compiler cache keyerlsrv.exe
in path with spacesmix xref
is used at the umbrella root3. Soft deprecations (no warnings emitted)
Elixir
File.cp/3
andFile.cp_r/3
with a function as third argumentis deprecated in favor of a keyword list
:return_diagnostics
option to beset to true when compiling or requiring code
Logger
add_backend/2
,remove_backend/2
, andconfigure_backend/2
have been deprecatedin favor of the new
:logger_backends
dependency:console
configuration has been deprecated in favor of:default_formatter
:backends
configuration has been deprecated in favor ofLogger.add_handlers/1
Mix
:preferred_cli_env
is deprecated in favor of:preferred_envs
indef cli
:preferred_cli_target
is deprecated in favor of:preferred_targets
indef cli
HEX_MIRROR
is deprecated in favor ofHEX_BUILDS_URL
4. Hard deprecations
Elixir
Calendar.ISO.day_of_week/3
is deprecated in favor ofCalendar.ISO.day_of_week/4
Exception.exception?/1
is deprecated in favor ofKernel.is_exception/1
...
as a valid function call identifierRegex.regex?/1
is deprecated in favor ofKernel.is_struct/2
Logger
Logger.warn/2
is deprecated in favor ofLogger.warning/2
v1.14.5
Compare Source
This release contains fixes for Erlang/OTP 26.
Bug fixes
Elixir
Mix
v1.14.4
Compare Source
This release adds basic support for Erlang/OTP 26. When migrating
to Erlang/OTP 26, keep it mind it changes how maps are stored
internally and they will be printed and traversed in a different
order (note maps never provided a guarantee of their order).
To aid migration, this release adds
:sort_maps
toinspect
custom options, in case you want to sort them before inspection:
Enhancements
Elixir
:sort_maps
toInspect.Opts.custom_options
IEx
Mix
Bug fixes
Elixir
Code.quoted_to_string_with_comments/2
debug_info/4
when returning core_v1quote keep: true
to avoid invalid stacktracesConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.