To install Sass 1.36.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Dart API
Added compileToResult(), compileStringToResult(), compileToResultAsync(), and compileStringToResultAsync() methods. These are intended to replace the existing compile*() methods, which are now deprecated. Rather than returning a simple string, these return a CompileResult object, which will allow us to add additional information about the compilation without having to introduce further deprecations.
Instead of passing a sourceMaps callback to compile*(), pass sourceMaps: true to compile*ToResult() and access CompileResult.sourceMap.
The CompileResult object exposes a loadedUrls object which lists the canonical URLs accessed during a compilation. This information was previously unavailable except through the JS API.
To install Sass 1.35.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Potentially breaking bug fix: Properly throw an error for Unicode ranges that have too many ?s after hexadecimal digits, such as U+12345??.
Potentially breaking bug fix: Fixed a bug where certain local variable declarations nested within multiple @if statements would incorrectly override a global variable. It's unlikely that any real stylesheets were relying on this bug, but if so they can simply add !global to the variable declaration to preserve the old behavior.
Potentially breaking bug fix: Fix a bug where imports of root-relative URLs (those that begin with /) in @import rules would be passed to both Dart and JS importers as file: URLs.
Properly support selector lists for the $extendee argument to selector.extend() and selector.replace().
Fix an edge case where @extend wouldn't affect a selector within a pseudo-selector such as :is() that itself extended other selectors.
Fix a race condition where meta.load-css() could trigger an internal error when running in asynchronous mode.
Dart API
Use the @internal annotation to indicate which Value APIs are available for public use.
Added compileToResult(), compileStringToResult(),
compileToResultAsync(), and compileStringToResultAsync() methods. These
are intended to replace the existing compile*() methods, which are now
deprecated. Rather than returning a simple string, these return a
CompileResult object, which will allow us to add additional information
about the compilation without having to introduce further deprecations.
Instead of passing a sourceMaps callback to compile*(), pass
sourceMaps: true to compile*ToResult() and access
CompileResult.sourceMap.
The CompileResult object exposes a loadedUrls object which lists the
canonical URLs accessed during a compilation. This information was
previously unavailable except through the JS API.
1.35.2
Potentially breaking bug fix: Properly throw an error for Unicode ranges
that have too many ?s after hexadecimal digits, such as U+12345??.
Potentially breaking bug fix: Fixed a bug where certain local variable
declarations nested within multiple @if statements would incorrectly
override a global variable. It's unlikely that any real stylesheets were
relying on this bug, but if so they can simply add !global to the variable
declaration to preserve the old behavior.
Potentially breaking bug fix: Fix a bug where imports of root-relative
URLs (those that begin with /) in @import rules would be passed to
both Dart and JS importers as file: URLs.
Properly support selector lists for the $extendee argument to
selector.extend() and selector.replace().
Fix an edge case where @extend wouldn't affect a selector within a
pseudo-selector such as :is() that itself extended other selectors.
Fix a race condition where meta.load-css() could trigger an internal error
when running in asynchronous mode.
Dart API
Use the @internal annotation to indicate which Value APIs are available
for public use.
1.35.1
... (truncated)
Commits
87e93a1 Merge pull request #1398 from sass/compile-to-result
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps sass from 1.34.0 to 1.36.0.
Release notes
Sourced from sass's releases.
... (truncated)
Changelog
Sourced from sass's changelog.
... (truncated)
Commits
87e93a1
Merge pull request #1398 from sass/compile-to-result10ac094
Resynchronize5d65c11
Code review changescbd1f6e
Merge remote-tracking branch 'origin/main' into compile-to-result426277e
Cast value correctly inputIfAbsentAsync
(#1404)1565b9c
Rename includedUrls to loadedUrls558ca0a
Expose CompileResult publicly, along with methods that return it43b69e6
Change CompileResult.includedFiles to CompileResult.includedUrls0e42a09
Remove CompileResult.sourceFilesacdea51
Exclude build/ from static analysisDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)