diff --git a/CHANGELOG.md b/CHANGELOG.md index b09de7e8..00d844af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.51.1 + +* Fix an issue where source locations tracked through variable references could + potentially become incorrect. + ## 1.51.0 * **Potentially breaking change**: Change the order of maps returned by diff --git a/lib/src/async_environment.dart b/lib/src/async_environment.dart index 796883e2..a86c9f02 100644 --- a/lib/src/async_environment.dart +++ b/lib/src/async_environment.dart @@ -773,6 +773,7 @@ class AsyncEnvironment { for (var name in _variables.removeLast().keys) { _variableIndices.remove(name); } + _variableNodes.removeLast(); for (var name in _functions.removeLast().keys) { _functionIndices.remove(name); } diff --git a/lib/src/environment.dart b/lib/src/environment.dart index 08574519..9869e129 100644 --- a/lib/src/environment.dart +++ b/lib/src/environment.dart @@ -5,7 +5,7 @@ // DO NOT EDIT. This file was generated from async_environment.dart. // See tool/grind/synchronize.dart for details. // -// Checksum: 6b97030ff074d0b39e027ea97ba5893d242b9d3d +// Checksum: 88f81b417129a74e4eb776d518c8e019dbf2ec36 // // ignore_for_file: unused_import @@ -779,6 +779,7 @@ class Environment { for (var name in _variables.removeLast().keys) { _variableIndices.remove(name); } + _variableNodes.removeLast(); for (var name in _functions.removeLast().keys) { _functionIndices.remove(name); } diff --git a/pkg/sass_api/CHANGELOG.md b/pkg/sass_api/CHANGELOG.md index 205ac9a3..a602c937 100644 --- a/pkg/sass_api/CHANGELOG.md +++ b/pkg/sass_api/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0-beta.44 + +* No user-visible changes. + ## 1.0.0-beta.43 * No user-visible changes. diff --git a/pkg/sass_api/pubspec.yaml b/pkg/sass_api/pubspec.yaml index 612a4e92..697d971d 100644 --- a/pkg/sass_api/pubspec.yaml +++ b/pkg/sass_api/pubspec.yaml @@ -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.43 +version: 1.0.0-beta.44 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.51.0 + sass: 1.51.1 dependency_overrides: sass: {path: ../..} diff --git a/pubspec.yaml b/pubspec.yaml index 8b50d8de..acd9134b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.51.0 +version: 1.51.1-dev description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass