From 37acf72ec0d5f39203c92dfcd9af2e8aee02a852 Mon Sep 17 00:00:00 2001 From: Sass Bot Date: Thu, 21 Sep 2023 01:14:40 +0000 Subject: [PATCH] Update Dart Sass version and release --- CHANGELOG.md | 56 +++++++++++++++++++++++++++-------- npm/darwin-arm64/package.json | 2 +- npm/darwin-x64/package.json | 2 +- npm/linux-arm/package.json | 2 +- npm/linux-arm64/package.json | 2 +- npm/linux-ia32/package.json | 2 +- npm/linux-x64/package.json | 2 +- npm/win32-ia32/package.json | 2 +- npm/win32-x64/package.json | 2 +- package.json | 20 ++++++------- 10 files changed, 62 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e828616a..e56a37ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +## 1.68.0 + +* Fix the source spans associated with the `abs-percent` deprecation. + +### JS API + +* Non-filesystem importers can now set the `nonCanonicalScheme` field, which + declares that one or more URL schemes (without `:`) will never be used for + URLs returned by the `canonicalize()` method. + +* Add a `containingUrl` field to the `canonicalize()` and `findFileUrl()` + 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) can + use 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 the + `canonicalize()` method to the canonical URL of the stylesheet that contains + the 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.interpolation` field is deprecated and will be removed + in 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.string` except + that `"("` and `")"` will be added to the beginning and end of the string + values. + +* Properly include TypeScript types in the `sass-embedded` package. + ## 1.67.0 * All functions defined in CSS Values and Units 4 are now once again parsed as @@ -13,18 +50,13 @@ CSS calculations (including `abs()`, `min()`, `max()`, and `round()` whose names overlap with global Sass functions). -* As a consequence of the change in calculation parsing described above, - calculation functions containing interpolation are now parsed more strictly - than before. However, all interpolations that would have produced valid CSS - will continue to work, so this is not considered a breaking change. - -* Interpolations in calculation functions that aren't used in a position that - could also have a normal calculation value are now deprecated. For example, - `calc(1px #{"+ 2px"})` is deprecated, but `calc(1px + #{"2px"})` is still - allowed. This deprecation is named `calc-interp`. See [the Sass website] for - more information. - - [the Sass website]: https://sass-lang.com/d/calc-interp +* **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 in + calculations. Instead of this, either use `$variable` directly and ensure it + already 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 diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 7ef98f92..2bd3811a 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-darwin-arm64", - "version": "1.67.0", + "version": "1.68.0", "description": "The darwin-arm64 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index bb0761b6..08d5ca1c 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-darwin-x64", - "version": "1.67.0", + "version": "1.68.0", "description": "The darwin-x64 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/linux-arm/package.json b/npm/linux-arm/package.json index 72b4db15..cdd33f03 100644 --- a/npm/linux-arm/package.json +++ b/npm/linux-arm/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-arm", - "version": "1.67.0", + "version": "1.68.0", "description": "The linux-arm binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/linux-arm64/package.json b/npm/linux-arm64/package.json index 1e6ad6d3..4719d518 100644 --- a/npm/linux-arm64/package.json +++ b/npm/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-arm64", - "version": "1.67.0", + "version": "1.68.0", "description": "The linux-arm64 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/linux-ia32/package.json b/npm/linux-ia32/package.json index 6bd14ee9..8d48cf15 100644 --- a/npm/linux-ia32/package.json +++ b/npm/linux-ia32/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-ia32", - "version": "1.67.0", + "version": "1.68.0", "description": "The linux-ia32 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/linux-x64/package.json b/npm/linux-x64/package.json index bc2b1ada..4bc67f55 100644 --- a/npm/linux-x64/package.json +++ b/npm/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-x64", - "version": "1.67.0", + "version": "1.68.0", "description": "The linux-x64 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/win32-ia32/package.json b/npm/win32-ia32/package.json index 89cf8f7f..4137c236 100644 --- a/npm/win32-ia32/package.json +++ b/npm/win32-ia32/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-win32-ia32", - "version": "1.67.0", + "version": "1.68.0", "description": "The win32-ia32 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/npm/win32-x64/package.json b/npm/win32-x64/package.json index bfc2df01..062fbdc1 100644 --- a/npm/win32-x64/package.json +++ b/npm/win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-win32-x64", - "version": "1.67.0", + "version": "1.68.0", "description": "The win32-x64 binary for sass-embedded", "repository": "sass/embedded-host-node", "author": "Google Inc.", diff --git a/package.json b/package.json index 6ae77ad2..587af699 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "sass-embedded", - "version": "1.67.1-dev", + "version": "1.68.0", "protocol-version": "2.1.0", - "compiler-version": "1.67.0", + "compiler-version": "1.68.0", "description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", "repository": "sass/embedded-host-node", "author": "Google Inc.", @@ -35,14 +35,14 @@ "test": "jest" }, "optionalDependencies": { - "sass-embedded-darwin-arm64": "1.67.0", - "sass-embedded-darwin-x64": "1.67.0", - "sass-embedded-linux-arm": "1.67.0", - "sass-embedded-linux-arm64": "1.67.0", - "sass-embedded-linux-ia32": "1.67.0", - "sass-embedded-linux-x64": "1.67.0", - "sass-embedded-win32-ia32": "1.67.0", - "sass-embedded-win32-x64": "1.67.0" + "sass-embedded-darwin-arm64": "1.68.0", + "sass-embedded-darwin-x64": "1.68.0", + "sass-embedded-linux-arm": "1.68.0", + "sass-embedded-linux-arm64": "1.68.0", + "sass-embedded-linux-ia32": "1.68.0", + "sass-embedded-linux-x64": "1.68.0", + "sass-embedded-win32-ia32": "1.68.0", + "sass-embedded-win32-x64": "1.68.0" }, "dependencies": { "@bufbuild/protobuf": "^1.0.0",