diff --git a/codespan-lsp/CHANGELOG.md b/codespan-lsp/CHANGELOG.md index a9177c8..2d30802 100644 --- a/codespan-lsp/CHANGELOG.md +++ b/codespan-lsp/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.11.0] - 2020-11-30 + +There is now a [code of conduct](https://github.com/brendanzab/codespan/blob/master/CODE_OF_CONDUCT.md) +and a [contributing guide](https://github.com/brendanzab/codespan/blob/master/CONTRIBUTING.md). + ### Changed - The error type in `codespan-lsp` is replaced with the error type in the `codespan-reporting` crate. @@ -68,7 +73,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.10.1...HEAD +[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.11.0...HEAD +[0.11.0]: https://github.com/brendanzab/codespan/compare/v0.10.1..v0.11.0 [0.10.1]: https://github.com/brendanzab/codespan/compare/v0.10.0..v0.10.1 [0.10.0]: https://github.com/brendanzab/codespan/compare/v0.9.5...v0.10.0 [0.9.5]: https://github.com/brendanzab/codespan/compare/v0.9.4...v0.9.5 diff --git a/codespan-lsp/Cargo.toml b/codespan-lsp/Cargo.toml index 775aaa6..03b77f0 100644 --- a/codespan-lsp/Cargo.toml +++ b/codespan-lsp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan-lsp" -version = "0.10.2-alpha.0" +version = "0.11.0" 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-reporting = { version = "0.9.5", path = "../codespan-reporting" } +codespan-reporting = { version = "0.11.0", path = "../codespan-reporting" } # 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 5a887a2..da91f22 100644 --- a/codespan-reporting/CHANGELOG.md +++ b/codespan-reporting/CHANGELOG.md @@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.11.0] - 2020-11-30 + There is now a [code of conduct](https://github.com/brendanzab/codespan/blob/master/CODE_OF_CONDUCT.md) and a [contributing guide](https://github.com/brendanzab/codespan/blob/master/CONTRIBUTING.md). +Some versions were skipped to sync up with the `codespan-lsp` crate. The release +process has been changed so this should not happen again. + ### Added - If a label spans over multiple lines, not all lines are rendered. @@ -17,6 +22,7 @@ and a [contributing guide](https://github.com/brendanzab/codespan/blob/master/CO - There is now a custom error type. - There now is a medium rendering mode that is like the short rendering mode but also shows notes from the diagnostic. +- `PartialEq` and `Eq` implementations for the `diagnostic::{Diagnostic, Label, Severity}` types. ### Changed @@ -314,8 +320,9 @@ and a [contributing guide](https://github.com/brendanzab/codespan/blob/master/CO ## [0.2.1] - 2019-02-26 ## [0.2.0] - 2018-10-11 -[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.9.5...HEAD -[0.9.4]: https://github.com/brendanzab/codespan/compare/v0.9.4...v0.9.5 +[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.11.0...HEAD +[0.11.0]: https://github.com/brendanzab/codespan/compare/v0.9.5...v0.11.0 +[0.9.5]: https://github.com/brendanzab/codespan/compare/v0.9.4...v0.9.5 [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 diff --git a/codespan-reporting/Cargo.toml b/codespan-reporting/Cargo.toml index 1cb58da..0a6f79e 100644 --- a/codespan-reporting/Cargo.toml +++ b/codespan-reporting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan-reporting" -version = "0.9.5" +version = "0.11.0" readme = "../README.md" license = "Apache-2.0" authors = ["Brendan Zabarauskas "] diff --git a/codespan-reporting/src/diagnostic.rs b/codespan-reporting/src/diagnostic.rs index fe4ad5f..7dddcec 100644 --- a/codespan-reporting/src/diagnostic.rs +++ b/codespan-reporting/src/diagnostic.rs @@ -16,7 +16,7 @@ use std::ops::Range; /// assert!(Severity::Warning > Severity::Note); /// assert!(Severity::Note > Severity::Help); /// ``` -#[derive(Copy, Clone, PartialEq, Hash, Debug)] +#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] #[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))] pub enum Severity { /// An unexpected bug. @@ -60,7 +60,7 @@ pub enum LabelStyle { } /// A label describing an underlined region of code associated with a diagnostic. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq)] #[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))] pub struct Label { /// The style of the label. @@ -114,7 +114,7 @@ impl Label { /// warnings to the user. /// /// The position of a Diagnostic is considered to be the position of the [`Label`] that has the earliest starting position and has the highest style which appears in all the labels of the diagnostic. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq, Eq)] #[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))] pub struct Diagnostic { /// The overall severity of the diagnostic diff --git a/codespan/CHANGELOG.md b/codespan/CHANGELOG.md index 114d2ed..8bb9618 100644 --- a/codespan/CHANGELOG.md +++ b/codespan/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.11.0] - 2020-11-30 + +There is now a [code of conduct](https://github.com/brendanzab/codespan/blob/master/CODE_OF_CONDUCT.md) +and a [contributing guide](https://github.com/brendanzab/codespan/blob/master/CONTRIBUTING.md). + +Some versions were skipped to sync up with the `codespan-lsp` crate. The release +process has been changed so this should not happen again. + ### Changed - This crate now depends on `codespan-reporting` non-optionally @@ -51,8 +59,9 @@ 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.5...HEAD -[0.9.4]: https://github.com/brendanzab/codespan/compare/v0.9.4...v0.9.5 +[Unreleased]: https://github.com/brendanzab/codespan/compare/v0.11.0...HEAD +[0.11.0]: https://github.com/brendanzab/codespan/compare/v0.9.5...v0.11.0 +[0.9.5]: https://github.com/brendanzab/codespan/compare/v0.9.4...v0.9.5 [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 diff --git a/codespan/Cargo.toml b/codespan/Cargo.toml index ce6da66..348d076 100644 --- a/codespan/Cargo.toml +++ b/codespan/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "codespan" -version = "0.9.5" +version = "0.11.0" 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.5" } +codespan-reporting = { path = "../codespan-reporting", version = "0.11.0" } serde = { version = "1", optional = true, features = ["derive"]} [features]