Fix the logger option for render() (#1538)

Closes #1533
This commit is contained in:
Natalie Weizenbaum 2021-10-26 14:06:40 -07:00 committed by GitHub
parent 5606602bfa
commit 756fcd3911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 4 deletions

View File

@ -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.

View File

@ -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),

View File

@ -1,3 +1,7 @@
## 1.0.0-beta.18
* No user-visible changes.
## 1.0.0-beta.17
* No user-visible changes.

View File

@ -2,7 +2,7 @@ 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
@ -10,7 +10,7 @@ environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
sass: 1.43.3
sass: 1.43.4
dependency_overrides:
sass: {path: ../..}

View File

@ -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