Commit Graph

709 Commits

Author SHA1 Message Date
Sass Bot
2c8bf35adf Update Dart Sass version and release 2023-02-14 00:57:06 +00:00
Natalie Weizenbaum
c8b4cd09eb
Don't emit "deg" for hsl hues (#1885) 2023-02-13 16:44:14 -08:00
Natalie Weizenbaum
487753ebe4
Release 1.58.0 (#142) 2023-02-01 15:44:20 -08:00
Natalie Weizenbaum
98fe9a43dd
Track dependencies through meta.load-css() with --watch (#1877)
Closes #1808
2023-01-31 16:58:45 -08:00
Christophe Coevoet
5a521b86f9
Add all CSS length units in known compatibilities (#1868)
This allows more validation of wrong computations in first-class calc.
2023-01-30 23:29:04 +00:00
Jennifer Thakar
00069241b9
Fix escaped backslash crash (#1870)
* Fix escaped backslash crash

Fixes #1855.

* Code review
2023-01-24 16:03:49 -08:00
Goodwine
0248608c44
Return an error when using a custom property in a propset instead of crashing (#1874)
Fixes: #1857
See: sass/sass-spec#1873
2023-01-24 15:42:09 -08:00
Natalie Weizenbaum
b98fa4fbd1
Fix an edge case in superselector computation (#1866)
Closes #1843
2023-01-06 00:30:49 -08:00
Natalie Weizenbaum
14c1634057
Don't crash when parsing +. (#1865)
Closes #1856
2023-01-04 17:03:08 -08:00
Goodwine
aceb1e8c51
Remove sourcemap comments from Sass sources (#1860)
* Remove sourcemap comments from Sass sources

* add changelog

* update version to cut a release and update sass_api changelog and pubspec
2023-01-04 16:08:50 -08:00
Sass Bot
d426ab837e Update Dart Sass version and release 2022-12-19 23:53:43 +00:00
Natalie Weizenbaum
5522c17a7b
Run "dart pub upgrade" rather than "pub upgrade" (#1851) 2022-12-19 15:42:10 -08:00
Natalie Weizenbaum
100f76fa7f
Implement string.split() (#1839)
Closes #1821
See sass/sass#1950
2022-12-16 15:53:16 -08:00
Natalie Weizenbaum
641d8e196f
Be strict about whitespace in custom functions (#1848) 2022-12-15 14:44:40 -08:00
Sass Bot
1e88f05bd7 Update Dart Sass version and release 2022-12-08 21:43:29 +00:00
なつき
e87176a52a
Add a factory method for creating host callable (#1829)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2022-12-08 12:07:56 -08:00
Sass Bot
14264bcf66 Update Dart Sass version and release 2022-11-09 01:59:49 +00:00
Goodwine
790eb8a933
Update CHANGELOG for embedded-host-node fixes (#1828) 2022-11-08 17:23:38 -08:00
Sass Bot
d52222c7b4 Update Dart Sass version and release 2022-11-04 00:19:21 +00:00
Goodwine
f3293dbe0f
JS API: Validate that importer result 'contents' is a string and improve ArgumentError output (#1816)
* Validate ImporterResult 'contents' and improve ArgumentError output
* only use JS stuff in the nodejs bindings
* handle non-string contents for legacy importer too
* make it work with node 12
2022-11-03 16:50:06 -07:00
Natalie Weizenbaum
00c351746e
Make `cloneCss() clone modules that transitively contain CSS (#1824)
Previously we were only cloning modules that directly contained CSS,
but this created a problem where extensions could be added to their
*shared* extension store across `load-css()` boundaries and thereby
applied to upstream CSS.

Closes #3322
2022-11-03 16:11:36 -07:00
Natalie Weizenbaum
44d6bb6ac7
Add full support for Media Queries 4 (#1822)
Closes #1728
2022-11-01 16:20:27 -07:00
Natalie Weizenbaum
558640bda4
Support all angle units in color functions (#1818)
See #1174
See sass/sass#2904
2022-10-28 15:52:44 -07:00
Natalie Weizenbaum
dd9e3cc1db
Implement deprecations for strict function units (#1817)
See #1776
See sass/sass#3374
2022-10-27 20:08:54 -07:00
Goodwine
655b55c51d
Indent comma-separated multiline selectors inside @media queries (#1814)
* Indent comma-separated multiline selectors inside @media queries

* update pubspec and changelog
2022-10-27 16:39:21 -07:00
Natalie Weizenbaum
905fe50a49
Add CHANGELOG entry for 1.55.0 (#114) 2022-09-22 15:34:56 -07:00
Natalie Weizenbaum
103cb19b41
Consistently use floating-point numbers everywhere (#1802)
Closes #1794
2022-09-21 14:15:42 -07:00
Natalie Weizenbaum
90b6190027
Add a deprecation warning for strict unary operations (#1800)
Closes #1721
2022-09-15 13:58:12 -07:00
Jennifer Thakar
db1e1261bd
Fix bug in JS MultiSpan (#1801)
Fixes #1790.
2022-09-14 17:08:57 -07:00
Natalie Weizenbaum
5466dd76a2
Give SassScriptException a name parameter (#1798)
This avoids the need to copy around the same `_exception()` helper all
over the place.
2022-09-13 16:09:56 -07:00
Sass Bot
8056d55f2c Update Dart Sass version and release 2022-09-07 21:37:26 +00:00
Jennifer Thakar
034484260d
Fix span for not operations (#1797) 2022-09-07 14:27:35 -07:00
Sass Bot
dbc015b54a Update Dart Sass version and release 2022-08-31 21:57:05 +00:00
Natalie Weizenbaum
5393754739
Cut a release (#1793)
Hopefully, this will successfully trigger a release of the new
embedded host infrastructure.
2022-08-31 14:46:46 -07:00
Sass Bot
cecb1a9711 Update Dart Sass version and release 2022-08-31 00:03:14 +00:00
Jennifer Thakar
7e91457607
Release 32-bit ARM on Linux (#1704) 2022-08-30 16:46:39 -07:00
Sass Bot
5821df1c2d Update Dart Sass version and release 2022-08-29 23:27:48 +00:00
Natalie Weizenbaum
016ab24ebd
Fix a bug with @media query bubbling (#1792)
Closes #1791
2022-08-29 15:07:32 -07:00
Natalie Weizenbaum
b7d92dcf0d
Release 1.54.5 (#108) 2022-08-19 16:12:33 -07:00
Natalie Weizenbaum
6df3497090
Release 1.54.5 (#1785) 2022-08-19 15:39:46 -07:00
Natalie Weizenbaum
76953320aa
Update specificity calculation for selector pseudos (#1781)
This is very close to invisible to the user and actually making it
visible would require a complex and hard-to-read test, so I'm electing
to avoid testing it.

Closes #2528
2022-08-18 18:31:31 -07:00
Goodwine
c850501621
Allow a module loaded multiple times by the same configuration (#1739)
* Allow a module loaded multiple times by the same configuration

* use object references as opaque ID

Fixes #1716
2022-08-18 16:49:09 -07:00
Goodwine
3f98441316
Deprecate math.random() when $limit has units (#1779)
* Deprecate math.random() when $limit has units

* add changelog for random with units deprecation

* add link to sass-site/d/random-with-units
2022-08-17 19:24:51 -07:00
Natalie Weizenbaum
a987352219
Improve combinator superselector logic (#1778)
Closes #791
2022-08-15 18:20:56 -07:00
Sass Bot
6faac1f6f0 Update Dart Sass version and release 2022-08-10 00:58:13 +00:00
Natalie Weizenbaum
6fd25ae4a2
Improve error messages for incorrect units in color functions (#1772)
Closes #1745
2022-08-09 17:45:48 -07:00
Sass Bot
fb12d87226 Update Dart Sass version and release 2022-08-04 20:48:23 +00:00
Natalie Weizenbaum
f3093e90ba Use a self-hosted runner to release a native Mac OS ARM64 runner 2022-08-03 17:41:07 -07:00
Sass Bot
a20673acb1 Update Dart Sass version and release 2022-08-03 23:52:13 +00:00
Natalie Weizenbaum
126f0a6223
Release 1.54.2 (#1770)
This allows us to cut another release which will include
sass/dart-sass-embedded#103.
2022-08-03 16:30:09 -07:00
Sass Bot
cf1cc4eb9e Update Dart Sass version and release 2022-08-02 23:52:36 +00:00
Natalie Weizenbaum
42d6fbb3ed
Ensure that selectors like :root always unify to the beginning (#1759)
Closes #1811
2022-08-02 23:37:08 +00:00
Natalie Weizenbaum
59ba6eaa5a
Add the changelog entry for 1.54.0 (#95) 2022-07-22 16:07:35 -07:00
Natalie Weizenbaum
d159d83ea8
Fix superselector bugs for pseudo-elements and universal selectors (#1753)
Closes #790
Closes sass/sass#2728
2022-07-22 13:55:46 -07:00
Natalie Weizenbaum
eeedebcee5
Add partial support for Media Queries Level 4 (#1749)
See sass/sass#2538
See #1728
2022-07-22 13:34:07 -07:00
Natalie Weizenbaum
3e7c9dd702
Expose inImportRule() as the test-only fakeFromImport() function (#1750) 2022-07-21 17:04:35 -07:00
Natalie Weizenbaum
1bd774485d
Deprecate passing non-deg units to hwb()'s $hue argument (#1747)
This was overlooked in #1175, because the spec said that `hwb()`
should already be throwing an error if non-`deg` units were passed.
However, Dart Sass didn't implement the spec correctly and these units
were in fact not being checked at all.

See #1174
2022-07-18 17:57:45 -07:00
Natalie Weizenbaum
4b53c163d7
Deprecate bogus combinators (#1740)
See sass/sass#3340
See sass/dart-sass#1727
2022-07-18 16:16:10 -07:00
なつき
b99ad4ba14
Add charset option to js-api (#1732) 2022-07-06 13:41:51 -07:00
Goodwine
2299632ddf
Fix sass types for TS 4.7+ Node16/NodeNext module resolution (#1736)
Fixes #1714
2022-06-30 16:05:41 -07:00
Sass Bot
be23a74d7d Update Dart Sass version and release 2022-06-22 19:37:08 +00:00
Natalie Weizenbaum
c5e1f0b6ab
Add support for var() with an empty fallback argument (#1723)
Closes sass/sass#3245
2022-06-21 15:07:59 -07:00
Natalie Weizenbaum
8705c06b2b
Fix a buggy interaction between meta.load-css and the legacy JS API (#1722)
Closes #1627
2022-06-17 14:38:41 -07:00
Natalie Weizenbaum
4d6b7628ef
Add a changelog entry for sass/embedded-host-node#117 (#1719) 2022-06-14 18:46:50 -07:00
Sass Bot
a4545258cc Update Dart Sass version and release 2022-06-09 00:00:38 +00:00
Goodwine
ae6275e5e2
fix serializing loud comment crash when importing the same file twice in a row (#1713)
* fix serializing loud comment crash when importing the same file twice
2022-06-08 16:48:36 -07:00
Sass Bot
5a70b24c70 Update Dart Sass version and release 2022-06-03 02:32:38 +00:00
Goodwine
44c2966b8a
Add changelog for PR #849 about preserving trailing loud comment location (#1709) 2022-06-02 19:18:04 -07:00
Sass Bot
5917e5ef3c Update Dart Sass version and release 2022-05-20 22:15:29 +00:00
Natalie Weizenbaum
d17f70fd52
Revert "Abort sass if stdin is closed when watching (#1411)" (#1699)
This reverts commit c7ab426cb0.

See #1665, #1411
2022-05-20 15:04:21 -07:00
Natalie Weizenbaum
fa0d2fb55a
Add support for arbitrary modifiers after @import (#1695)
See sass/sass#3285
2022-05-19 16:53:30 -07:00
Jennifer Thakar
b19b3b141d
Fix assertUnit and assertNoUnits (#1686)
Fixes #1685.
2022-05-10 15:27:47 -07:00
Christophe Coevoet
1e211d640a
Escape the source map URL before using it in a CSS comment (#1676)
The URL must not be allowed to terminate the comment.
2022-04-27 09:54:52 -07:00
Christophe Coevoet
7004d49f98
Fix the tracking of variable nodes for scopes (#1681)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2022-04-26 14:59:21 -07:00
Sass Bot
8e907ab92d Update Dart Sass version and release 2022-04-26 02:32:43 +00:00
Natalie Weizenbaum
0c24114bad
Update the order of maps returned by map.deep-merge() (#1680)
Closes sass/sass#3092
2022-04-25 19:20:54 -07:00
Christophe Coevoet
6eed6eb62a
Fix the string representations of the Sass AST (#1682)
* Fix the string representations of the Sass AST

Those are used when providing recommendations in warnings or errors, so
it is better if they produce valid code.

* Add changelog

Co-authored-by: Jennifer Thakar <jathak@google.com>
2022-04-25 16:53:08 -07:00
Sass Bot
85735c4b4b Update Dart Sass version and release 2022-04-19 00:59:18 +00:00
Natalie Weizenbaum
fbd450b182
Cut a release (#1671) 2022-04-18 17:47:56 -07:00
Natalie Weizenbaum
3dbb552d3b
Add a changelog entry for sass/dart-sass-embedded#83 and sass/embedded-host-node#128 (#1668) 2022-04-12 14:29:47 -07:00
Sass Bot
39500727d9 Update Dart Sass version and release 2022-04-07 02:31:35 +00:00
Jennifer Thakar
039f2adeed
Add support for :where() (#1662) 2022-04-06 19:19:59 -07:00
Michael Crumm
c7ab426cb0
Abort sass if stdin is closed when watching (#1411)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2022-04-06 17:37:40 -07:00
Natalie Weizenbaum
db852764bd
Update the changelog for sass/embedded-host-node#120 (#1663) 2022-04-06 13:32:52 -07:00
Sass Bot
a5d370c50e Update Dart Sass version and release 2022-04-01 22:48:36 +00:00
Natalie Weizenbaum
d7d3f8faa2
Cut a release (#1659)
This adds changelog entries for sass/dart-sass-embedded#80 and
sass/embedded-host-node#118.
2022-04-01 15:37:47 -07:00
Sass Bot
6143a586f3 Update Dart Sass version and release 2022-03-30 22:26:38 +00:00
Jennifer Thakar
6652001f19
Stop simplifying calculations in supports (#1653)
Fixes #1652.

Also releases 1.49.10
2022-03-30 15:14:46 -07:00
Natalie Weizenbaum
33f18c4b54
Preserve rgb/rgba/hsl/hsla formats in expanded mode (#1651)
This also fixes a bug where four- and eight-digit hex numbers weren't
being translated to more compatible formats.

Closes #1634
2022-03-17 15:44:38 -07:00
Natalie Weizenbaum
3abcc20595
Silence compiler warnings in dependency callables with --quiet-deps (#1650)
Closes #1560
2022-03-14 15:52:13 -07:00
Sass Bot
31d0eb695e Update Dart Sass version and release 2022-02-24 20:40:23 +00:00
Natalie Weizenbaum
2baa2f6f9d
Add a changelog entry for sass/embedded-host-node#114 (#1638) 2022-02-24 12:24:55 -08:00
Sass Bot
366a9f4c5b Update Dart Sass version and release 2022-02-17 21:36:10 +00:00
Jennifer Thakar
c66ea3f9a5
Fix CSS import bug (#1633) 2022-02-17 13:25:21 -08:00
Natalie Weizenbaum
4181d0d4bf
Add a CHANGELOG entry for sass/embedded-host-node#113 (#1629) 2022-02-17 13:03:58 -08:00
Awjin Ahn
864d526715
Allow Node 17 to pass extra args to inspect. (#1631) 2022-02-16 16:38:56 -08:00
Sass Bot
2b5c7d562f Update Dart Sass version and release 2022-02-01 22:06:47 +00:00
Natalie Weizenbaum
e3bf3eb3a3
Release a new version to trigger an Embedded Sass release (#1620) 2022-02-01 13:54:18 -08:00
Sass Bot
b295292d2a Update Dart Sass version and release 2022-02-01 21:13:12 +00:00
Natalie Weizenbaum
408eddb1ac
Release a new version to trigger an Embedded Sass release (#1619) 2022-02-01 13:02:00 -08:00