Skip to content

Commit b82dd52

Browse files
author
José Valim
committed
Update CHANGELOG
1 parent 5c16827 commit b82dd52

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For a complete reference on Elixir syntax, see the [Syntax Reference](https://he
4545

4646
In the example above, an argument that did not match or guard that did not evaluate to true are shown between `-`. If the terminal supports ANSI coloring, they are wrapped in red instead of the `-` character.
4747

48-
Since blaming an exception can be extensive, `Exception.blame/3` must be used exclusively in debugging situations. It is not advised to apply it to production components such as a Logger. This feature has been integrated into the compiler, the command line, ExUnit and IEx.
48+
Since blaming an exception can be expensive, `Exception.blame/3` must be used exclusively in debugging situations. It is not advised to apply it to production components such as a Logger. This feature has been integrated into the compiler, the command line, ExUnit and IEx.
4949

5050
This feature also requires Erlang/OTP 20+.
5151

@@ -82,7 +82,7 @@ If it is necessary to configure any of the children, such can be done by passing
8282
MyApp.Endpoint
8383
]
8484

85-
The modules `Agent`, `Registry`, `Task`, and `Task.Supervisor` have been updated to also defined a `child_spec/1` function, allowing them to be used in a supervision tree similar to the examples above. `use Agent`, `use GenServer`, `use Supervisor`, and `use Task` have also been updated to automatically generate an overridable `child_spec/1`.
85+
The modules `Agent`, `Registry`, `Task`, and `Task.Supervisor` have been updated to include a `child_spec/1` function, allowing them to be used directly in a supervision tree similar to the examples above. `use Agent`, `use GenServer`, `use Supervisor`, and `use Task` have also been updated to automatically define an overridable `child_spec/1` function.
8686

8787
Finally, child specifications are now provided as maps (data-structures) instead of the previous `Supervisor.Spec.worker/3` and `Supervisor.Spec.supervisor/3` APIs. This behaviour also aligns with how supervisors are configured in Erlang/OTP 18+. See the updated `Supervisor` docs for more information, as well as the new `Supervisor.init/2` and `Supervisor.child_spec/2` functions.
8888

@@ -145,6 +145,7 @@ This release brings further improvements to Calendar types. It adds arithmetic a
145145
* [Calendar] Add Rata Die format for conversions between Calendars and `Date.convert/2`, `Time.convert/2`, `NaiveDateTime.convert/2` and `DateTime.convert/2` (as well as bang variants)
146146
* [Calendar] Add `:calendar` field to `Time` struct
147147
* [Calendar] Add `Time.diff/3`, `Date.add/2`, `Date.diff/2`, `DateTime.diff/3`
148+
* [Calendar] Add `Date.range/2`
148149
* [Enum] Add `Enum.chunk_by/4` and `Stream.chunk_by/4`
149150
* [Exception] Add `Exception.blame/3` that adds metadata to exceptions
150151
* [File] Add `File.read_link/1` and `File.read_link!/1`
@@ -167,12 +168,15 @@ This release brings further improvements to Calendar types. It adds arithmetic a
167168
* [Supervisor] Add `Supervisor.init/2` and `Supervisor.child_spec/2`
168169
* [Supervisor] Allow `module` and `{module, arg}` to be given to `Supervisor.start_link/2` and invoke `module.child_spec(arg)` on each argument
169170
* [Task] Support `:on_timeout` in `Task.async_stream` to control how tasks are terminated
171+
* [Task] Add `ordered: false` support to `Task.async_stream`
170172

171173
#### ExUnit
172174

173175
* [ExUnit] Show code snippet from test source file in case of test errors
174176
* [ExUnit] Show the value of variables used in an assertion
175177
* [ExUnit] Use `Exception.blame/3` when formatting test errors
178+
* [ExUnit] Make `assert_raise/2` fail if the underlying exception has a broken `message/1` implementation
179+
* [ExUnit] Add `start_supervised/2` and `stop_supervised/1` to ExUnit. Processes started by this function are automatically shut down when the test exits
176180

177181
#### IEx
178182

@@ -186,6 +190,7 @@ This release brings further improvements to Calendar types. It adds arithmetic a
186190

187191
#### Mix
188192

193+
* [mix compile.elixir] Add `--all-warnings` option to Elixir compiler that shows all warnings from the previous compilation (instead of just of the files being compiled)
189194
* [mix escript.build] Strip debug information from escripts by default and add option `:strip_beam` which defaults to true
190195
* [mix loadpaths] Ensure `--no-deps-check` do not trigger SCM callbacks (such as `git`)
191196
* [mix local.hex] Add `--if-missing` flag to `local.hex` mix task
@@ -214,6 +219,7 @@ This release brings further improvements to Calendar types. It adds arithmetic a
214219
#### Mix
215220

216221
* [mix compile.elixir] Store multiple sources in case of module conflicts. This solves an issue where `_build` would get corrupted when compiling Elixir projects with module conflicts
222+
* [mix compile.erlang] Do not silently discard Erlang compile errors
217223
* [mix compile.protocols] Ensure protocol implementations do not "disappear" when switching between applications in umbrella projects by having separate consolidation paths per project
218224

219225
### 3. Soft deprecations (no warnings emitted)

0 commit comments

Comments
 (0)