Skip to content

Commit d7fea95

Browse files
committed
Branch out v1.13
1 parent 9512bcc commit d7fea95

File tree

9 files changed

+31
-13
lines changed

9 files changed

+31
-13
lines changed

CHANGELOG.md

+21-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,24 @@ authority: fragment: host: path: port:
7474
query: scheme: userinfo:
7575
```
7676

77-
As you fill them in, the already filled structs no longer show up:
77+
As you fill a field in, the already filled fields no longer show up:
7878

7979
```elixir
8080
iex(1)> %URI{path: "/example",
8181
authority: fragment: host: port: query:
8282
scheme: userinfo:
8383
```
8484

85+
Along the same lines, `SyntaxError` and `TokenMissingError` were improved to show a code snippet whenever possible:
86+
87+
```elixir
88+
$ elixir -e "hello + * world"
89+
** (SyntaxError) nofile:1:9: syntax error before: '*'
90+
|
91+
1 | hello + * world
92+
| ^
93+
```
94+
8595
Finally, new compilation tracers have been added, alongside a handful of functions in `Module` to retrieve module metadata, which can be used to enrich suggestions in programming environments.
8696

8797
## Extended code formatting
@@ -136,6 +146,7 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
136146
* [Code] Allow custom sigil formatting on `Code.format_string!/2`
137147
* [Code] Add `{:on_module, bytecode, :none}` trace to compilation tracers
138148
* [Enum] Optimize `Enum.concat/1` for lists of lists
149+
* [Enum] Add `Enum.slide/3`
139150
* [Exception] Better format Elixir exceptions in Erlang
140151
* [Inspect] Allow default inspect fun to be set globally with `Inspect.Opts.default_inspect_fun/1`
141152
* [IO] Allow `:eof` to be given as limit to `IO.getn/2`
@@ -159,9 +170,11 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
159170
* [Task] Add `Task.completed/1`
160171
* [Task] Add `Task.ignore/1` to keep a task running but ignoring all of its results
161172
* [Task] Reduce the amount of copying `Task.async*` functions
173+
* [URI] Add `URI.new/1` and `URI.new!/1`
162174

163175
#### ExUnit
164176

177+
* [ExUnit] Show hint if comparing different but equivalent strings
165178
* [ExUnit.CaptureIO] Add `with_io/3` to return result with captured io
166179
* [ExUnit.CaptureLog] Add `with_log/2` to return result with captured logs
167180

@@ -177,6 +190,8 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
177190

178191
#### Mix
179192

193+
* [Mix] Add `MIX_INSTALL_FORCE` environment variable support
194+
* [Mix] Support `:config` and `:system_env` in `Mix.install/2`
180195
* [mix archive.install] Run `loadconfig` before building archive
181196
* [mix compile] Move Elixir version check to before deps are compiled, in order to give feedback earlier
182197
* [mix compile.elixir] Do not recompile files if their modification time change but their contents are still the same and the .beam files are still on disk
@@ -206,13 +221,15 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
206221

207222
#### EEx
208223

224+
* [EEx] Accept comments in EEx between do and the first clause
209225
* [EEx] Accept EEx expressions where `->` is followed by newline
210226

211227
#### Elixir
212228

213229
* [Application] Warn if `Application.compile_env` or `Application.compile_env!` are called without a require
214230
* [Code] Make sure `:static_atoms_encoder` in `Code.string_to_quoted/2` also applies to quoted keyword keys
215231
* [Code] Ensure bindings with no context are returned as atoms instead of `{binding, nil}` in eval operations
232+
* [Inspect] Fix a bug when inspecting a non-binary bitstring with colors
216233
* [Kernel] Raise if `__CALLER__` or `__ENV__` or `__STACKTRACE__` are used in match
217234
* [Kernel] Improve error message on invalid argument for `byte_size` from binary concat
218235
* [Kernel] Raise when aliasing non-Elixir modules without `:as`
@@ -243,6 +260,7 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
243260
#### Logger
244261

245262
* [Logger] Raise clear error message for invalid `:compile_time_purge_matching` configuration
263+
* [Logger] Fix a bug where Logger would not reset its discard counter under some scenarios
246264

247265
#### Mix
248266

@@ -261,8 +279,9 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
261279

262280
#### Elixir
263281

264-
* [IO] `:all` on `IO.getn` is deprecated in favor of `:eof`
265282
* [Code] Environment options in `Code.eval_quoted/3` and `Code.eval_string/3`, such as `:aliases` and `:tracers`, have been deprecated in favor of passing an environment
283+
* [IO] `:all` on `IO.getn` is deprecated in favor of `:eof`
284+
* [URI] `URI.parse/1` is deprecated in favor of `URI.new/1` and `URI.new!/1`
266285

267286
#### Mix
268287

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PREFIX ?= /usr/local
22
TEST_FILES ?= "*_test.exs"
33
SHARE_PREFIX ?= $(PREFIX)/share
44
MAN_PREFIX ?= $(SHARE_PREFIX)/man
5-
#CANONICAL := MAJOR.MINOR/
5+
CANONICAL := 1.13/
66
CANONICAL ?= master/
77
ELIXIRC := bin/elixirc --ignore-module-conflict $(ELIXIRC_OPTS)
88
ERLC := erlc -I lib/elixir/include

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
2. Update tables in /SECURITY.md and "Compatibility and Deprecations"
3434

35-
3. Commit "Prepare vMAJOR.MINOR for release"
35+
3. Commit "Branch out vMAJOR.MINOR"
3636

3737
### Back in master
3838

SECURITY.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ Elixir applies bug fixes only to the latest minor branch. Security patches are a
66

77
Elixir version | Support
88
:------------- | :-----------------------------
9-
1.13 | Development
10-
1.12 | Bug fixes and security patches
9+
1.13 | Bug fixes and security patches
10+
1.12 | Security patches only
1111
1.11 | Security patches only
1212
1.10 | Security patches only
1313
1.9 | Security patches only
14-
1.8 | Security patches only
1514

1615
## Announcements
1716

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.13.0-dev
1+
1.13.0-rc.0

bin/elixir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
ELIXIR_VERSION=1.13.0-dev
4+
ELIXIR_VERSION=1.13.0-rc.0
55

66
if [ $# -eq 0 ] || { [ $# -eq 1 ] && { [ "$1" = "--help" ] || [ "$1" = "-h" ]; }; }; then
77
cat <<USAGE >&2

bin/elixir.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
22

3-
set ELIXIR_VERSION=1.13.0-dev
3+
set ELIXIR_VERSION=1.13.0-rc.0
44

55
setlocal enabledelayedexpansion
66
if ""%1""=="""" if ""%2""=="""" goto documentation

lib/elixir/lib/uri.ex

+1
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ defmodule URI do
671671
Also note this function sets the authority field, but the field has been
672672
deprecated and it is not set by `URI.new!/1` and `URI.new/1`.
673673
"""
674+
# TODO: Deprecate me at least on v1.17
674675
@doc deprecated: "Use URI.new/1 or URI.new!/1 instead"
675676
@spec parse(t | binary) :: t
676677
def parse(%URI{} = uri), do: uri

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ Elixir applies bug fixes only to the latest minor branch. Security patches are a
88

99
Elixir version | Support
1010
:------------- | :-----------------------------
11-
1.13 | Development
12-
1.12 | Bug fixes and security patches
11+
1.13 | Bug fixes and security patches
12+
1.12 | Security patches only
1313
1.11 | Security patches only
1414
1.10 | Security patches only
1515
1.9 | Security patches only
16-
1.8 | Security patches only
1716

1817
New releases are announced in the read-only [announcements mailing list](https://groups.google.com/group/elixir-lang-ann). All security releases [will be tagged with `[security]`](https://groups.google.com/forum/#!searchin/elixir-lang-ann/%5Bsecurity%5D%7Csort:date).
1918

0 commit comments

Comments
 (0)