Skip to content

Commit

Permalink
Use implementation name dart-sass for VersionResponse (#2156)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
  • Loading branch information
ntkme and nex3 committed Jan 16, 2024
1 parent 006baa5 commit b263a72
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.69.8

### Embedded Sass

* The Dart Sass embedded compiler now reports its name as "dart-sass" rather
than "Dart Sass", to match the JS API's `info` field.

## 1.69.7

### Embedded Sass
Expand Down
2 changes: 1 addition & 1 deletion lib/src/embedded/isolate_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class IsolateDispatcher {
..protocolVersion = const String.fromEnvironment("protocol-version")
..compilerVersion = const String.fromEnvironment("compiler-version")
..implementationVersion = const String.fromEnvironment("compiler-version")
..implementationName = "Dart Sass";
..implementationName = "dart-sass";
}

/// Handles an error thrown by the dispatcher or code it dispatches to.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.69.7
version: 1.69.8-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down
2 changes: 1 addition & 1 deletion test/embedded/protocol_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void main() {
Version.parse(response.protocolVersion); // shouldn't throw
Version.parse(response.compilerVersion); // shouldn't throw
Version.parse(response.implementationVersion); // shouldn't throw
expect(response.implementationName, equals("Dart Sass"));
expect(response.implementationName, equals("dart-sass"));
await process.close();
});

Expand Down

0 comments on commit b263a72

Please sign in to comment.