GeezerVison is showing github.com — Fix the tracking of variable nodes for scopes (#1681) · sass/dart-sass@7004d49
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: CHANGELOG.md +5Lines changed: 5 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +## 1.51.1 |
| 2 | + |
| 3 | +* Fix an issue where source locations tracked through variable references could |
| 4 | + potentially become incorrect. |
| 5 | + |
1 | 6 | ## 1.51.0 |
2 | 7 |
|
3 | 8 | * **Potentially breaking change**: Change the order of maps returned by |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/src/async_environment.dart +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -773,6 +773,7 @@ class AsyncEnvironment { |
773 | 773 | for (var name in _variables.removeLast().keys) { |
774 | 774 | _variableIndices.remove(name); |
775 | 775 | } |
| 776 | + _variableNodes.removeLast(); |
776 | 777 | for (var name in _functions.removeLast().keys) { |
777 | 778 | _functionIndices.remove(name); |
778 | 779 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/src/environment.dart +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
5 | 5 | // DO NOT EDIT. This file was generated from async_environment.dart. |
6 | 6 | // See tool/grind/synchronize.dart for details. |
7 | 7 | // |
8 | | -// Checksum: 6b97030ff074d0b39e027ea97ba5893d242b9d3d |
| 8 | +// Checksum: 88f81b417129a74e4eb776d518c8e019dbf2ec36 |
9 | 9 | // |
10 | 10 | // ignore_for_file: unused_import |
11 | 11 |
|
@@ -779,6 +779,7 @@ class Environment { |
779 | 779 | for (var name in _variables.removeLast().keys) { |
780 | 780 | _variableIndices.remove(name); |
781 | 781 | } |
| 782 | + _variableNodes.removeLast(); |
782 | 783 | for (var name in _functions.removeLast().keys) { |
783 | 784 | _functionIndices.remove(name); |
784 | 785 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: pkg/sass_api/CHANGELOG.md +4Lines changed: 4 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +## 1.0.0-beta.44 |
| 2 | + |
| 3 | +* No user-visible changes. |
| 4 | + |
1 | 5 | ## 1.0.0-beta.43 |
2 | 6 |
|
3 | 7 | * No user-visible changes. |
|
Collapse file
Copy file name to clipboardExpand all lines: pkg/sass_api/pubspec.yaml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,15 +2,15 @@ name: sass_api |
2 | 2 | # Note: Every time we add a new Sass AST node, we need to bump the *major* |
3 | 3 | # version because it's a breaking change for anyone who's implementing the |
4 | 4 | # visitor interface(s). |
5 | | -version: 1.0.0-beta.43 |
| 5 | +version: 1.0.0-beta.44 |
6 | 6 | description: Additional APIs for Dart Sass. |
7 | 7 | homepage: https://github.com/sass/dart-sass |
8 | 8 |
|
9 | 9 | environment: |
10 | 10 | sdk: '>=2.12.0 <3.0.0' |
11 | 11 |
|
12 | 12 | dependencies: |
13 | | - sass: 1.51.0 |
| 13 | + sass: 1.51.1 |
14 | 14 |
|
15 | 15 | dependency_overrides: |
16 | 16 | sass: {path: ../..} |
Collapse file
Copy file name to clipboardExpand all lines: pubspec.yaml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | name: sass |
2 | | -version: 1.51.0 |
| 2 | +version: 1.51.1-dev |
3 | 3 | description: A Sass implementation in Dart. |
4 | 4 | homepage: https://github.com/sass/dart-sass |
5 | 5 |
|
|