diff --git a/CHANGELOG.md b/CHANGELOG.md index 5973ba632..e97f71322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.37.6 +## 1.38.0 * In expanded mode, emit characters in Unicode private-use areas as escape sequences rather than literal characters. @@ -29,6 +29,11 @@ * Don't crash when an error occurs in a stylesheet loaded via a custom importer with a custom URL scheme. +### Dart API + +* Add a `SassArgumentList.keywordsWithoutMarking` getter to access the keyword + arguments of an argument list without marking them accessed. + ## 1.37.5 * No user-visible changes. diff --git a/lib/src/value/argument_list.dart b/lib/src/value/argument_list.dart index 3b909c59d..f9b4b5014 100644 --- a/lib/src/value/argument_list.dart +++ b/lib/src/value/argument_list.dart @@ -25,6 +25,13 @@ class SassArgumentList extends SassList { final Map _keywords; + /// Returns the same value as [keywords], but doesn't mark them accessed. + /// + /// Normally, any time [keywords] is accessed it's marked as such, which + /// indicates that the caller was allowed to pass keywords to a rest argument. + /// This avoids this marking. + Map get keywordsWithoutMarking => _keywords; + /// Whether [keywords] has been accessed. /// /// This is used to determine whether to throw an exception about passing diff --git a/pkg/sass_api/pubspec.yaml b/pkg/sass_api/pubspec.yaml index 7c2299e78..46e20201d 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-dev +version: 1.0.0-beta.3 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.37.6 + sass: 1.38.0 dependency_overrides: sass: {path: ../..} diff --git a/pubspec.yaml b/pubspec.yaml index 7653ca232..8b29fceff 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.37.6-dev +version: 1.38.0 description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass