Skip to content

Commit 92983a6

Browse files
committed
Compile release notes
1 parent f62afac commit 92983a6

File tree

3 files changed

+44
-31
lines changed

3 files changed

+44
-31
lines changed

docs/src/release_notes.md

+44
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,50 @@ Fe is moving fast. Read up on all the latest improvements.
1010
**WARNING: All Fe releases are alpha releases and only meant to share the development progress with developers and enthusiasts. It is NOT yet ready for production usage.**
1111

1212
[//]: # (towncrier release notes start)
13+
## 0.21.0-alpha (2023-02-28)
14+
15+
16+
### Features
17+
18+
19+
- Support for `Self` type
20+
21+
With this change `Self` (with capital `S`) can be used to refer
22+
to the enclosing type in contracts, structs, impls and traits.
23+
24+
E.g.
25+
26+
```
27+
trait Min {
28+
fn min() -> Self;
29+
}
30+
31+
impl Min for u8 {
32+
fn min() -> u8 { // Both `u8` or `Self` are valid here
33+
return 0
34+
}
35+
}
36+
```
37+
38+
Usage: `u8::min()` ([#803](https://github.com/ethereum/fe/issues/803))
39+
- Added `Min` and `Max` traits to the std library.
40+
The std library implements the traits for all numeric types.
41+
42+
Example
43+
44+
```
45+
use std::traits::{Min, Max}
46+
...
47+
48+
assert u8::min() < u8::max()
49+
``` ([#836](https://github.com/ethereum/fe/issues/836))
50+
51+
- Upgraded underlying solc compiler to version `0.8.18`
52+
53+
### Bugfixes
54+
55+
- the release contains minor bugfixes
56+
1357
## 0.20.0-alpha (2022-12-05)
1458
1559

newsfragments/803.feature.md

-20
This file was deleted.

newsfragments/836.feature.md

-11
This file was deleted.

0 commit comments

Comments
 (0)