bump version to 0.9.1

This commit is contained in:
ConnorSkees 2020-06-20 22:02:16 -04:00
parent 2d990a03bd
commit 218d73c982
4 changed files with 9 additions and 5 deletions

View File

@ -3,6 +3,7 @@
This release is largely focused on `@extend`, but it also resolves some regressions resulting from the new parser. This release is largely focused on `@extend`, but it also resolves some regressions resulting from the new parser.
- **Implement `@extend`** - **Implement `@extend`**
- properly document new API - properly document new API
- MVP implementation of `@supports`
- fix regression in which `@at-root` would panic when placed after a ruleset - 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 - 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 - remove most remaining `unwrap`s that could result in a panic

View File

@ -1,6 +1,6 @@
[package] [package]
name = "grass" name = "grass"
version = "0.9.0" version = "0.9.1"
description = "A near-feature-complete Sass compiler written purely in Rust" description = "A near-feature-complete Sass compiler written purely in Rust"
readme = "README.md" readme = "README.md"
license = "MIT" license = "MIT"

View File

@ -72,8 +72,8 @@ These numbers come from a default run of the Sass specification as shown above.
``` ```
2020-06-20 2020-06-20
PASSING: 2752 PASSING: 2755
FAILING: 2341 FAILING: 2338
TOTAL: 5093 TOTAL: 5093
``` ```

View File

@ -5,7 +5,7 @@ Spec progress as of 2020-05-01:
| Passing | Failing | Total | | Passing | Failing | Total |
|---------|---------|-------| |---------|---------|-------|
| 2489 | 2604 | 5093 | | 2755 | 2338 | 5093 |
## Use as library ## Use as library
``` ```
@ -222,6 +222,7 @@ pub fn from_string(p: String) -> Result<String> {
#[cfg(feature = "wasm")] #[cfg(feature = "wasm")]
#[wasm_bindgen] #[wasm_bindgen]
pub fn from_string(p: String) -> std::result::Result<String, JsValue> { pub fn from_string(p: String) -> std::result::Result<String, JsValue> {
let mut extender = Extender::new();
let mut map = CodeMap::new(); let mut map = CodeMap::new();
let file = map.add_file("stdin".into(), p); let file = map.add_file("stdin".into(), p);
Ok(Css::from_stmts( Ok(Css::from_stmts(
@ -242,11 +243,13 @@ pub fn from_string(p: String) -> std::result::Result<String, JsValue> {
in_control_flow: false, in_control_flow: false,
at_root: true, at_root: true,
at_root_has_selector: false, at_root_has_selector: false,
extender: &mut extender,
} }
.parse() .parse()
.map_err(|e| raw_to_parse_error(&map, e).to_string())?, .map_err(|e| raw_to_parse_error(&map, e).to_string())?,
&mut extender,
) )
.map_err(|e| raw_to_parse_error(&map, e).to_string())? .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())?) .map_err(|e| raw_to_parse_error(&map, e).to_string())?)
} }