From 48439cbf166440cc4855ee4b4df08e4b9e690843 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Mon, 18 May 2020 15:59:35 +1000 Subject: [PATCH] Bump cargo version to v0.9.4 --- codespan-lsp/CHANGELOG.md | 9 ++++++--- codespan-lsp/Cargo.toml | 4 ++-- codespan-reporting/CHANGELOG.md | 35 ++++++++++++++++++++++++++++++++- codespan-reporting/Cargo.toml | 2 +- codespan/CHANGELOG.md | 5 +++-- codespan/Cargo.toml | 4 ++-- 6 files changed, 48 insertions(+), 11 deletions(-) diff --git a/codespan-lsp/CHANGELOG.md b/codespan-lsp/CHANGELOG.md index 8152580..73b8541 100644 --- a/codespan-lsp/CHANGELOG.md +++ b/codespan-lsp/CHANGELOG.md @@ -7,15 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.4] - 2020-05-18 + ## [0.9.3] - 2020-04-29 +### Changed + - The `lsp-types` dependency was updated to use a version range: `>=0.70,<0.75`, which includes the latest updates in `0.74.0`. ## [0.9.2] - 2020-03-29 - ## [0.9.1] - 2020-03-23 - ## [0.9.0] - 2020-03-11 ### Changed @@ -40,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.2.1] - 2019-02-26 ## [0.2.0] - 2018-10-11 -[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.3...HEAD +[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.4...HEAD +[0.9.4]: https://github.com/brendanzab/codespan/compare/v0.9.3...v0.9.4 [0.9.3]: https://github.com/brendanzab/codespan/compare/v0.9.2...v0.9.3 [0.9.2]: https://github.com/brendanzab/codespan/compare/v0.9.1...v0.9.2 [0.9.1]: https://github.com/brendanzab/codespan/compare/v0.9.0...v0.9.1 diff --git a/codespan-lsp/Cargo.toml b/codespan-lsp/Cargo.toml index e59bc9c..a8d68de 100644 --- a/codespan-lsp/Cargo.toml +++ b/codespan-lsp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan-lsp" -version = "0.9.3" +version = "0.9.4" license = "Apache-2.0" authors = ["Markus Westerlind "] description = "Conversions between codespan types and Language Server Protocol types" @@ -10,7 +10,7 @@ documentation = "https://docs.rs/codespan-lsp" edition = "2018" [dependencies] -codespan = { version = "0.9.3", path = "../codespan" } +codespan = { version = "0.9.4", path = "../codespan" } # WARNING: Be extremely careful when expanding this version range. # We should be confident that all of the uses of `lsp-types` in `codespan-lsp` # will be valid for all the versions in this range. Getting this range wrong diff --git a/codespan-reporting/CHANGELOG.md b/codespan-reporting/CHANGELOG.md index 93532b5..21edb51 100644 --- a/codespan-reporting/CHANGELOG.md +++ b/codespan-reporting/CHANGELOG.md @@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.4] - 2020-05-18 + +### Changed + +- We have made the caret rendering easier to read when there are multiple + labels on the same line. We also avoid printing trailing borders on the + final source source snippet if no notes are present. Instead of this: + ``` + ┌─ one_line.rs:3:5 + │ + 3 │ v.push(v.pop().unwrap()); + │ - first borrow later used by call + │ ---- first mutable borrow occurs here + │ ^ second mutable borrow occurs here + │ + ``` + …we now render the following: + ``` + ┌─ one_line.rs:3:5 + │ + 3 │ v.push(v.pop().unwrap()); + │ - ---- ^ second mutable borrow occurs here + │ │ │ + │ │ first mutable borrow occurs here + │ first borrow later used by call + ``` + +### Fixed + +- Diagnostic rendering no longer panics if label ranges are between UTF-8 + character boundaries. + ## [0.9.3] - 2020-04-29 ### Changed @@ -206,7 +238,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.2.1] - 2019-02-26 ## [0.2.0] - 2018-10-11 -[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.3...HEAD +[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.4...HEAD +[0.9.4]: https://github.com/brendanzab/codespan/compare/v0.9.3...v0.9.4 [0.9.3]: https://github.com/brendanzab/codespan/compare/v0.9.2...v0.9.3 [0.9.2]: https://github.com/brendanzab/codespan/compare/v0.9.1...v0.9.2 [0.9.1]: https://github.com/brendanzab/codespan/compare/v0.9.0...v0.9.1 diff --git a/codespan-reporting/Cargo.toml b/codespan-reporting/Cargo.toml index f7bb15f..b31b294 100644 --- a/codespan-reporting/Cargo.toml +++ b/codespan-reporting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan-reporting" -version = "0.9.3" +version = "0.9.4" readme = "../README.md" license = "Apache-2.0" authors = ["Brendan Zabarauskas "] diff --git a/codespan/CHANGELOG.md b/codespan/CHANGELOG.md index e2ccfed..1b4f501 100644 --- a/codespan/CHANGELOG.md +++ b/codespan/CHANGELOG.md @@ -7,8 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.4] - 2020-05-18 ## [0.9.3] - 2020-04-29 - ## [0.9.2] - 2020-03-29 ## [0.9.1] - 2020-03-23 @@ -35,7 +35,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.2.1] - 2019-02-26 ## [0.2.0] - 2018-10-11 -[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.3...HEAD +[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.4...HEAD +[0.9.4]: https://github.com/brendanzab/codespan/compare/v0.9.3...v0.9.4 [0.9.3]: https://github.com/brendanzab/codespan/compare/v0.9.2...v0.9.3 [0.9.2]: https://github.com/brendanzab/codespan/compare/v0.9.1...v0.9.2 [0.9.1]: https://github.com/brendanzab/codespan/compare/v0.9.0...v0.9.1 diff --git a/codespan/Cargo.toml b/codespan/Cargo.toml index fd724d8..a6fea3f 100644 --- a/codespan/Cargo.toml +++ b/codespan/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan" -version = "0.9.3" +version = "0.9.4" readme = "README.md" license = "Apache-2.0" authors = ["Brendan Zabarauskas "] @@ -11,7 +11,7 @@ documentation = "https://docs.rs/codespan" edition = "2018" [dependencies] -codespan-reporting = { path = "../codespan-reporting", version = "0.9.3", optional = true } +codespan-reporting = { path = "../codespan-reporting", version = "0.9.4", optional = true } serde = { version = "1", optional = true, features = ["derive"]} [features]