From 218d73c98294d7def90c992e02827aaf1bd41900 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 20 Jun 2020 22:02:16 -0400 Subject: [PATCH] bump version to 0.9.1 --- CHANGELOG.md | 1 + Cargo.toml | 2 +- README.md | 4 ++-- src/lib.rs | 7 +++++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 624e48f..268c7b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ This release is largely focused on `@extend`, but it also resolves some regressions resulting from the new parser. - **Implement `@extend`** - properly document new API + - MVP implementation of `@supports` - fix regression in which `@at-root` would panic when placed after a ruleset - fix regression related to `@mixin` and `@function` scoping when combined with outer, local variables - remove most remaining `unwrap`s that could result in a panic diff --git a/Cargo.toml b/Cargo.toml index aa831b9..a5c72b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grass" -version = "0.9.0" +version = "0.9.1" description = "A near-feature-complete Sass compiler written purely in Rust" readme = "README.md" license = "MIT" diff --git a/README.md b/README.md index 25f31c7..3d3ae8a 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,8 @@ These numbers come from a default run of the Sass specification as shown above. ``` 2020-06-20 -PASSING: 2752 -FAILING: 2341 +PASSING: 2755 +FAILING: 2338 TOTAL: 5093 ``` diff --git a/src/lib.rs b/src/lib.rs index bcc1b7d..41a1087 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ Spec progress as of 2020-05-01: | Passing | Failing | Total | |---------|---------|-------| -| 2489 | 2604 | 5093 | +| 2755 | 2338 | 5093 | ## Use as library ``` @@ -222,6 +222,7 @@ pub fn from_string(p: String) -> Result { #[cfg(feature = "wasm")] #[wasm_bindgen] pub fn from_string(p: String) -> std::result::Result { + let mut extender = Extender::new(); let mut map = CodeMap::new(); let file = map.add_file("stdin".into(), p); Ok(Css::from_stmts( @@ -242,11 +243,13 @@ pub fn from_string(p: String) -> std::result::Result { in_control_flow: false, at_root: true, at_root_has_selector: false, + extender: &mut extender, } .parse() .map_err(|e| raw_to_parse_error(&map, e).to_string())?, + &mut extender, ) .map_err(|e| raw_to_parse_error(&map, e).to_string())? - .pretty_print(&map) + .pretty_print(&map, &mut extender) .map_err(|e| raw_to_parse_error(&map, e).to_string())?) }