diff --git a/CHANGELOG.md b/CHANGELOG.md index abff9cd..4c469ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - no longer round output from `saturation(...)` function - improve handling of newlines inside and around `@media` - arglists can be equal to comma separated lists +- throw error for invalid uses of `@charset` +- more robustly parse `@else if`, allowing escaped and uppercase characters # 0.10.5 @@ -15,7 +17,7 @@ - support the HWB colorspace and builtin functions `color.hwb`, `color.blackness`, `color.whiteness` - `:is` pseudo selector is now considered an alias of `:matches` in `@extend` - support `$keys...` argument in `map.merge` -- `%` now implements the modulo operation, rather than finding the remainder. this mainly affects negative numbers +- `%` now implements the modulo operation, rather than finding the remainder. this largely affects negative numbers - fix parsing bug in which `/***/` in a selector would miss the closing `/` # 0.10.4 @@ -48,7 +50,7 @@ - support NaN in all contexts - add support for unicode ranges - recognize plain CSS imports beginning with `//`, e.g. `@import "//fonts.googleapis.com/css?family=Droid+Sans";` -- resolve integer overflows in `@for` when bounds were equal to `isize::MIN` and `isize::MAX` +- resolve integer overflows in `@for` when bounds were equal to `i32::MIN` and `i32::MAX` - allow quoted strings in default function arguments # 0.10.0 diff --git a/src/builtin/modules/meta.rs b/src/builtin/modules/meta.rs index fb0b1ab..d6cc9ee 100644 --- a/src/builtin/modules/meta.rs +++ b/src/builtin/modules/meta.rs @@ -19,7 +19,6 @@ fn load_css(mut args: CallArgs, parser: &mut Parser<'_>) -> SassResult let span = args.span(); - // todo: https://github.com/sass/dart-sass/issues/1054 let url = match args.get_err(0, "module")? { Value::String(s, ..) => s, v => { diff --git a/src/value/number/mod.rs b/src/value/number/mod.rs index 3fdf38a..35aff75 100644 --- a/src/value/number/mod.rs +++ b/src/value/number/mod.rs @@ -722,7 +722,6 @@ impl Rem for Number { fn rem(self, other: Self) -> Self { match self { Self::Small(val1) => match other { - // todo: checked_rem for ratio? Self::Small(val2) => { let tuple1: (i64, i64) = val1.into(); let tuple2: (i64, i64) = val2.into();