sass-embedded 1.54.8 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
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
+
43
+ ## 1.54.9
44
+
45
+ * Fix an incorrect span in certain `@media` query deprecation warnings.
46
+
1
47
  ## 1.54.8
2
48
 
3
49
  * No user-visible changes.
@@ -27,7 +27,7 @@ exports.compilerPath = (() => {
27
27
  }
28
28
  throw new Error("Embedded Dart Sass couldn't find the embedded compiler executable. " +
29
29
  'Please make sure the optional dependency ' +
30
- 'sass-embedded-${process.platform}-${process.arch} is installed in ' +
30
+ `sass-embedded-${process.platform}-${process.arch} is installed in ` +
31
31
  'node_modules.');
32
32
  })();
33
33
  //# sourceMappingURL=compiler-path.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compiler-path.js","sourceRoot":"","sources":["../../../lib/src/compiler-path.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;;AAEvC,yBAAyB;AACzB,0BAA0B;AAC1B,mCAAyC;AAEzC,oDAAoD;AACvC,QAAA,YAAY,GAAG,CAAC,GAAG,EAAE;IAChC,IAAI;QACF,OAAO,OAAO,CAAC,OAAO,CACpB,iBAAiB,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,GAAG;YAClD,uCAAuC;YACvC,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAC/C,CAAC;KACH;IAAC,OAAO,CAAU,EAAE;QACnB,IAAI,CAAC,CAAC,IAAA,wBAAgB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,kBAAkB,CAAC,EAAE;YAC3D,MAAM,CAAC,CAAC;SACT;KACF;IAED,uBAAuB;IACvB,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,yBAAyB,CAAC,EAAE;QACxD,MAAM,UAAU,GAAG,CAAC,CAAC,OAAO,CAC1B,SAAS,EACT,IAAI,EACJ,wCACE,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAC1C,EAAE,CACH,CAAC;QAEF,IAAI,EAAE,CAAC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,OAAO,CAAC,IAAI,mBAAmB;QACpE,eAAe,CAClB,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC"}
package/dist/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "sass-embedded",
3
- "version": "1.54.8",
3
+ "version": "1.55.0",
4
4
  "protocol-version": "1.1.0",
5
- "compiler-version": "1.54.8",
5
+ "compiler-version": "1.55.0",
6
6
  "description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
7
7
  "repository": "sass/embedded-host-node",
8
8
  "author": "Google Inc.",
@@ -10,8 +10,7 @@
10
10
  "main": "dist/lib/index.js",
11
11
  "types": "dist/types/index.d.ts",
12
12
  "files": [
13
- "dist/**/*",
14
- "download-compiler-for-end-user.js"
13
+ "dist/**/*"
15
14
  ],
16
15
  "engines": {
17
16
  "node": ">=14.0.0"
@@ -28,27 +27,21 @@
28
27
  "test": "jest"
29
28
  },
30
29
  "optionalDependencies": {
31
- "sass-embedded-darwin-arm64": "1.54.8",
32
- "sass-embedded-darwin-x64": "1.54.8",
33
- "sass-embedded-linux-arm": "1.54.8",
34
- "sass-embedded-linux-arm64": "1.54.8",
35
- "sass-embedded-linux-ia32": "1.54.8",
36
- "sass-embedded-linux-x64": "1.54.8",
37
- "sass-embedded-win32-ia32": "1.54.8",
38
- "sass-embedded-win32-x64": "1.54.8"
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"
39
38
  },
40
39
  "dependencies": {
41
40
  "buffer-builder": "^0.2.0",
42
- "extract-zip": "^2.0.1",
43
41
  "google-protobuf": "^3.11.4",
44
42
  "immutable": "^4.0.0",
45
- "make-fetch-happen": "^10.1.2",
46
43
  "rxjs": "^7.4.0",
47
- "semver": "^7.3.5",
48
- "shelljs": "^0.8.4",
49
- "supports-color": "^8.1.1",
50
- "tar": "^6.0.5",
51
- "yaml": "^1.10.2"
44
+ "supports-color": "^8.1.1"
52
45
  },
