Commit Graph

708 Commits

Author SHA1 Message Date
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
Goodwine
fe7f9a146d
Do not validate a CSS declaration if its key is interpolated (#2036)
* Do not validate a CSS declaration if itss key is interpolated

* add changelog
2023-07-13 17:02:24 -07:00
Natalie Weizenbaum
262961cb57
Check the fs library to determine if we're on Node.js (#2033)
This fixes an issue where some environments (like VS Code) define
`process` but don't load the Node.js entrypoint, causing Sass to think
it's running under Node without access to its Node dependencies.

Closes #2032
2023-07-06 16:03:32 -07:00
Goodwine
78150a94f8
Add changelog for sass/embedded-host-node#226 (#1992) 2023-06-30 19:19:20 -07:00
Natalie Weizenbaum
e9e44d7edb
Emit comments in source order where possible (#1989)
See sass/sass#2848
Closes #1939
2023-06-23 15:52:06 -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
b4e8a74a50
Use the new import name for the ESM default export (#2026)
Closes #2024
2023-06-21 20:30:11 +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
cb4b442408
Add a changelog entry for google/dart_cli_pkg#132 (#2020) 2023-06-20 14:52:50 -07:00
なつき
b11840eaa1
Limit pool size (#2019)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-06-15 15:01:40 -07:00
Natalie Weizenbaum
3de612e67c
Re-enable support for default exports (#2009)
See #2008
2023-06-13 15:28:49 -07:00
Natalie Weizenbaum
ce58d87dcf
Add missing ESM exports (#2010) 2023-06-13 14:23:23 -07:00
なつき
aa59a5f4a9
Fix race condition between spawning and killing isolates during shutdown (#2007)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-06-09 15:55:47 -07:00
なつき
760fa2ead1
Add current stylesheet to loadedUrls when throwing parsing error (#1991)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-06-09 13:41:25 -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
247098dbf4
Further expand browser documentation and mention it in the README (#1973) 2023-05-24 13:58:47 -07:00
Natalie Weizenbaum
6d6d5ee5a4 Merge branch 'embedded-move' into embedded 2023-05-15 14:34:52 -07:00
Sass Bot
152754e291 Update Dart Sass version and release 2023-04-25 23:32:15 +00:00
Natalie Weizenbaum
3091de542c
Fix :has(+ &) (#1938)
Closes #1937
2023-04-19 15:29:31 -07:00
Sass Bot
6f1305cf65 Update Dart Sass version and release 2023-04-11 22:56:34 +00: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
Goodwine
e68818a86e
Allow global Sass function colliding with CSS native functions to use CSS variables (#1926)
* Allow global Sass function colliding with CSS native functions to use CSS variables

Many Sass functions are available globally even without loading their module. Some of these are also valid CSS native functions. Sass performs validations which disallow the use of CSS variables because the arguments are asserted a given type of value. For these collisions allow the use of CSS variables and in such cases assume the entire function call is meant to be the CSS native function rather than the global Sass function.

Fixes https://github.com/sass/sass/issues/3507

* Also allow for special numbers, not only for var()

* add changelog oops
2023-04-10 16:58:55 -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
Sass Bot
0c76246e35 Update Dart Sass version and release 2023-04-06 21:55:44 +00: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
4ddd8f5131
Add a changelog entry for sass/embedded-host-node#212 (#1928) 2023-04-05 17:40:07 -07:00
Sass Bot
96a5ffe252 Update Dart Sass version and release 2023-03-23 23:13:50 +00: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
Sass Bot
2d210a4d24 Update Dart Sass version and release 2023-03-14 21:21:23 +00:00
Jennifer Thakar
09a5f09638
Fix performance regression from selector spans (#1916) 2023-03-14 14:08:46 -07:00
Sass Bot
a3e3d9b6d0 Update Dart Sass version and release 2023-03-11 01:20:46 +00:00
Jennifer Thakar
b540d5914e
Release 1.59.2 (#1908) 2023-03-10 17:08:59 -08:00
Sass Bot
9893512d4a Update Dart Sass version and release 2023-03-10 23:48:10 +00: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
Sass Bot
ffc70679d3 Update Dart Sass version and release 2023-03-10 22:36:41 +00: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
f022e02bc5
Improve errors for invalid CSS values passed to CSS functions (#1901)
Closes #1769
2023-03-03 15:07:15 -08:00
Goodwine
eb1ced15d6
Pull @font-face out to root (#1899)
Closes sass/sass#1251
2023-03-01 18:12:11 -08:00
Natalie Weizenbaum
664a670ab8
Add a changelog entry for sass/embedded-host-node#207 (#1898) 2023-02-28 13:38:42 -08:00
Sass Bot
909441934a Update Dart Sass version and release 2023-02-18 00:40:20 +00:00
Natalie Weizenbaum
620d8d355e
Cut a release to include sass/embedded-host-node#206 (#1890) 2023-02-17 16:29:03 -08:00
Sass Bot
c23d5d98f3 Update Dart Sass version and release 2023-02-17 01:39:22 +00: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
Sass Bot
2c8bf35adf Update Dart Sass version and release 2023-02-14 00:57:06 +00:00