diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad796a58c..16c4ec7ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -234,7 +234,10 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] dart_channel: [stable] - include: [{os: ubuntu-latest, dart_channel: dev}] + # TODO(nweiz): Re-enable this when + # https://github.com/dart-lang/sdk/issues/52121#issuecomment-1728534228 + # is addressed. + # include: [{os: ubuntu-latest, dart_channel: dev}] steps: - uses: actions/checkout@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e5dace4d..e56a37ea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,38 @@ -## 1.67.1 +## 1.68.0 * Fix the source spans associated with the `abs-percent` deprecation. +### JS API + +* Non-filesystem importers can now set the `nonCanonicalScheme` field, which + declares that one or more URL schemes (without `:`) will never be used for + URLs returned by the `canonicalize()` method. + +* Add a `containingUrl` field to the `canonicalize()` and `findFileUrl()` + methods of importers, which is set to the canonical URL of the stylesheet that + contains the current load. For filesystem importers, this is always set; for + other importers, it's set only if the current load has no URL scheme, or if + its URL scheme is declared as non-canonical by the importer. + +### Dart API + +* Add `AsyncImporter.isNonCanonicalScheme`, which importers (async or sync) can + use to indicate that a certain URL scheme will never be used for URLs returned + by the `canonicalize()` method. + +* Add `AsyncImporter.containingUrl`, which is set during calls to the + `canonicalize()` method to the canonical URL of the stylesheet that contains + the current load. This is set only if the current load has no URL scheme, or + if its URL scheme is declared as non-canonical by the importer. + ### Embedded Sass +* The `CalculationValue.interpolation` field is deprecated and will be removed + in a future version. It will no longer be set by the compiler, and if the host + sets it it will be treated as equivalent to `CalculationValue.string` except + that `"("` and `")"` will be added to the beginning and end of the string + values. + * Properly include TypeScript types in the `sass-embedded` package. ## 1.67.0 diff --git a/pkg/sass_api/CHANGELOG.md b/pkg/sass_api/CHANGELOG.md index d42f28444..9b9e2c55c 100644 --- a/pkg/sass_api/CHANGELOG.md +++ b/pkg/sass_api/CHANGELOG.md @@ -1,3 +1,7 @@ +## 9.1.0 + +* No user-visible changes. + ## 9.0.0 * Remove the `CalculationExpression` class and the associated visitor methods. diff --git a/pkg/sass_api/pubspec.yaml b/pkg/sass_api/pubspec.yaml index 0528454f0..3fb53a144 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: 9.0.0 +version: 9.1.0 description: Additional APIs for Dart Sass. homepage: https://github.com/sass/dart-sass @@ -10,7 +10,7 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: - sass: 1.67.0 + sass: 1.68.0 dev_dependencies: dartdoc: ^6.0.0 diff --git a/pubspec.yaml b/pubspec.yaml index 3036d6b5e..021a583c8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.67.1-dev +version: 1.68.0 description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass