Skip to content

Commit 2283c92

Browse files
committed
Update compiler version and release
1 parent 6330cd1 commit 2283c92

File tree

10 files changed

+60
-18
lines changed

10 files changed

+60
-18
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
## 1.55.0
2+
3+
* **Potentially breaking bug fix:** Sass numbers are now universally stored as
4+
64-bit floating-point numbers, rather than sometimes being stored as integers.
5+
This will generally make arithmetic with very large numbers more reliable and
6+
more consistent across platforms, but it does mean that numbers between nine
7+
quadrillion and nine quintillion will no longer be represented with full
8+
accuracy when compiling Sass on the Dart VM.
9+
10+
* **Potentially breaking bug fix:** Sass equality is now properly [transitive].
11+
Two numbers are now considered equal (after doing unit conversions) if they
12+
round to the same `1e-11`th. Previously, numbers were considered equal if they
13+
were within `1e-11` of one another, which led to some circumstances where `$a
14+
== $b` and `$b == $c` but `$a != $b`.
15+
16+
[transitive]: https://en.wikipedia.org/wiki/Transitive_property
17+
18+
* **Potentially breaking bug fix:** Various functions in `sass:math` no longer
19+
treat floating-point numbers that are very close (but not identical) to
20+
integers as integers. Instead, these functions now follow the floating-point
21+
specification exactly. For example, `math.pow(0.000000000001, -1)` now returns
22+
`1000000000000` instead of `Infinity`.
23+
24+
* Emit a deprecation warning for `$a -$b` and `$a +$b`, since these look like
25+
they could be unary operations but they're actually parsed as binary
26+
operations. Either explicitly write `$a - $b` or `$a (-$b)`. See
27+
https://sass-lang.com/d/strict-unary for more details.
28+
29+
### Dart API
30+
31+
* Add an optional `argumentName` parameter to `SassScriptException()` to make it
32+
easier to throw exceptions associated with particular argument names.
33+
34+
* Most APIs that previously returned `num` now return `double`. All APIs
35+
continue to _accept_ `num`, although in Dart 2.0.0 these APIs will be changed
36+
to accept only `double`.
37+
38+
### JS API
39+
40+
* Fix a bug in which certain warning spans would not have their properties
41+
accessible by the JS API.
42+
143
## 1.54.9
244

345
* Fix an incorrect span in certain `@media` query deprecation warnings.

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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.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.54.9",
3+
"version": "1.55.0",
44
"protocol-version": "1.1.0",
5-
"compiler-version": "1.54.9",
5+
"compiler-version": "1.55.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.",
@@ -27,14 +27,14 @@
2727
"test": "jest"
2828
},
2929
"optionalDependencies": {
30-
"sass-embedded-darwin-arm64": "1.54.9",
31-
"sass-embedded-darwin-x64": "1.54.9",
32-
"sass-embedded-linux-arm": "1.54.9",
33-
"sass-embedded-linux-arm64": "1.54.9",
34-
"sass-embedded-linux-ia32": "1.54.9",
35-
"sass-embedded-linux-x64": "1.54.9",
36-
"sass-embedded-win32-ia32": "1.54.9",
37-
"sass-embedded-win32-x64": "1.54.9"
30+
"sass-embedded-darwin-arm64": "1.55.0",
31+
"sass-embedded-darwin-x64": "1.55.0",
32+
"sass-embedded-linux-arm": "1.55.0",
33+
"sass-embedded-linux-arm64": "1.55.0",
34+
"sass-embedded-linux-ia32": "1.55.0",
35+
"sass-embedded-linux-x64": "1.55.0",
36+
"sass-embedded-win32-ia32": "1.55.0",
37+
"sass-embedded-win32-x64": "1.55.0"
3838
},
3939
"dependencies": {
4040
"buffer-builder": "^0.2.0",

0 commit comments

Comments
 (0)