This repository was archived by the owner on Jul 2, 2024. It is now read-only.
chore(deps): update dependency sass to ^1.77.6 #8964
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.43.4->^1.77.6Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
sass/dart-sass (sass)
v1.77.6Compare Source
between the end of Sass statements and the following semicolon.
v1.77.5Compare Source
@extend.v1.77.4Compare Source
Embedded Sass
Support passing
Versioninput forfatalDeprecationsas string overembedded protocol.
Fix a bug in the JS Embedded Host where
Versioncould be incorrectly acceptedas input for
silenceDeprecationsandfutureDeprecationsin pure JS.v1.77.3Compare Source
Dart API
Deprecation.duplicateVariableFlagshas been deprecated and replaced withDeprecation.duplicateVarFlagsto make it consistent with theduplicate-var-flagsname used on the command line and in the JS API.v1.77.2Compare Source
Don't emit deprecation warnings for functions and mixins beginning with
__.Allow user-defined functions whose names begin with
_and otherwise looklike vendor-prefixed functions with special CSS syntax.
Command-Line Interface
Properly handle the
--silence-deprecationflag.Handle the
--fatal-deprecationand--future-deprecationflags for--interactivemode.v1.77.1Compare Source
v1.77.0Compare Source
v1.76.0Compare Source
Throw errors for misplaced statements in keyframe blocks.
Mixins and functions whose names begin with
--are now deprecated forforwards-compatibility with the in-progress CSS functions and mixins spec.
This deprecation is named
css-function-mixin.v1.75.0Compare Source
when custom importers or the Node.js package importer made decisions based on
the URL of the containing stylesheet.
JS API
importerto be passed withouturlinStringOptionsWithImporter.v1.74.1Compare Source
v1.72.0Compare Source
Support adjacent
/s without whitespace in between when parsing plain CSSexpressions.
Allow the Node.js
pkg:importer to load Sass stylesheets forpackage.jsonexportsfield entries without extensions.When printing suggestions for variables, use underscores in variable names
when the original usage used underscores.
JavaScript API
pkg:imports with the Node.js package importer whenarguments are passed to the JavaScript process.
v1.71.1Compare Source
Command-Line Interface
JavaScript API
Export the
NodePackageImporterclass in ESM mode.Allow
NodePackageImporterto locate a default directory even when theentrypoint is an ESM module.
Dart API
NodePackageImporter()a static error ratherthan just a runtime error.
Embedded Sass
when running on musl Linux.
v1.71.0Compare Source
For more information about
pkg:importers, see theannouncement on the Sass blog.
Command-Line Interface
--pkg-importerflag to enable built-inpkg:importers. Currentlythis only supports the Node.js package resolution algorithm, via
--pkg-importer=node. For example,@use "pkg:bootstrap"will loadnode_modules/bootstrap/scss/bootstrap.scss.JavaScript API
NodePackageImporterimporter that can be passed to theimportersoption. This loads files using the
pkg:URL scheme according to the Node.jspackage resolution algorithm. For example,
@use "pkg:bootstrap"will loadnode_modules/bootstrap/scss/bootstrap.scss. The constructor takes a singleoptional argument, which indicates the base directory to use when locating
node_modulesdirectories. It defaults topath.dirname(require.main.filename).Dart API
NodePackageImporterimporter that can be passed to theimportersoption. This loads files using the
pkg:URL scheme according to the Node.jspackage resolution algorithm. For example,
@use "pkg:bootstrap"will loadnode_modules/bootstrap/scss/bootstrap.scss. The constructor takes a singleargument, which indicates the base directory to use when locating
node_modulesdirectories.v1.70.0Compare Source
JavaScript API
Add a
sass.initCompiler()function that returns asass.Compilerobjectwhich supports
compile()andcompileString()methods with the same API asthe global Sass object. On the Node.js embedded host, each
sass.Compilerobject uses a single long-lived subprocess, making compiling multiple
stylesheets much more efficient.
Add a
sass.initAsyncCompiler()function that returns asass.AsyncCompilerobject which supports
compileAsync()andcompileStringAsync()methods withthe same API as the global Sass object. On the Node.js embedded host, each
sass.AsynCompilerobject uses a single long-lived subprocess, makingcompiling multiple stylesheets much more efficient.
Embedded Sass
Support the
CompileRequest.silentfield. This allows compilations with nologging to avoid unnecessary request/response cycles.
The Dart Sass embedded compiler now reports its name as "dart-sass" rather
than "Dart Sass", to match the JS API's
infofield.v1.69.7Compare Source
Embedded Sass
ARM64 Windows.
v1.69.6Compare Source
Produce better output for numbers with complex units in
meta.inspect()anddebugging messages.
Escape U+007F DELETE when serializing strings.
When generating CSS error messages to display in-browser, escape all code
points that aren't in the US-ASCII region. Previously only code points U+0100
LATIN CAPITAL LETTER A WITH MACRON were escaped.
Provide official releases for musl LibC and for Android.
Don't crash when running
meta.apply()in asynchronous mode.JS API
SourceSpans that didn'tfollow the documented
SourceSpanAPI.v1.69.5Compare Source
JS API
v1.69.4Compare Source
v1.69.3Compare Source
Embedded Sass
package.json.v1.69.2Compare Source
JS API
variable named
process.v1.69.1Compare Source
v1.69.0Compare Source
Add a
meta.get-mixin()function that returns a mixin as a first-class Sassvalue.
Add a
meta.apply()mixin that includes a mixin value.Add a
meta.module-mixins()function which returns a map from mixin names ina module to the first-class mixins that belong to those names.
Add a
meta.accepts-content()function which returns whether or not a mixinvalue can take a content block.
Add support for the relative color syntax from CSS Color 5. This syntax
cannot be used to create Sass color values. It is always emitted as-is in the
CSS output.
Dart API
Deprecation.calcInterpsince it was never actually emitted as adeprecation.
Embedded Sass
protocol error was immediately followed by another request.
v1.68.0Compare Source
abs-percentdeprecation.JS API
Non-filesystem importers can now set the
nonCanonicalSchemefield, whichdeclares that one or more URL schemes (without
:) will never be used forURLs returned by the
canonicalize()method.Add a
containingUrlfield to thecanonicalize()andfindFileUrl()methods of importers, which is set to the canonical URL of the stylesheet that
contains the current load. For filesystem importers, this is always set; for
other importers, it's set only if the current load has no URL scheme, or if
its URL scheme is declared as non-canonical by the importer.
Dart API
Add
AsyncImporter.isNonCanonicalScheme, which importers (async or sync) canuse to indicate that a certain URL scheme will never be used for URLs returned
by the
canonicalize()method.Add
AsyncImporter.containingUrl, which is set during calls to thecanonicalize()method to the canonical URL of the stylesheet that containsthe current load. This is set only if the current load has no URL scheme, or
if its URL scheme is declared as non-canonical by the importer.
Embedded Sass
The
CalculationValue.interpolationfield is deprecated and will be removedin a future version. It will no longer be set by the compiler, and if the host
sets it it will be treated as equivalent to
CalculationValue.stringexceptthat
"("and")"will be added to the beginning and end of the stringvalues.
Properly include TypeScript types in the
sass-embeddedpackage.v1.67.0Compare Source
All functions defined in CSS Values and Units 4 are now once again parsed as
calculation objects:
round(),mod(),rem(),sin(),cos(),tan(),asin(),acos(),atan(),atan2(),pow(),sqrt(),hypot(),log(),exp(),abs(), andsign().Unlike in 1.65.0, function calls are not locked into being parsed as
calculations or plain Sass functions at parse-time. This means that
user-defined functions will take precedence over CSS calculations of the same
name. Although the function names
calc()andclamp()are still forbidden,users may continue to freely define functions whose names overlap with other
CSS calculations (including
abs(),min(),max(), andround()whosenames overlap with global Sass functions).
Breaking change: As a consequence of the change in calculation parsing
described above, calculation functions containing interpolation are now parsed
more strictly than before. However, almost all interpolations that would
have produced valid CSS will continue to work. The only exception is
#{$variable}%which is not valid in Sass and is no longer valid incalculations. Instead of this, either use
$variabledirectly and ensure italready has the
%unit, or write($variable * 1%).Potentially breaking bug fix: The importer used to load a given file is no
longer used to load absolute URLs that appear in that file. This was
unintented behavior that contradicted the Sass specification. Absolute URLs
will now correctly be loaded only from the global importer list. This applies
to the modern JS API, the Dart API, and the embedded protocol.
Embedded Sass
files or files that require many importer or function call round-trips with
the embedded host.
v1.66.1Compare Source
JS API
callback that threw a string, boolean, number, symbol, or bignum.
v1.66.0Compare Source
Breaking change: Drop support for the additional CSS calculations defined
in CSS Values and Units 4. Custom Sass functions whose names overlapped with
these new CSS functions were being parsed as CSS calculations instead, causing
an unintentional breaking change outside our normal [compatibility policy] for
CSS compatibility changes.
Support will be added again in a future version, but only after Sass has
emitted a deprecation warning for all functions that will break for at least
three months prior to the breakage.
v1.65.1Compare Source
1.65.0.v1.65.0Compare Source
All functions defined in CSS Values and Units 4 are now parsed as calculation
objects:
round(),mod(),rem(),sin(),cos(),tan(),asin(),acos(),atan(),atan2(),pow(),sqrt(),hypot(),log(),exp(),abs(), andsign().Deprecate explicitly passing the
%unit to the globalabs()function. Infuture releases, this will emit a CSS abs() function to be resolved by the
browser. This deprecation is named
abs-percent.v1.64.2Compare Source
v1.64.1Compare Source
Embedded Sass
SassCalculation.clamp()with less than 3 argumentswould throw an error.
v1.64.0Compare Source
Comments that appear before or between
@useand@forwardrules are nowemitted in source order as much as possible, instead of always being emitted
after the CSS of all module dependencies.
Fix a bug where an interpolation in a custom property name crashed if the file
was loaded by a
@usenested in an@import.JavaScript API
Add a new
SassCalculationtype that represents the calculation objects addedin Dart Sass 1.40.0.
Add
Value.assertCalculation(), which returns the value if it's aSassCalculationand throws an error otherwise.Produce a better error message when an environment that supports some Node.js
APIs loads the browser entrypoint but attempts to access the filesystem.
Embedded Sass
@importsfailed to load when using thedeprecated functions
renderorrenderSyncand those relative imports wereloaded multiple times across different files.
v1.63.6Compare Source
JavaScript API
import sass from 'sass'again after it was broken in the last release.Embedded Sass
exportsdeclaration inpackage.json.v1.63.5Compare Source
JavaScript API
require()and ESMimportcould crash on Node.js.Embedded Sass
Fix a deadlock when running at high concurrency on 32-bit systems.
Fix a race condition where the embedded compiler could deadlock or crash if a
compilation ID was reused immediately after the compilation completed.
v1.63.4Compare Source
JavaScript API
Re-enable support for
import sass from 'sass'when loading the package froman ESM module in Node.js. However, this syntax is now deprecated; ESM users
should use
import * as sass from 'sass'instead.On the browser and other ESM-only platforms, only
import * as sass from 'sass'is supported.Properly export the legacy API values
TRUE,FALSE,NULL, andtypesfromthe ECMAScript module API.
Embedded Sass
Fix a race condition where closing standard input while requests are in-flight
could sometimes cause the process to hang rather than shutting down
gracefully.
Properly include the root stylesheet's URL in the set of loaded URLs when it
fails to parse.
v1.63.3Compare Source
JavaScript API
v1.63.2Compare Source
v1.63.1Compare Source
v1.63.0Compare Source
JavaScript API
instructions for use are in the README.
Embedded Sass
The Dart Sass embedded compiler is now included as part of the primary Dart
Sass distribution, rather than a separate executable. To use the embedded
compiler, just run
sass --embeddedfrom any Sass executable (other than thepure JS executable).
The Node.js embedded host will still be distributed as the
sass-embeddedpackage on npm. The only change is that it will now provide direct access to a
sassexecutable with the same CLI as thesasspackage.The Dart Sass embedded compiler now uses version 2.0.0 of the Sass embedded
protocol. See the spec for a full description of the
protocol, and the changelog for a summary of
changes since version 1.2.0.
The Dart Sass embedded compiler now runs multiple simultaneous compilations in
parallel, rather than serially.
v1.62.1Compare Source
:has(+ &)and related constructs would drop the leadingcombinator.
v1.62.0Compare Source
Deprecate the use of multiple
!globalor!defaultflags on the samevariable. This deprecation is named
duplicate-var-flags.Allow special numbers like
var()orcalc()in the global functions:grayscale(),invert(),saturate(), andopacity(). These are alsonative CSS
filterfunctions. This is in addition to number values which werealready allowed.
Fix a cosmetic bug where an outer rule could be duplicated after nesting was
resolved, instead of re-using a shared rule.
v1.61.0Compare Source
Potentially breaking change: Drop support for End-of-Life Node.js 12.
Fix remaining cases for the performance regression introduced in 1.59.0.
Embedded Sass
legacy API.
v1.60.0Compare Source
Add support for the
pi,e,infinity,-infinity, andNaNconstants incalculations. These will be interpreted as the corresponding numbers.
Add support for unknown constants in calculations. These will be interpreted
as unquoted strings.
Serialize numbers with value
infinity,-infinity, andNaNtocalc()expressions rather than CSS-invalid identifiers. Numbers with complex units
still can't be serialized.
v1.59.3Compare Source
Fix a performance regression introduced in 1.59.0.
The NPM release of 1.59.0 dropped support for Node 12 without actually
indicating so in its pubspec. This release temporarily adds back support so
that the latest Sass version that declares it supports Node 12 actually does
so. However, Node 12 is now end-of-life, so we will drop support for it
properly in an upcoming release.
v1.59.2Compare Source
v1.59.1Compare Source
v1.59.0Compare Source
Command Line Interface
Added a new
--fatal-deprecationflag that lets you treat a deprecationwarning as an error. You can pass an individual deprecation ID
(e.g.
slash-div) or you can pass a Dart Sass version to treat alldeprecations initially emitted in that version or earlier as errors.
New
--future-deprecationflag that lets you opt into warning for use ofcertain features that will be deprecated in the future. At the moment, the
only option is
--future-deprecation=import, which will emit warnings forSass
@importrules, which are not yet deprecated, but will be in the future.Dart API
New
Deprecationenum, which contains the different current and futuredeprecations used by the new CLI flags.
The
compilemethods now take infatalDeprecationsandfutureDeprecationsparameters, which work similarly to the CLI flags.
v1.58.3Compare Source
v1.58.2Compare Source
Command Line Interface
Add a timestamp to messages printed in
--watchmode.Print better
calc()-based suggestions for/-as-division expression thatcontain calculation-incompatible constructs like unary minus.
v1.58.1Compare Source
hsl()colors. Thedegunit isincompatible with IE, and while that officially falls outside our
compatibility policy, it's better to lean towards greater compatibility.
Configuration
📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.