Commit Graph

33 Commits

Author SHA1 Message Date
Natalie Weizenbaum
3fc6a42e8f Move source and test files to namespaced subdirectories 2023-05-08 17:34:32 -07:00
なつき
288bbddea0
Fix dart analyze issues (#135) 2022-12-28 00:21:41 +00:00
なつき
bec6b3da67
Do not throw ProtocolErrorType.PARAMS for custom functions and importers (#118) 2022-12-08 12:07:54 -08:00
なつき
d0e4e6ca18
Set id on all OutboundMessage with id field (#80)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2022-03-31 00:45:17 +00:00
Natalie Weizenbaum
53464a7979
Use the Sass shared Dart analysis options (#67) 2022-01-25 17:16:17 -08:00
Natalie Weizenbaum
5012b5c3da
Allow ImporterResponse.result to be null (#59) 2021-12-29 16:01:03 -08:00
Natalie Weizenbaum
26127d8a00
Treat invalid function signatures as function errors (#58)
See sass/embedded-protocol#85
2021-12-29 15:00:16 -08:00
Natalie Weizenbaum
1cbb0c5417
Implement FileImporter (#57) 2021-12-15 23:40:10 +00:00
Natalie Weizenbaum
53cbcdb58e
Add support for calculations (#55)
See sass/sass#818
2021-09-29 00:17:11 +00:00
なつき
d2063513af
Implement --version flag for cli (#53)
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2021-09-02 00:33:09 +00:00
Natalie Weizenbaum
4396693276
Support consuming Value.HwbColor and emitting Value.HslColor (#54) 2021-08-31 00:15:06 +00:00
Natalie Weizenbaum
e98484afca Add support for argument lists 2021-08-17 14:42:48 -07:00
Natalie Weizenbaum
5ff4e84b4a Support slash-separated lists 2021-08-17 14:42:28 -07:00
Awjin Ahn
0de8deb489
Give nnbd an explicit guarantee on the switch case. (#51) 2021-08-17 14:36:59 -07:00
Natalie Weizenbaum
f09f302684
Merge pull request #47 from sass/formatting 2021-06-14 15:27:20 -07:00
Natalie Weizenbaum
1c773f1cb1
Support VersionRequest and VersionResponse (#46)
Closes #33
2021-06-14 12:51:01 -07:00
Natalie Weizenbaum
f0501ec114 Reformat 2021-06-14 12:50:29 -07:00
Natalie Weizenbaum
66ab368582
Support fuzzy range errors (#45)
Closes #32
2021-05-26 13:10:56 -07:00
Natalie Weizenbaum
12c468004c
Implement CanonicalizeRequest.from_import (#41)
See sass/sass#3055
See webpack-contrib/sass-loader#905
See sass/embedded-protocol#61
2021-05-25 17:59:17 -07:00
Natalie Weizenbaum
49ef4c1121 Use the new enum names in the latest protocol version 2021-05-24 16:56:53 -07:00
Natalie Weizenbaum
93bc86f97a
Support non-nullability (#40) 2021-05-17 20:57:37 -07:00
Awjin Ahn
831e5e903e
Formatted alerts (#35) 2021-02-03 18:31:27 -08:00
Natalie Weizenbaum
d37212b3bb Use 0xffffffff as the fallback error ID
See sass/embedded-protocol#45
2021-01-06 16:31:45 -08:00
Natalie Weizenbaum
3130888661
Delimit messages using varints, as per sass/embedded-protocol#38 (#23)
See sass/embedded-protocol#37
2020-12-22 16:06:16 -08:00
Awjin Ahn
e302719e15
Update error handling to be asymmetric. (#18)
(As per the protocol spec)
2020-08-26 14:10:13 -07:00
Awjin Ahn
0cddc095b9
Support latest protocol updates (#11)
* Remove support for InboundMessage.FunctionCallRequest

Context: https://github.com/sass/embedded-protocol/issues/28

* Remove support for CanonicalizeResponse.file

Context: https://github.com/sass/embedded-protocol/issues/25

* Stub CompileRequest.Importer.fileImporterId support
2019-12-23 15:43:16 -08:00
Natalie Weizenbaum
03805ce1ce
Add support for first-class function value types (#10) 2019-11-11 13:36:13 -08:00
Natalie Weizenbaum
6b34ffd7f3
Add the ability to invoke functions (#9)
This doesn't yet support first-class function values.
2019-11-08 15:25:42 -08:00
Natalie Weizenbaum
95bb3aceb6
Add support for importers (#8) 2019-11-07 16:03:47 -08:00
Natalie Weizenbaum
ec05600af2
Emit LogEvents (#6) 2019-11-05 13:51:08 -08:00
Natalie Weizenbaum
3de78be2f0
Plug in the actual Sass compiler (#5)
This now supports real CompileRequest and CompileResponses, although
it's missing features like importers, custom functions, and source
maps.
2019-11-04 19:50:50 -08:00
Natalie Weizenbaum
7489d5796d Add a very basic protocol dispatcher and a few tests
Currently this doesn't actually invoke the compiler, it just always
returns the expanded output for "a {b: c}".
2019-11-01 19:02:12 -07:00
Natalie Weizenbaum
be35dbb7cc
Add a length-delimited StreamChannelTransformer (#1)
This implements the packet scheme that the embedded protocol uses when
communicating over stdin and stdout.
2019-10-29 21:05:18 +00:00