Skip to content

Commit 757ab8c

Browse files
Minor improvements in deprecation table (#14881)
1 parent 0fac5d5 commit 757ab8c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/elixir/pages/references/compatibility-and-deprecations.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ The first column is the version the feature was hard deprecated. The second colu
9191

9292
Version | Deprecated feature | Replaced by (available since)
9393
:-------| :-------------------------------------------------- | :---------------------------------------------------------------
94-
[v1.20] | `<<x::size(y)>>` in patterns without `^` | `<<x::size(^y)>>`
95-
[v1.20] | `File.stream!(path, modes, lines_or_bytes)` | `File.stream!(path, lines_or_bytes, modes)`
96-
[v1.20] | `Kernel.ParallelCompiler.async/1` | `Kernel.ParallelCompiler.pmap/2`
97-
[v1.20] | `Logger.*_backend` functions | The `LoggerBackends` module from `:logger_backends` package
98-
[v1.20] | `Logger.enable/1` / `Logger.disable/1` | `Logger.put_process_level/2` and `Logger.delete_process_level/1`
94+
[v1.20] | `<<x::size(y)>>` in patterns without `^` | `<<x::size(^y)>>` (v1.15)
95+
[v1.20] | `File.stream!(path, modes, lines_or_bytes)` | `File.stream!(path, lines_or_bytes, modes)` (v1.16)
96+
[v1.20] | `Kernel.ParallelCompiler.async/1` | `Kernel.ParallelCompiler.pmap/2` (v1.16)
97+
[v1.20] | `Logger.*_backend` functions | The `LoggerBackends` module from [`:logger_backends`](https://hex.pm/packages/logger_backends) package
98+
[v1.20] | `Logger.enable/1` and `Logger.disable/1` | `Logger.put_process_level/2` and `Logger.delete_process_level/1` respectively (v1.15)
9999
[v1.19] | CLI configuration in `def project` inside `mix.exs` | Moving it to `def cli` (v1.14)
100100
[v1.19] | Using `,` to separate tasks in `mix do` | Using `+` (v1.14)
101-
[v1.19] | Logger's `:backends` configuration | Logger's `:default_handler` configuration (v1.15)
102-
[v1.19] | Passing a callback to `File.cp`/`File.cp_r` | The `:on_conflict` option (v1.14)
101+
[v1.19] | `Logger`'s `:backends` configuration | `Logger`'s `:default_handler` configuration (v1.15)
102+
[v1.19] | Passing a callback to `File.cp/3`, `File.cp!/3`, `File.cp_r/3`, and `File.cp_r!/3` | The `:on_conflict` option (v1.14)
103103
[v1.18] | `<%#` in EEx | `<%!--` (v1.14) or `<% #` (v1.0)
104-
[v1.18] | `handle_text/2` callback in EEx | `handle_text/3` (v1.14)
105-
[v1.18] | Returning 2-arity fun from `Enumerable.slice/1` | Returning 3-arity (v1.14)
104+
[v1.18] | `EEx.Engine.handle_text/2` callback in EEx | `c:EEx.Engine.handle_text/3` (v1.14)
105+
[v1.18] | Returning a 2-arity function from `Enumerable.slice/1` | Returning a 3-arity function (v1.14)
106106
[v1.18] | Ranges with negative steps in `Range.new/2` | Explicit steps in ranges (v1.11)
107107
[v1.18] | `Tuple.append/2` | `Tuple.insert_at/3` (v1.0)
108108
[v1.18] | `mix cmd --app APP` | `mix do --app APP` (v1.14)
@@ -162,7 +162,7 @@ Version | Deprecated feature | Replaced by (ava
162162
[v1.8] | `Kernel.ParallelCompiler.files_to_path/2` | `Kernel.ParallelCompiler.compile_to_path/2` (v1.6)
163163
[v1.8] | `Kernel.ParallelRequire.files/2` | `Kernel.ParallelCompiler.require/2` (v1.6)
164164
[v1.8] | Returning `{:ok, contents}` or `:error` from `Mix.Compilers.Erlang.compile/6`'s callback | Return `{:ok, contents, warnings}` or `{:error, errors, warnings}` (v1.6)
165-
[v1.8] | `System.cwd/0` and `System.cwd!/0` | `File.cwd/0` and `File.cwd!/0` (v1.0)
165+
[v1.8] | `System.cwd/0` and `System.cwd!/0` | `File.cwd/0` and `File.cwd!/0` respectively (v1.0)
166166
[v1.7] | `Code.get_docs/2` | `Code.fetch_docs/1` (v1.7)
167167
[v1.7] | `Enum.chunk/2,3,4` | `Enum.chunk_every/2` and [`Enum.chunk_every/3,4`](`Enum.chunk_every/4`) (v1.5)
168168
[v1.7] | Calling `super/1` in`GenServer` callbacks | Implementing the behaviour explicitly without calling `super/1` (v1.0)

0 commit comments

Comments
 (0)