Commit Graph

458 Commits

Author SHA1 Message Date
Natalie Weizenbaum
283bdc0063
Deprecate duplicate !global and !default declarations (#1931)
See #604
See sass/sass#2607
2023-04-07 16:29:57 -07:00
Natalie Weizenbaum
702a7ee7a1
Fix the performance of selector span expansion (#1929)
Instead of calling `SourceFile.getText()`, which creates string copies
of a substantial subset of the text of the file every time, this
directly accesses the file's underlying code units without doing any
copies.

Closes #1913
2023-04-06 14:44:29 -07:00
なつき
c6e7dbc0cd
Require node>=14.0.0 (#1911) 2023-03-23 16:10:21 -07:00
Natalie Weizenbaum
f5a3dea748
Add support for constants in calculations (#1922)
Closes #1900
See sass/sass#3258
2023-03-23 15:59:27 -07:00
Jennifer Thakar
09a5f09638
Fix performance regression from selector spans (#1916) 2023-03-14 14:08:46 -07:00
Jennifer Thakar
b540d5914e
Release 1.59.2 (#1908) 2023-03-10 17:08:59 -08:00
Jennifer Thakar
d0ca8e0bc9
Fix macOS arm64 build and release a new version (#1906)
* Revert "Remove workaround for dart-lang/setup-dart#59 (#1904)"

This reverts commit 434f2b99f1.

* Bump version
2023-03-10 15:36:32 -08:00
Jennifer Thakar
8f8138dfab
Add --fatal-deprecations and --future-deprecations (#1820)
* Add fatal/futureDeprecations to Dart API

This adds a new `Deprecation` class that specifies an ID for each
deprecated feature along with what Dart Sass version deprecated it.

The compile functions allow you to pass a set of `fatalDeprecations`
that will cause an error instead of a warning. You can also pass a set
of `futureDeprecations`, which let you opt-in to deprecations (like
`@import`) early.

* Add future deprecation for `@import`

* Add flags

* Merge colorUnits and randomWithUnits

* Update changelogs and pubspecs

* Add tests

* Use isFuture instead of deprecatedIn == null
* Split warnForDeprecation from warn

* Add missing word to error message
2023-03-10 14:24:33 -08:00
Natalie Weizenbaum
664a670ab8
Add a changelog entry for sass/embedded-host-node#207 (#1898) 2023-02-28 13:38:42 -08:00
Natalie Weizenbaum
620d8d355e
Cut a release to include sass/embedded-host-node#206 (#1890) 2023-02-17 16:29:03 -08:00
dannypernik
c4523884bf
Add timestamp to printed compile statement (#1876)
Co-authored-by: dannypernik <dannypernik@mail.com>
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
Co-authored-by: なつき <i@ntk.me>
2023-02-16 17:27:30 -08:00
Natalie Weizenbaum
13cc7d2da4
Improve the suggested replacements for unary minus in /-as-division (#1888)
Closes #1887
2023-02-16 13:34:57 -08:00
Natalie Weizenbaum
c8b4cd09eb
Don't emit "deg" for hsl hues (#1885) 2023-02-13 16:44:14 -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
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
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
なつき
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
Goodwine
790eb8a933
Update CHANGELOG for embedded-host-node fixes (#1828) 2022-11-08 17:23:38 -08:00
Natalie Weizenbaum
44d6bb6ac7
Add full support for Media Queries 4 (#1822)
Closes #1728
2022-11-01 16:20:27 -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
a65e504b48
Release 1.55.0 (#1806) 2022-09-21 15:39:03 -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
Natalie Weizenbaum
e2f97055db
Merge pull request #1795 from stof/upgrade_dependencies
Upgrade dev dependencies to the latest version
2022-09-07 14:35:12 -07:00
Jennifer Thakar
034484260d
Fix span for not operations (#1797) 2022-09-07 14:27:35 -07:00
Christophe Coevoet
184dfbf81a Upgrade dev dependencies to the latest version 2022-09-03 01:41:06 +02: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
Jennifer Thakar
7e91457607
Release 32-bit ARM on Linux (#1704) 2022-08-30 16:46:39 -07:00
Natalie Weizenbaum
016ab24ebd
Fix a bug with @media query bubbling (#1792)
Closes #1791
2022-08-29 15:07:32 -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
0b8a0f606d
Transform all enum-like classes to dart enums (#1777)
* Transform all enum-like classes to dart enums

Fixes #1746

* fix new linter warnings upon upgrading to 2.17 regarding "[new MyClass]" to "[MyClass.new]"
2022-08-17 15:00:13 -07:00
Natalie Weizenbaum
a987352219
Improve combinator superselector logic (#1778)
Closes #791
2022-08-15 18:20:56 -07:00
Natalie Weizenbaum
6fd25ae4a2
Improve error messages for incorrect units in color functions (#1772)
Closes #1745
2022-08-09 17:45:48 -07: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
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
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
bc8df44f6a
Cut a release (#1755)
Also include some code review changes that were meant for #1749
2022-07-22 14:30:03 -07:00
Natalie Weizenbaum
cc5529bda6
Drop the Git dependency on source_span (#1751)
We don't need to narrow the version constraint because this release
just improves formatting, it doesn't actually change the API.
2022-07-21 16:53:06 -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
Goodwine
2299632ddf
Fix sass types for TS 4.7+ Node16/NodeNext module resolution (#1736)
Fixes #1714
2022-06-30 16:05:41 -07:00
Natalie Weizenbaum
fd4a30f36f
Cut a release (#1726) 2022-06-22 12:24:29 -07: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
4d6b7628ef
Add a changelog entry for sass/embedded-host-node#117 (#1719) 2022-06-14 18:46:50 -07: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
Goodwine
44c2966b8a
Add changelog for PR #849 about preserving trailing loud comment location (#1709) 2022-06-02 19:18:04 -07:00