Skip to content

Commit

Permalink
Fix the logger option for render() (#1538)
Browse files Browse the repository at this point in the history
Closes #1533
  • Loading branch information
nex3 committed Oct 26, 2021
1 parent 5606602 commit 756fcd3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## 1.43.4

### JS API

* Fix a bug where the `logger` option was ignored for the `render()` function.

## 1.43.3

* Improve performance.
Expand Down
4 changes: 3 additions & 1 deletion lib/src/node/legacy.dart
Expand Up @@ -84,7 +84,9 @@ Future<RenderResult> _renderAsync(RenderOptions options) async {
quietDeps: options.quietDeps ?? false,
verbose: options.verbose ?? false,
charset: options.charset ?? true,
sourceMap: _enableSourceMaps(options));
sourceMap: _enableSourceMaps(options),
logger: NodeToDartLogger(
options.logger, Logger.stderr(color: hasTerminal)));
} else if (file != null) {
result = await compileAsync(file,
nodeImporter: _parseImporter(options, start),
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass_api/CHANGELOG.md
@@ -1,3 +1,7 @@
## 1.0.0-beta.18

* No user-visible changes.

## 1.0.0-beta.17

* No user-visible changes.
Expand Down
4 changes: 2 additions & 2 deletions pkg/sass_api/pubspec.yaml
Expand Up @@ -2,15 +2,15 @@ name: sass_api
# Note: Every time we add a new Sass AST node, we need to bump the *major*
# version because it's a breaking change for anyone who's implementing the
# visitor interface(s).
version: 1.0.0-beta.17
version: 1.0.0-beta.18
description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
sass: 1.43.3
sass: 1.43.4

dependency_overrides:
sass: {path: ../..}
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,5 +1,5 @@
name: sass
version: 1.43.3
version: 1.43.4
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down

0 comments on commit 756fcd3

Please sign in to comment.