53
46
  "devDependencies": {
54
47
  "@types/buffer-builder": "^0.2.0",
@@ -56,22 +49,26 @@
56
49
  "@types/jest": "^27.0.2",
57
50
  "@types/make-fetch-happen": "^9.0.2",
58
51
  "@types/node": "^16.10.3",
59
- "@types/semver": "^7.3.4",
60
52
  "@types/shelljs": "^0.8.8",
61
53
  "@types/supports-color": "^8.1.1",
62
54
  "@types/tar": "^6.1.0",
63
55
  "@types/yargs": "^17.0.4",
64
56
  "del": "^6.0.0",
57
+ "extract-zip": "^2.0.1",
65
58
  "gts": "^4.0.0",
66
59
  "jest": "^27.2.5",
60
+ "make-fetch-happen": "^10.1.2",
67
61
  "minipass": "3.2.1",
68
62
  "npm-run-all": "^4.1.5",
69
63
  "protoc": "^1.0.4",
64
+ "shelljs": "^0.8.4",
70
65
  "source-map-js": "^0.6.1",
66
+ "tar": "^6.0.5",
71
67
  "ts-jest": "^27.0.5",
72
68
  "ts-node": "^10.2.1",
73
69
  "ts-protoc-gen": "^0.15.0",
74
70
  "typescript": "^4.4.3",
71
+ "yaml": "^1.10.2",
75
72
  "yargs": "^17.2.1"
76
73
  }
77
74
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "sass-embedded",
3
- "version": "1.54.8",
3
+ "version": "1.55.0",
4
4
  "protocol-version": "1.1.0",
5
- "compiler-version": "1.54.8",
5
+ "compiler-version": "1.55.0",
6
6
  "description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
7
7
  "repository": "sass/embedded-host-node",
8
8
  "author": "Google Inc.",
@@ -10,8 +10,7 @@
10
10
  "main": "dist/lib/index.js",
11
11
  "types": "dist/types/index.d.ts",
12
12
  "files": [
13
- "dist/**/*",
14
- "download-compiler-for-end-user.js"
13
+ "dist/**/*"
15
14
  ],
16
15
  "engines": {
17
16
  "node": ">=14.0.0"
@@ -28,27 +27,21 @@
28
27
  "test": "jest"
29
28
  },
30
29
  "optionalDependencies": {
31
- "sass-embedded-darwin-arm64": "1.54.8",
32
- "sass-embedded-darwin-x64": "1.54.8",
33
- "sass-embedded-linux-arm": "1.54.8",
34
- "sass-embedded-linux-arm64": "1.54.8",
35
- "sass-embedded-linux-ia32": "1.54.8",
36
- "sass-embedded-linux-x64": "1.54.8",
37
- "sass-embedded-win32-ia32": "1.54.8",
38
- "sass-embedded-win32-x64": "1.54.8"
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"
39
38
  },
40
39
  "dependencies": {
41
40
  "buffer-builder": "^0.2.0",
42
- "extract-zip": "^2.0.1",
43
41
  "google-protobuf": "^3.11.4",
44
42
  "immutable": "^4.0.0",
45
- "make-fetch-happen": "^10.1.2",
46
43
  "rxjs": "^7.4.0",
47
- "semver": "^7.3.5",
48
- "shelljs": "^0.8.4",
49
- "supports-color": "^8.1.1",
50
- "tar": "^6.0.5",
51
- "yaml": "^1.10.2"
44
+ "supports-color": "^8.1.1"
52
45
  },
53
46
  "devDependencies": {
54
47
  "@types/buffer-builder": "^0.2.0",
@@ -56,22 +49,26 @@
56
49
  "@types/jest": "^27.0.2",
57
50
  "@types/make-fetch-happen": "^9.0.2",
58
51
  "@types/node": "^16.10.3",
59
- "@types/semver": "^7.3.4",
60
52
  "@types/shelljs": "^0.8.8",
61
53
  "@types/supports-color": "^8.1.1",
62
54
  "@types/tar": "^6.1.0",
63
55
  "@types/yargs": "^17.0.4",
64
56
  "del": "^6.0.0",
57
+ "extract-zip": "^2.0.1",
65
58
  "gts": "^4.0.0",
66
59
  "jest": "^27.2.5",
60
+ "make-fetch-happen": "^10.1.2",
67
61
  "minipass": "3.2.1",
68
62
  "npm-run-all": "^4.1.5",
69
63
  "protoc": "^1.0.4",
64
+ "shelljs": "^0.8.4",
70
65
  "source-map-js": "^0.6.1",
66
+ "tar": "^6.0.5",
71
67
  "ts-jest": "^27.0.5",
72
68
  "ts-node": "^10.2.1",
73
69
  "ts-protoc-gen": "^0.15.0",
74
70
  "typescript": "^4.4.3",
71
+ "yaml": "^1.10.2",
75
72
  "yargs": "^17.2.1"
76
73
  }
77
74
  }