Commit Graph

121 Commits

Author SHA1 Message Date
Natalie Weizenbaum
458852dfd3 Revert "Calc functions implementation (#1970)"
This reverts commit e4c8cd67e8.
2023-08-17 11:12:19 -07:00
Natalie Weizenbaum
86a2f42a40 Revert "Update abs-percent deprecatedIn version (#2057)"
This reverts commit bb244761d3.
2023-08-17 11:12:14 -07:00
Pamela Lozano
bb244761d3
Update abs-percent deprecatedIn version (#2057) 2023-08-09 15:38:01 -07:00
Pamela Lozano
e4c8cd67e8
Calc functions implementation (#1970)
* Sqrt calc function implementation

* Pow calc function

* Calc round function

* Corrections and rename parameter to inLegacySassFunction

* Unary calc functions

* Arguments with no units correction

* Refactor round function

* Update modulo function to return SassNumber and corrections

* Round accepting fake units fix

* Up/Down round strategy fix

* Return incompatible message fix
2023-08-09 14:14:08 -07:00
Natalie Weizenbaum
4c3bd0e89f
Deprecate explicitly passing null as an alpha value (#2049)
This allows us to reserve null to indicate a missing alpha channel
instead in future versions.
2023-08-07 22:07:01 +00:00
Natalie Weizenbaum
17e3a48639
Convert Sass to Dart 3 style (#2038) 2023-08-02 00:34:45 +00:00
Natalie Weizenbaum
890fc17dc1
Include protobuf definitions in the pub package (#2048)
Closes #2047
2023-07-31 23:16:50 +00:00
Natalie Weizenbaum
3367abe161
Bump the sass_api version (#2044) 2023-07-21 16:49:57 -07:00
なつき
2836216ba5
Fix deprotofy SassCalculation.clamp (#2043) 2023-07-21 15:08:08 -07:00
Ed Rivas
ca2be2ace9
Expose calculations in JS API (#1988)
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-07-19 14:36:22 -07:00
Natalie Weizenbaum
658eb70b55
Cut a release (#2025)
This allows us to release sass/embedded-host-node#231.
2023-06-21 21:50:07 +00:00
Natalie Weizenbaum
a48ced8ec9
Fix a race condition with re-used compilation isolate IDs (#2018)
Closes #2004
2023-06-20 17:55:46 -07:00
Natalie Weizenbaum
e34a0c7fa9
Cut a release (#2016) 2023-06-13 17:32:57 -07:00
Natalie Weizenbaum
645e48fd5d
Cut a release (#2006) 2023-06-09 08:33:24 -07:00
Natalie Weizenbaum
eb09d75ea3
Fix a few more deployment issues (#1998) 2023-06-07 18:23:57 -07:00
Natalie Weizenbaum
d82654bc3a
Fix deploy configuration (#1994) 2023-06-07 17:15:18 -07:00
Natalie Weizenbaum
c3ed547932
Release 1.63.0 (#1987) 2023-06-07 13:32:01 -07:00
Natalie Weizenbaum
a88318f5a9
Run embedded compilations across multiple isolates (#1981)
Closes #1980
Closes #1959
2023-06-06 14:23:17 -07:00
Natalie Weizenbaum
6d6d5ee5a4 Merge branch 'embedded-move' into embedded 2023-05-15 14:34:52 -07:00
Natalie Weizenbaum
8dddcb7b7d
Split SilentComment nodes on empty lines in SCSS (#1945)
Closes #1941
2023-04-25 16:21:05 -07:00
Natalie Weizenbaum
3091de542c
Fix :has(+ &) (#1938)
Closes #1937
2023-04-19 15:29:31 -07:00
Natalie Weizenbaum
c55235d166
Don't separate out media queries after one has bubbled (#1933)
Closes #777
2023-04-11 15:44:19 -07:00
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
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
9417b6e8d8
Track original source spans for selectors (#1903)
Closes #1783
2023-03-08 14:59:12 -08:00
Natalie Weizenbaum
620d8d355e
Cut a release to include sass/embedded-host-node#206 (#1890) 2023-02-17 16:29:03 -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
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
なつき
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
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
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
Jennifer Thakar
034484260d
Fix span for not operations (#1797) 2022-09-07 14:27:35 -07: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
98f326b507
Convert visitor classes to mixins (#1784)
Co-authored-by: Jennifer Thakar <jathak@google.com>
2022-08-19 15:17:58 -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