From 92983a67a65e4b5fb2f0741e8183d8a538f70d69 Mon Sep 17 00:00:00 2001 From: Christoph Burgdorf Date: Tue, 28 Feb 2023 09:34:21 +0100 Subject: [PATCH] Compile release notes --- docs/src/release_notes.md | 44 ++++++++++++++++++++++++++++++++++++ newsfragments/803.feature.md | 20 ---------------- newsfragments/836.feature.md | 11 --------- 3 files changed, 44 insertions(+), 31 deletions(-) delete mode 100644 newsfragments/803.feature.md delete mode 100644 newsfragments/836.feature.md diff --git a/docs/src/release_notes.md b/docs/src/release_notes.md index 606cdf0f77..c89370876f 100644 --- a/docs/src/release_notes.md +++ b/docs/src/release_notes.md @@ -10,6 +10,50 @@ Fe is moving fast. Read up on all the latest improvements. **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.** [//]: # (towncrier release notes start) +## 0.21.0-alpha (2023-02-28) + + +### Features + + +- Support for `Self` type + + With this change `Self` (with capital `S`) can be used to refer + to the enclosing type in contracts, structs, impls and traits. + + E.g. + + ``` + trait Min { + fn min() -> Self; + } + + impl Min for u8 { + fn min() -> u8 { // Both `u8` or `Self` are valid here + return 0 + } + } + ``` + + Usage: `u8::min()` ([#803](https://github.com/ethereum/fe/issues/803)) +- Added `Min` and `Max` traits to the std library. + The std library implements the traits for all numeric types. + + Example + + ``` + use std::traits::{Min, Max} + ... + + assert u8::min() < u8::max() + ``` ([#836](https://github.com/ethereum/fe/issues/836)) + +- Upgraded underlying solc compiler to version `0.8.18` + +### Bugfixes + +- the release contains minor bugfixes + ## 0.20.0-alpha (2022-12-05) diff --git a/newsfragments/803.feature.md b/newsfragments/803.feature.md deleted file mode 100644 index f16207c3a6..0000000000 --- a/newsfragments/803.feature.md +++ /dev/null @@ -1,20 +0,0 @@ -Support for `Self` type - -With this change `Self` (with capital `S`) can be used to refer -to the enclosing type in contracts, structs, impls and traits. - -E.g. - -``` -trait Min { - fn min() -> Self; -} - -impl Min for u8 { - fn min() -> u8 { // Both `u8` or `Self` are valid here - return 0 - } -} -``` - -Usage: `u8::min()` diff --git a/newsfragments/836.feature.md b/newsfragments/836.feature.md deleted file mode 100644 index bbfd279614..0000000000 --- a/newsfragments/836.feature.md +++ /dev/null @@ -1,11 +0,0 @@ -Added `Min` and `Max` traits to the std library. -The std library implements the traits for all numeric types. - -Example - -``` -use std::traits::{Min, Max} -... - -assert u8::min() < u8::max() -```