Skip to content

Commit 37acf72

Browse files
committed
Update Dart Sass version and release
1 parent 8e7a23a commit 37acf72

File tree

10 files changed

+62
-30
lines changed

10 files changed

+62
-30
lines changed

CHANGELOG.md

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
## 1.68.0
2+
3+
* Fix the source spans associated with the `abs-percent` deprecation.
4+
5+
### JS API
6+
7+
* Non-filesystem importers can now set the `nonCanonicalScheme` field, which
8+
declares that one or more URL schemes (without `:`) will never be used for
9+
URLs returned by the `canonicalize()` method.
10+
11+
* Add a `containingUrl` field to the `canonicalize()` and `findFileUrl()`
12+
methods of importers, which is set to the canonical URL of the stylesheet that
13+
contains the current load. For filesystem importers, this is always set; for
14+
other importers, it's set only if the current load has no URL scheme, or if
15+
its URL scheme is declared as non-canonical by the importer.
16+
17+
### Dart API
18+
19+
* Add `AsyncImporter.isNonCanonicalScheme`, which importers (async or sync) can
20+
use to indicate that a certain URL scheme will never be used for URLs returned
21+
by the `canonicalize()` method.
22+
23+
* Add `AsyncImporter.containingUrl`, which is set during calls to the
24+
`canonicalize()` method to the canonical URL of the stylesheet that contains
25+
the current load. This is set only if the current load has no URL scheme, or
26+
if its URL scheme is declared as non-canonical by the importer.
27+
28+
### Embedded Sass
29+
30+
* The `CalculationValue.interpolation` field is deprecated and will be removed
31+
in a future version. It will no longer be set by the compiler, and if the host
32+
sets it it will be treated as equivalent to `CalculationValue.string` except
33+
that `"("` and `")"` will be added to the beginning and end of the string
34+
values.
35+
36+
* Properly include TypeScript types in the `sass-embedded` package.
37+
138
## 1.67.0
239

340
* All functions defined in CSS Values and Units 4 are now once again parsed as
@@ -13,18 +50,13 @@
1350
CSS calculations (including `abs()`, `min()`, `max()`, and `round()` whose
1451
names overlap with global Sass functions).
1552

16-
* As a consequence of the change in calculation parsing described above,
17-
calculation functions containing interpolation are now parsed more strictly
18-
than before. However, all interpolations that would have produced valid CSS
19-
will continue to work, so this is not considered a breaking change.
20-
21-
* Interpolations in calculation functions that aren't used in a position that
22-
could also have a normal calculation value are now deprecated. For example,
23-
`calc(1px #{"+ 2px"})` is deprecated, but `calc(1px + #{"2px"})` is still
24-
allowed. This deprecation is named `calc-interp`. See [the Sass website] for
25-
more information.
26-
27-
[the Sass website]: https://sass-lang.com/d/calc-interp
53+
* **Breaking change**: As a consequence of the change in calculation parsing
54+
described above, calculation functions containing interpolation are now parsed
55+
more strictly than before. However, _almost_ all interpolations that would
56+
have produced valid CSS will continue to work. The only exception is
57+
`#{$variable}%` which is not valid in Sass and is no longer valid in
58+
calculations. Instead of this, either use `$variable` directly and ensure it
59+
already has the `%` unit, or write `($variable * 1%)`.
2860

2961
* **Potentially breaking bug fix**: The importer used to load a given file is no
3062
longer used to load absolute URLs that appear in that file. This was

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-darwin-arm64",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The darwin-arm64 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-darwin-x64",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The darwin-x64 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/linux-arm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-linux-arm",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The linux-arm binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-linux-arm64",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The linux-arm64 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/linux-ia32/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-linux-ia32",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The linux-ia32 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-linux-x64",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The linux-x64 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/win32-ia32/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-win32-ia32",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The win32-ia32 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

npm/win32-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sass-embedded-win32-x64",
3-
"version": "1.67.0",
3+
"version": "1.68.0",
44
"description": "The win32-x64 binary for sass-embedded",
55
"repository": "sass/embedded-host-node",
66
"author": "Google Inc.",

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "sass-embedded",
3-
"version": "1.67.1-dev",
3+
"version": "1.68.0",
44
"protocol-version": "2.1.0",
5-
"compiler-version": "1.67.0",
5+
"compiler-version": "1.68.0",
66
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
77
"repository": "sass/embedded-host-node",
88
"author": "Google Inc.",
@@ -35,14 +35,14 @@
3535
"test": "jest"
3636
},
3737
"optionalDependencies": {
38-
"sass-embedded-darwin-arm64": "1.67.0",
39-
"sass-embedded-darwin-x64": "1.67.0",
40-
"sass-embedded-linux-arm": "1.67.0",
41-
"sass-embedded-linux-arm64": "1.67.0",
42-
"sass-embedded-linux-ia32": "1.67.0",
43-
"sass-embedded-linux-x64": "1.67.0",
44-
"sass-embedded-win32-ia32": "1.67.0",
45-
"sass-embedded-win32-x64": "1.67.0"
38+
"sass-embedded-darwin-arm64": "1.68.0",
39+
"sass-embedded-darwin-x64": "1.68.0",
40+
"sass-embedded-linux-arm": "1.68.0",
41+
"sass-embedded-linux-arm64": "1.68.0",
42+
"sass-embedded-linux-ia32": "1.68.0",
43+
"sass-embedded-linux-x64": "1.68.0",
44+
"sass-embedded-win32-ia32": "1.68.0",
45+
"sass-embedded-win32-x64": "1.68.0"
4646
},
4747
"dependencies": {
4848
"@bufbuild/protobuf": "^1.0.0",

0 commit comments

Comments
 (0)