Set LegacyResult.map to undefined rather than null (#1592)

This commit is contained in:
Natalie Weizenbaum 2022-01-10 14:16:27 -08:00 committed by GitHub
parent 54fd309079
commit 720c358c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
## 1.47.1
### JS API
* **Potentially breaking bug fix:** Match the specification of the new JS API by
setting `LegacyResult.map` to `undefined` rather than `null`.
## 1.47.0
### JS API

View File

@ -357,7 +357,10 @@ RenderResult _newRenderResult(
var end = DateTime.now();
var css = result.css;
Uint8List? sourceMapBytes;
// TODO(nweiz): Get rid of this cast once pulyaevskiy/node-interop#109 is
// released.
// ignore: prefer_void_to_null
Uint8List? sourceMapBytes = undefined as Null;
if (_enableSourceMaps(options)) {
var sourceMapOption = options.sourceMap;
var sourceMapPath =

View File

@ -1,5 +1,5 @@
name: sass
version: 1.47.0
version: 1.47.1-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass