bump version to 0.9.1
This commit is contained in:
parent
2d990a03bd
commit
218d73c982
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
@ -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<String> {
|
||||
#[cfg(feature = "wasm")]
|
||||
#[wasm_bindgen]
|
||||
pub fn from_string(p: String) -> std::result::Result<String, JsValue> {
|
||||
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<String, JsValue> {
|
||||
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())?)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user