Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.93.3

* Additional fixes for implicit configuration when nested imports are involved.

## 1.93.2

* No user-visible changes.
Expand Down
16 changes: 9 additions & 7 deletions lib/src/async_environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ final class AsyncEnvironment {
{},
_importedModules,
null,
null,
_nestedForwardedModules,
[],
_variables.toList(),
_variableNodes.toList(),
Expand Down Expand Up @@ -834,13 +834,15 @@ final class AsyncEnvironment {
/// environment.
Configuration toImplicitConfiguration() {
var configuration = <String, ConfiguredValue>{};
for (var module in _importedModules.keys) {
for (var (name, value) in module.variables.pairs) {
configuration[name] =
ConfiguredValue.implicit(value, module.variableNodes[name]!);
}
}
for (var i = 0; i < _variables.length; i++) {
var modules =
i == 0 ? _importedModules.keys : _nestedForwardedModules?[i - 1];
for (var module in modules ?? const <Module>[]) {
for (var (name, value) in module.variables.pairs) {
configuration[name] =
ConfiguredValue.implicit(value, module.variableNodes[name]!);
}
}
var values = _variables[i];
var nodes = _variableNodes[i];
for (var (name, value) in values.pairs) {
Expand Down
18 changes: 10 additions & 8 deletions lib/src/environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_environment.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 608af187f35a7483a87d8a54e97793e776ba215c
// Checksum: 1a3e8a246997bac547c2c15e5c191aac2132cc5b
//
// ignore_for_file: unused_import

Expand Down Expand Up @@ -230,7 +230,7 @@ final class Environment {
{},
_importedModules,
null,
null,
_nestedForwardedModules,
[],
_variables.toList(),
_variableNodes.toList(),
Expand Down Expand Up @@ -842,13 +842,15 @@ final class Environment {
/// environment.
Configuration toImplicitConfiguration() {
var configuration = <String, ConfiguredValue>{};
for (var module in _importedModules.keys) {
for (var (name, value) in module.variables.pairs) {
configuration[name] =
ConfiguredValue.implicit(value, module.variableNodes[name]!);
}
}
for (var i = 0; i < _variables.length; i++) {
var modules =
i == 0 ? _importedModules.keys : _nestedForwardedModules?[i - 1];
for (var module in modules ?? const <Module<Callable>>[]) {
for (var (name, value) in module.variables.pairs) {
configuration[name] =
ConfiguredValue.implicit(value, module.variableNodes[name]!);
}
}
var values = _variables[i];
var nodes = _variableNodes[i];
for (var (name, value) in values.pairs) {
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.32

* No user-visible changes.

## 0.4.31

* No user-visible changes.
Expand Down
2 changes: 1 addition & 1 deletion pkg/sass-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-parser",
"version": "0.4.31",
"version": "0.4.32",
"description": "A PostCSS-compatible wrapper of the official Sass parser",
"repository": "sass/sass",
"author": "Google Inc.",
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 15.12.3

* No user-visible changes.

## 15.12.2

* No user-visible changes.
Expand Down
4 changes: 2 additions & 2 deletions pkg/sass_api/pubspec.yaml
Original file line number Diff line number Diff line change
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: 15.12.2
version: 15.12.3
description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: ">=3.6.0 <4.0.0"

dependencies:
sass: 1.93.2
sass: 1.93.3

dev_dependencies:
dartdoc: ^8.0.14
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.93.2
version: 1.93.3
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down
Loading