Commit Graph

574 Commits

Author SHA1 Message Date
Natalie Weizenbaum
aa53bd0ef3
Use wrapJSExceptions() to work around dart-lang/sdk#53105 (#2055) 2023-08-18 21:32:28 +00:00
Natalie Weizenbaum
a6a06b7eec Update pubspec and changelog and re-add abs-percent deprecation 2023-08-17 11:35:35 -07:00
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
dependabot[bot]
4a86812ad2
Bump http from 0.13.6 to 1.1.0 (#2062)
* Bump http from 0.13.6 to 1.1.0

Bumps [http](https://github.com/dart-lang/http/tree/master/pkgs) from 0.13.6 to 1.1.0.
- [Release notes](https://github.com/dart-lang/http/releases)
- [Commits](https://github.com/dart-lang/http/commits/http-v1.1.0/pkgs)

---
updated-dependencies:
- dependency-name: http
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update pubspec.yaml

Co-authored-by: なつき <i@ntk.me>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos (Goodwine) <2022649+Goodwine@users.noreply.github.com>
Co-authored-by: なつき <i@ntk.me>
2023-08-16 11:15:52 -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
8802c69337
Add ignores to work around dart-lang/linter#4381 (#2053) 2023-08-02 01:13:14 +00:00
Natalie Weizenbaum
17e3a48639
Convert Sass to Dart 3 style (#2038) 2023-08-02 00:34:45 +00:00
Natalie Weizenbaum
8e5e7fca53
Add a pubignore so pub knows to publish protobuf files (#2050)
Closes #2047
2023-08-01 14:14:06 -07:00
Natalie Weizenbaum
890fc17dc1
Include protobuf definitions in the pub package (#2048)
Closes #2047
2023-07-31 23:16:50 +00: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
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
dependabot[bot]
c41d52aa3b
Bump protobuf and protoc_plugin (#2021)
Bumps [protobuf](https://github.com/google/protobuf.dart) and [protoc_plugin](https://github.com/google/protobuf.dart). These dependencies needed to be updated together.

Updates `protobuf` from 2.1.0 to 3.0.0
- [Release notes](https://github.com/google/protobuf.dart/releases)
- [Commits](https://github.com/google/protobuf.dart/compare/protobuf-v2.1.0...protobuf-v3.0.0)

Updates `protoc_plugin` from 20.0.1 to 21.0.0
- [Release notes](https://github.com/google/protobuf.dart/releases)
- [Commits](https://github.com/google/protobuf.dart/compare/protoc_plugin-v20.0.1...protoc_plugin-v21.0.0)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: protoc_plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 21:46:17 +00:00
なつき
b11840eaa1
Limit pool size (#2019)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-06-15 15:01:40 -07:00
Natalie Weizenbaum
e34a0c7fa9
Cut a release (#2016) 2023-06-13 17:32:57 -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
ce909e454d
Use the correct pub credential location for deploying sub-packages (#1997) 2023-06-07 17:58:46 -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
9e1d18a60e
Upgrade the analyzer package (#1974) 2023-05-24 14:53:21 -07:00
Ed Rivas
cca9464b09
Add support for running in the browser (#1895)
Closes #25

Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2023-05-19 13:22:44 -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
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
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
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
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