Skip to content

Commit 458d6e1

Browse files
Bump version to 0.4.0 and fill changelog
1 parent 1de251d commit 458d6e1

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
55

66
## [Unreleased]
77

8+
## [0.4.0] - 2023-03-05
9+
### Added
10+
- Add ability to parse literals with arbitrary suffixes (e.g. `"foo"bla` or `23px`)
11+
- Add `suffix()` method to all literal types except `BoolLit`
12+
- Add `IntegerBase::value`
13+
- Add `from_suffix` and `suffix` methods to `FloatType` and `IntegerType`
14+
- Add `FromStr` and `Display` impls to `FloatType` and `IntegerType`
15+
16+
### Changed
17+
- **Breaking**: Mark `FloatType` and `IntegerType` as `#[non_exhaustive]`
18+
- **Breaking**: Fix integer parsing for cases like `27f32`. `Literal::parse`
19+
and `IntegerLit::parse` will both identify this as an integer literal.
20+
- **Breaking**: Fix float parsing by correctly rejecting inputs like `27f32`. A
21+
float literal must have a period OR an exponent part, according to the spec.
22+
Previously decimal integers were accepted in `FloatLit::parse`.
23+
- Improved some parts of the docs
24+
25+
### Removed
26+
- **Breaking**: Remove `OwnedLiteral` and `SharedLiteral`
27+
828
## [0.3.0] - 2022-12-19
929
### Breaking
1030
- Bump MSRV (minimal supported Rust version) to 1.54
@@ -68,7 +88,8 @@ All notable changes to this project will be documented in this file.
6888
- Everything
6989

7090

71-
[Unreleased]: https://github.com/LukasKalbertodt/litrs/compare/v0.3.0...HEAD
91+
[Unreleased]: https://github.com/LukasKalbertodt/litrs/compare/v0.4.0...HEAD
92+
[0.4.0]: https://github.com/LukasKalbertodt/litrs/compare/v0.3.0...v0.4.0
7293
[0.3.0]: https://github.com/LukasKalbertodt/litrs/compare/v0.2.3...v0.3.0
7394
[0.2.3]: https://github.com/LukasKalbertodt/litrs/compare/v0.2.2...v0.2.3
7495
[0.2.2]: https://github.com/LukasKalbertodt/litrs/compare/v0.2.1...v0.2.2

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "litrs"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Lukas Kalbertodt <[email protected]>"]
55
edition = "2018"
66
rust-version = "1.54"

0 commit comments

Comments
 (0)