Natalie Weizenbaum
1615bb17d0
Add SassApiColor to the "Value" dartdoc category ( #1455 )
2021-08-31 00:14:14 +00:00
Natalie Weizenbaum
57ea9f1a90
Expose getters indicating which color fields a color has calculated ( #1453 )
...
These getters are only available through the sass_api package. This
will allow the Sass embedded compiler to more explicitly send the
color information it has on hand.
2021-08-28 07:37:39 +00:00
Nate Stringham
7230371a5a
Change readme to say macOS instead of OS X ( #1450 )
2021-08-27 09:41:48 -07:00
Jennifer Thakar
d419df7d9c
Add shared interfaces for various AST nodes ( #1445 )
...
Fixes #1401 and #1414 .
Adds `Dependency`, `SassDeclaration`, and `SassReference` interfaces,
which expose some getters that multiple AST nodes have in common with a
single type.
These also add getters for common subspans (URL, name, and namespace) to
the interfaces.
2021-08-23 16:33:36 -07:00
Christophe Coevoet
fd7eec9eac
Fix the URL for the sass_api package on pub.dev ( #1435 )
2021-08-17 13:20:41 -07:00
Natalie Weizenbaum
67db39c352
Add a SassArgumentList.keywordsWithoutMarking getter ( #1427 )
...
This is necessary to properly forward argument list keywords to the
embedded compiler.
See sass/embedded-protocol#27
2021-08-16 23:59:03 +00:00
Natalie Weizenbaum
390deed540
Merge pull request #1438 from sass/extend-bugs
...
Fix a couple bugs with @extend
2021-08-16 22:01:32 +00:00
Natalie Weizenbaum
2a03907e95
Emit escape sequences for private-use characters in expanded mode ( #1430 )
2021-08-16 21:52:35 +00:00
Natalie Weizenbaum
707db69de8
Fix a couple bugs with @extend
...
We weren't properly merging multiple @extend rules that were added to
an upstream module at the same time, so some of them weren't being
marked as satisfied.
Closes #1393
2021-08-11 18:41:50 -07:00
Natalie Weizenbaum
000173c132
Reformat
2021-08-11 16:14:17 -07:00
Natalie Weizenbaum
e0e132e0fe
Allow numbers with leading .
in plain-CSS min/max ( #1432 )
...
Closes #1394
2021-08-11 22:27:58 +00:00
Natalie Weizenbaum
d29acb0974
Don't try to force custom URL schemes to file paths in the Node API ( #1434 )
...
When an error occurred in a stylesheet loaded by a custom importer
with a custom URL scheme, the Node error wrapper tried to convert that
URL into a path and ended up crashing.
Closes #1138
2021-08-11 21:03:14 +00:00
Natalie Weizenbaum
3eca26584d
Fix a single-backslash attribute selector ( #1428 )
...
Closes #1423
2021-08-11 01:52:17 +00:00
Natalie Weizenbaum
5f4994e487
Fix backslash-escapes in url()s ( #1429 )
...
Closes #1399
2021-08-11 00:02:23 +00:00
Natalie Weizenbaum
54d16c0ac4
Allow if
to be used as an unquoted string ( #1431 )
...
Closes #1405
2021-08-10 23:34:36 +00:00
Natalie Weizenbaum
2beec3696c
Strip CRLFs from error comments ( #1433 )
...
Closes #1392
2021-08-10 22:59:35 +00:00
Natalie Weizenbaum
5d8e62258f
Merge pull request #1426 from sass/windows-path-importer
...
Fix a crash in the Node importer
2021-08-10 21:21:14 +00:00
Natalie Weizenbaum
682cbbf6c0
Add a header to changelog
2021-08-09 17:04:53 -07:00
Natalie Weizenbaum
3cb332724f
Update pkg/sass_api version
...
This also updates the CHANGELOG version-checking logic to be resilient
against pre-release versions in the CHANGELOG.
2021-08-09 16:54:57 -07:00
Natalie Weizenbaum
4fd0472f2e
Fix a crash in the Node importer
...
When a path was returned at the same time as a file's contents, it was
interpreted as a URL without first being translated to one. This
crashed for absolute Windows paths.
Closes #1410
2021-08-09 16:47:45 -07:00
Natalie Weizenbaum
e4f38a79ec
Deploy sass-site's main branch to Heroku ( #1421 )
2021-08-04 20:23:59 +00:00
Natalie Weizenbaum
c07f46175b
Add a tag to the correct repo with the correct authentication ( #1420 )
2021-08-04 01:26:34 +00:00
Natalie Weizenbaum
1157d3c327
Manually resolve symlinks before deploying sub-packages ( #1419 )
2021-08-03 23:26:27 +00:00
Natalie Weizenbaum
667e9f40e6
Fix an unmodifiable map modification in the sass_api deploy ( #1418 )
2021-08-03 20:33:54 +00:00
Natalie Weizenbaum
2a0b6d05ef
Fix publishing errors for sass_api ( #1417 )
...
This needs a LICENSE of its own and it can't have dependency_overrides
when publishing.
2021-08-02 23:58:34 +00:00
Natalie Weizenbaum
3af6562497
Try cutting a release of sass_api ( #1416 )
2021-08-02 21:45:46 +00:00
Natalie Weizenbaum
4db7935ff3
Merge pull request #1413 from sass/sass-api
...
Add a sass_api package that exposes more API details
2021-08-02 19:52:15 +00:00
Natalie Weizenbaum
632a041e1e
Move expression logic from RecursiveStatementVisitor to RecursiveAstVisitor
2021-07-30 18:23:14 -07:00
Natalie Weizenbaum
7900dda573
Add a sass_api package and publishing infrastructure
2021-07-30 18:23:14 -07:00
Natalie Weizenbaum
b64200e906
Prepare the API for being exposed in a new package
2021-07-30 18:23:13 -07:00
Natalie Weizenbaum
2758ca114a
Lazily determine whether a mixin contains a @content block
...
This avoids saddling the caller of `MixinRule()` with the
responsibility of correctly determining whether a content block
exists.
2021-07-30 18:00:59 -07:00
Natalie Weizenbaum
6f17b4aa9c
Merge pull request #1412 from sass/dartdoc
...
Improve dartdoc and fix a couple API issues
2021-07-30 23:33:58 +00:00
Natalie Weizenbaum
e02d8b4794
Check for dartdoc warnings in GitHub Actions
2021-07-30 15:25:08 -07:00
Natalie Weizenbaum
9f3133a179
Fix dartdoc errors
...
Also fix a couple places where our external API wasn't quite right.
2021-07-30 15:14:17 -07:00
Natalie Weizenbaum
a28c656049
Add dartdoc categories to Sass APIs
2021-07-30 14:29:51 -07:00
Natalie Weizenbaum
87e93a1d50
Merge pull request #1398 from sass/compile-to-result
...
Expose CompileResult publicly, along with methods that return it
2021-07-23 21:07:09 +00:00
Natalie Weizenbaum
10ac0944e0
Resynchronize
2021-07-23 13:41:46 -07:00
Natalie Weizenbaum
5d65c11403
Code review changes
2021-07-23 13:37:49 -07:00
Natalie Weizenbaum
cbd1f6e4cd
Merge remote-tracking branch 'origin/main' into compile-to-result
2021-07-23 13:35:50 -07:00
Rafer45
426277e3ed
Cast value correctly in putIfAbsentAsync
( #1404 )
...
* Cast value correctly in `putIfAbsentAsync`
Fixes https://github.com/sass/dart-sass/issues/1403
* Update pubspec.yaml
* Update CHANGELOG.md
Co-authored-by: Jennifer Thakar <jathak@google.com>
2021-07-19 14:13:06 -07:00
Natalie Weizenbaum
1565b9ceed
Rename includedUrls to loadedUrls
...
This is more explicit, and matches the name in the embedded protocol.
2021-07-14 14:29:22 -07:00
Natalie Weizenbaum
558ca0aa72
Expose CompileResult publicly, along with methods that return it
...
This also exposes CompileResult.includedUrls.
Closes #1355
Partially addresses sass/embedded-protocol#62
2021-07-13 18:08:23 -07:00
Natalie Weizenbaum
43b69e60a0
Change CompileResult.includedFiles to CompileResult.includedUrls
...
Rather than constructing this explicitly to match Node Sass's API, we
construct it with canonical URLs and convert it into the format
expected by the Node Sass API (a mix of paths and URLs) in the
compatibility layer.
2021-07-13 18:08:18 -07:00
Natalie Weizenbaum
0e42a09fdb
Remove CompileResult.sourceFiles
...
This was never used.
2021-07-13 17:02:50 -07:00
Natalie Weizenbaum
acdea51950
Exclude build/ from static analysis
2021-07-13 17:00:55 -07:00
Jennifer Thakar
4f428ca5f5
Release 1.35.2 ( #1390 )
2021-07-07 12:14:26 -07:00
Jennifer Thakar
3942ac4104
Fix bug in RecursiveAstVisitor ( #1389 )
...
It looks like the body of `visitParenthesizedExpression` was accidentally removed when the type parameter was removed from this class.
2021-07-07 11:41:12 -07:00
Natalie Weizenbaum
55b6813e5b
Refer to "main" branch in ci.yml ( #1384 )
2021-06-29 16:30:54 -07:00
Natalie Weizenbaum
abcad66580
Default to running against sass-spec's main branch ( #1383 )
2021-06-29 16:14:17 -07:00
Natalie Weizenbaum
a10d7c677d
Use @internal to cordon off internal-only Value APIs ( #1379 )
...
Lays the groundwork for #236
Note that we need to add a bunch of explicit @nodoc annotations to
work around dart-lang/dartdoc#2418 and dart-lang/dartdoc#2419 .
2021-06-24 17:32:57 -07:00