Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.11.0 #304

Merged
merged 2 commits into from
Nov 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion codespan-lsp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions codespan-lsp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
description = "Conversions between codespan types and Language Server Protocol types"
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions codespan-reporting/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ 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.
The number of lines rendered at beginning and end is configurable separately.
- 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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion codespan-reporting/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down
6 changes: 3 additions & 3 deletions codespan-reporting/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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<FileId> {
/// The style of the label.
Expand Down Expand Up @@ -114,7 +114,7 @@ impl<FileId> Label<FileId> {
/// 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<FileId> {
/// The overall severity of the diagnostic
Expand Down
13 changes: 11 additions & 2 deletions codespan/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions codespan/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand All @@ -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]
Expand Down