diff --git a/CHANGELOG.md b/CHANGELOG.md index af52130c..a1dbdc70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [Version 4.7.0](https://github.com/trishume/syntect/compare/v4.6.0...v4.7.0) (2021-12-25) + +- Lazy-load syntaxes to significantly improve startup time +- Replace lazycell with once_cell to fix crash on lazy initialization +- Remove `ContextId::new()` from public API to support lazy-loading of syntaxes +- Add `ScopeRangeIterator` +- Add CI check for Minimum Supported Rust Version. This is currently Rust 1.51. +- Make 'plist' dependency (used for loading themes) optional via new 'plist-load' feature +- Make looking up a syntax by extension use case-insensitive comparison +- Make from_dump_file() ~15% faster +- Blend alpha value on converting colors to ANSI color sequences +- Fix sample code in documentation to avoid double newlines +- Fix lots of build warnings and lints +- Add Criterion benchmarks for a whole syntect pipeline and for from_dump_file() + ## [Version 4.6.0](https://github.com/trishume/syntect/compare/v4.5.0...v4.6.0) (2021-08-01) - Add `html::line_tokens_to_classed_spans` to also take a mutable ScopeStack, deprecate `tokens_to_classed_spans`, to avoid panics and incorrect highlighting. diff --git a/Cargo.toml b/Cargo.toml index 6a9a7159..0ab586fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ keywords = ["syntax", "highlighting", "highlighter", "colouring", "parsing"] categories = ["parser-implementations", "parsing", "text-processing"] readme = "Readme.md" license = "MIT" -version = "4.6.0" # remember to update html_root_url +version = "4.7.0" # remember to update html_root_url authors = ["Tristan Hume "] edition = "2018" exclude = [ diff --git a/Readme.md b/Readme.md index 5ae42d0c..8a5a2eba 100644 --- a/Readme.md +++ b/Readme.md @@ -23,7 +23,7 @@ I consider this project mostly complete, I still maintain it and review PRs, but `syntect` is [available on crates.io](https://crates.io/crates/syntect). You can install it by adding this line to your `Cargo.toml`: ```toml -syntect = "4.4" +syntect = "4.7" ``` After that take a look at the [documentation](https://docs.rs/syntect) and the [examples](https://github.com/trishume/syntect/tree/master/examples). diff --git a/src/lib.rs b/src/lib.rs index 6ae5cea3..f06a52c5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,7 @@ //! [`parsing`]: parsing/index.html //! [`highlighting`]: highlighting/index.html -#![doc(html_root_url = "https://docs.rs/syntect/4.6.0")] +#![doc(html_root_url = "https://docs.rs/syntect/4.7.0")] #[macro_use] extern crate lazy_static;