From 87e9568fb415f0fe7bebb00650a07d4059a2ef29 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 14:43:58 -0700 Subject: [PATCH 1/4] Bump gts from 4.0.1 to 5.0.0 (#242) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump gts from 4.0.1 to 5.0.0 Bumps [gts](https://github.com/google/gts) from 4.0.1 to 5.0.0. - [Release notes](https://github.com/google/gts/releases) - [Changelog](https://github.com/google/gts/blob/main/CHANGELOG.md) - [Commits](https://github.com/google/gts/compare/v4.0.1...v5.0.0) --- updated-dependencies: - dependency-name: gts dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * execute: npm run fix --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Israel Ortiz GarcĂ­a --- lib/src/message-transformer.ts | 2 +- lib/src/utils.ts | 2 +- lib/src/value/calculations.ts | 7 +++++-- package.json | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/src/message-transformer.ts b/lib/src/message-transformer.ts index 703b0c96..e7d00023 100644 --- a/lib/src/message-transformer.ts +++ b/lib/src/message-transformer.ts @@ -40,7 +40,7 @@ export class MessageTransformer { */ writeInboundMessage([compilationId, message]: [ number, - InboundMessage + InboundMessage, ]): void { const compilationIdLength = varint.encodingLength(compilationId); const encodedMessage = message.toBinary(); diff --git a/lib/src/utils.ts b/lib/src/utils.ts index 8b33b1f5..e3888cea 100644 --- a/lib/src/utils.ts +++ b/lib/src/utils.ts @@ -11,7 +11,7 @@ import {Syntax} from './vendor/sass'; export type PromiseOr< T, - sync extends 'sync' | 'async' = 'async' + sync extends 'sync' | 'async' = 'async', > = sync extends 'async' ? T | Promise : T; // A boolean type that's `true` if `sync` requires synchronous APIs only and diff --git a/lib/src/value/calculations.ts b/lib/src/value/calculations.ts index aa160e67..ce32f610 100644 --- a/lib/src/value/calculations.ts +++ b/lib/src/value/calculations.ts @@ -31,7 +31,10 @@ const isValidClampArg = (value: CalculationValue): boolean => export class SassCalculation extends Value { readonly arguments: List; - private constructor(readonly name: string, args: CalculationValueIterable) { + private constructor( + readonly name: string, + args: CalculationValueIterable + ) { super(); this.arguments = List(args); } @@ -93,7 +96,7 @@ export class SassCalculation extends Value { } const operators = ['+', '-', '*', '/'] as const; -export type CalculationOperator = typeof operators[number]; +export type CalculationOperator = (typeof operators)[number]; export class CalculationOperation implements ValueObject { constructor( diff --git a/package.json b/package.json index c7e90b74..637064aa 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "@types/yargs": "^17.0.4", "del": "^6.0.0", "extract-zip": "^2.0.1", - "gts": "^4.0.0", + "gts": "^5.0.0", "jest": "^29.4.1", "minipass": "7.0.2", "npm-run-all": "^4.1.5", From 1c69baab087e1808754df4f30388e5b8eb42a46a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:54:43 -0700 Subject: [PATCH 2/4] Bump minipass from 7.0.2 to 7.0.3 (#244) Bumps [minipass](https://github.com/isaacs/minipass) from 7.0.2 to 7.0.3. - [Changelog](https://github.com/isaacs/minipass/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/minipass/compare/v7.0.2...v7.0.3) --- updated-dependencies: - dependency-name: minipass dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 637064aa..5cf2c812 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "extract-zip": "^2.0.1", "gts": "^5.0.0", "jest": "^29.4.1", - "minipass": "7.0.2", + "minipass": "7.0.3", "npm-run-all": "^4.1.5", "shelljs": "^0.8.4", "source-map-js": "^1.0.2", From c77d44793cb79be28caff1dd0adf7d502f1d5058 Mon Sep 17 00:00:00 2001 From: Sass Bot Date: Thu, 17 Aug 2023 19:37:30 +0000 Subject: [PATCH 3/4] Update Dart Sass version and release --- CHANGELOG.md | 52 ++++++++++++++++++++++++++++++++++- 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, 69 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c81a93c..3270acbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,59 @@ -## 1.64.2 +## 1.66.0 + +* **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. + +## 1.65.1 + +* Update abs-percent deprecatedIn version to `1.65.0`. + +## 1.65.0 + +* 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()`, and `sign()`. + +* Deprecate explicitly passing the `%` unit to the global `abs()` function. In + future releases, this will emit a CSS abs() function to be resolved by the + browser. This deprecation is named `abs-percent`. + +## 1.64.3 ### Dart API +* Deprecate explicitly passing `null` as the alpha channel for + `SassColor.rgb()`, `SassColor.hsl()`, and `SassColor.hwb()`. Omitting the + `alpha` channel is still allowed. In future releases, `null` will be used to + indicate a [missing component]. This deprecation is named `null-alpha`. + + [missing component]: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#missing_color_components + * Include protocol buffer definitions when uploading the `sass` package to pub. +### JS API + +* Deprecate explicitly passing `null` as the alpha channel for `new + SassColor()`. Omitting the `alpha` channel or passing `undefined` for it is + still allowed. In future releases, `null` will be used to indicate a [missing + component]. This deprecation is named `null-alpha`. + + [missing component]: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#missing_color_components + + (Note that this was already prohibited by the TypeScript types, but in + practice prior to this `null` was treated as `1`.) + +## 1.64.2 + +* No user-visible changes. + ## 1.64.1 ### Embedded Sass diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 4bde48d2..8f316b69 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-darwin-arm64", - "version": "1.64.2", + "version": "1.66.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 2531813d..179f2561 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-darwin-x64", - "version": "1.64.2", + "version": "1.66.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 42779010..369db011 100644 --- a/npm/linux-arm/package.json +++ b/npm/linux-arm/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-arm", - "version": "1.64.2", + "version": "1.66.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 d5d17040..ce0553ee 100644 --- a/npm/linux-arm64/package.json +++ b/npm/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-arm64", - "version": "1.64.2", + "version": "1.66.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 b334ab9d..e4b3ca1a 100644 --- a/npm/linux-ia32/package.json +++ b/npm/linux-ia32/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-ia32", - "version": "1.64.2", + "version": "1.66.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 5bb0f833..602fcf3b 100644 --- a/npm/linux-x64/package.json +++ b/npm/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-x64", - "version": "1.64.2", + "version": "1.66.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 8620225d..6171000f 100644 --- a/npm/win32-ia32/package.json +++ b/npm/win32-ia32/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-win32-ia32", - "version": "1.64.2", + "version": "1.66.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 7ae36f8c..58d46f0f 100644 --- a/npm/win32-x64/package.json +++ b/npm/win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-win32-x64", - "version": "1.64.2", + "version": "1.66.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 5cf2c812..5f67da31 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "sass-embedded", - "version": "1.64.2", + "version": "1.66.0", "protocol-version": "2.1.0", - "compiler-version": "1.64.2", + "compiler-version": "1.66.0", "description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", "repository": "sass/embedded-host-node", "author": "Google Inc.", @@ -31,14 +31,14 @@ "test": "jest" }, "optionalDependencies": { - "sass-embedded-darwin-arm64": "1.64.2", - "sass-embedded-darwin-x64": "1.64.2", - "sass-embedded-linux-arm": "1.64.2", - "sass-embedded-linux-arm64": "1.64.2", - "sass-embedded-linux-ia32": "1.64.2", - "sass-embedded-linux-x64": "1.64.2", - "sass-embedded-win32-ia32": "1.64.2", - "sass-embedded-win32-x64": "1.64.2" + "sass-embedded-darwin-arm64": "1.66.0", + "sass-embedded-darwin-x64": "1.66.0", + "sass-embedded-linux-arm": "1.66.0", + "sass-embedded-linux-arm64": "1.66.0", + "sass-embedded-linux-ia32": "1.66.0", + "sass-embedded-linux-x64": "1.66.0", + "sass-embedded-win32-ia32": "1.66.0", + "sass-embedded-win32-x64": "1.66.0" }, "dependencies": { "@bufbuild/protobuf": "^1.0.0", From 489abd5c1cbdf1b9c53246b71bf10538ddf7e18b Mon Sep 17 00:00:00 2001 From: Sass Bot Date: Fri, 18 Aug 2023 22:10:08 +0000 Subject: [PATCH 4/4] Update Dart Sass version and release --- CHANGELOG.md | 7 +++++++ 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, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3270acbc..49739cdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.66.1 + +### JS API + +* Fix a bug where Sass compilation could crash in strict mode if passed a + callback that threw a string, boolean, number, symbol, or bignum. + ## 1.66.0 * **Breaking change:** Drop support for the additional CSS calculations defined diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 8f316b69..ef47479c 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-darwin-arm64", - "version": "1.66.0", + "version": "1.66.1", "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 179f2561..3cae9643 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-darwin-x64", - "version": "1.66.0", + "version": "1.66.1", "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 369db011..34901cc4 100644 --- a/npm/linux-arm/package.json +++ b/npm/linux-arm/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-arm", - "version": "1.66.0", + "version": "1.66.1", "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 ce0553ee..2ebc4d2c 100644 --- a/npm/linux-arm64/package.json +++ b/npm/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-arm64", - "version": "1.66.0", + "version": "1.66.1", "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 e4b3ca1a..31dbdf95 100644 --- a/npm/linux-ia32/package.json +++ b/npm/linux-ia32/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-ia32", - "version": "1.66.0", + "version": "1.66.1", "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 602fcf3b..64020198 100644 --- a/npm/linux-x64/package.json +++ b/npm/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-linux-x64", - "version": "1.66.0", + "version": "1.66.1", "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 6171000f..77d85e2e 100644 --- a/npm/win32-ia32/package.json +++ b/npm/win32-ia32/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-win32-ia32", - "version": "1.66.0", + "version": "1.66.1", "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 58d46f0f..ebdbaa90 100644 --- a/npm/win32-x64/package.json +++ b/npm/win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "sass-embedded-win32-x64", - "version": "1.66.0", + "version": "1.66.1", "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 5f67da31..b6d9cbac 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "sass-embedded", - "version": "1.66.0", + "version": "1.66.1", "protocol-version": "2.1.0", - "compiler-version": "1.66.0", + "compiler-version": "1.66.1", "description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol", "repository": "sass/embedded-host-node", "author": "Google Inc.", @@ -31,14 +31,14 @@ "test": "jest" }, "optionalDependencies": { - "sass-embedded-darwin-arm64": "1.66.0", - "sass-embedded-darwin-x64": "1.66.0", - "sass-embedded-linux-arm": "1.66.0", - "sass-embedded-linux-arm64": "1.66.0", - "sass-embedded-linux-ia32": "1.66.0", - "sass-embedded-linux-x64": "1.66.0", - "sass-embedded-win32-ia32": "1.66.0", - "sass-embedded-win32-x64": "1.66.0" + "sass-embedded-darwin-arm64": "1.66.1", + "sass-embedded-darwin-x64": "1.66.1", + "sass-embedded-linux-arm": "1.66.1", + "sass-embedded-linux-arm64": "1.66.1", + "sass-embedded-linux-ia32": "1.66.1", + "sass-embedded-linux-x64": "1.66.1", + "sass-embedded-win32-ia32": "1.66.1", + "sass-embedded-win32-x64": "1.66.1" }, "dependencies": { "@bufbuild/protobuf": "^1.0.0",