-
Have the compiler treat several user-generated invalid responses as compilation errors rather than
ProtocolError
s:-
Invalid function signatures in
CompileRequest.global_functions
. -
Non-absolute URLs in
CanonicalizeResponse.result.url
,ImportSuccess.source_map_url
, andFileImportResponse.result.file_url
.
-
-
Clarify that an invalid signature in a
HostFunction
should treat the current function as failing, rather than theHostFunction
.
- Add a
charset
option that controls whether or not Sass emits a@charset
/BOM for non-ASCII stylesheets.
- First stable release.
- Add a
CompileRequest.source_map_include_sources
field that tells the compiler to embed the contents of all source files in the generated source maps.
- Mark
ImportResponse.result
as optional. Importers should be able to returnnull
to indicate that a file wasn't found.
-
Mark
CompileFailure.span
as mandatory. There's no instance where a compilation itself should fail without having a source to point to. -
Make it the compiler's responsibility to verify
HostFunction.signature
. This ensures that the host doesn't have to parse Sass code.
-
Pluralize
Calculation.arguments
. -
Explicitly document how hosts should handle calculations.
- Add support for calculation values.
-
Add the
Value.HwbColor
type. -
Explicitly specify that compilers may choose which color types to use to represent each color.
- Add the
Value.ArgumentList
type, as well asFunctionCallResponse.accessed_argument_lists
to track which argument lists had their keywords accessed.
-
Breaking change: We now follow the protocol buffer style guide. This means:
- Field names are now all underscore-separated rather than lower camel case.
- Enums are now at the top-level with prefixes rather than surrounded in enclosing messages.
-
Add
CompileRequest.quiet_deps
andCompileRequest.verbose
flags to control how the compiler emits compilation warnings. -
Add a
CompileSuccess.loaded_urls
field that indicates the URLs that were loaded by a compilation. -
Clarify that
CompileRequest.StringInput.url
must be a canonical URL. -
Fix the documentation of
CanonicalizeRequest
to avoid referring to the outmodedCanonicalizeResponse.result.file
field.
- Add
VersionRequest.id
andVersionResponse.id
.
- Added
CanonicalizeRequest.fromImport
andFileImportRequest.fromImport
fields to allow importers to correctly handle import-only files.
-
Added fields to support requesting and sending formatted errors and logs.
CompileRequest.alert_color
CompileRequest.alert_ascii
CompileFailure.formatted
LogEvent.formatted
-
Remove
OutputStyle.NESTED
andOutputStyle.COMPACT
. It's unlikely that any host would support those any time soon.
- Use
4294967295
as the special ID for error messages that aren't caused by a specific request, since-1
isn't representable as auint32
.
-
Changed
CompileResponse.id
andProtocolError.id
fromint32
touint32
to match the type of all other ID fields. -
Added protocol versions and created this changelog.
-
Added the
VersionRequest
andVersionResponse
messages. -
Delimit messages with varints rather than fixed-size integers.