From f9dff2ecffb1c7e46772c8e7459ce94f224819b6 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 5 Jan 2022 16:39:55 -0800 Subject: [PATCH] Mention TypeScript type updates in the CHANGELOG (#1589) --- CHANGELOG.md | 18 +++++++++++++++++- pkg/sass_api/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ab247d4d..f06998aad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,25 @@ -## 1.45.3 +## 1.46.0 ### JS API * **Potentially breaking bug fix:** Match the specification of the new JS API by passing `undefined` rather than `null` to `Logger.warn()` for an unset `span`. + +#### TypeScript Declarations + +* Add a declaration for the `LegacyPluginThis.options.context` field. + +* Update the definition of `LegacyAsyncFunction` to include explicit definitions + with zero through six arguments before the `done` parameter. This makes it + possible for TypeScript users to pass in callbacks that take a specific number + of arguments, rather than having to declare a callback that takes an arbitrary + number. + +* Add a declaration for `types.Error`, a legacy API class that can be returned + by asynchronous functions to signal asynchronous errors. + +* Add a `LegacyAsyncFunctionDone` type for the `done` callback that's passed to + `LegacyAsyncFunction`. ## 1.45.2 diff --git a/pkg/sass_api/pubspec.yaml b/pkg/sass_api/pubspec.yaml index fc49ecb1f..e371ba649 100644 --- a/pkg/sass_api/pubspec.yaml +++ b/pkg/sass_api/pubspec.yaml @@ -10,7 +10,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - sass: 1.45.3 + sass: 1.46.0 dependency_overrides: sass: {path: ../..} diff --git a/pubspec.yaml b/pubspec.yaml index 96a16cc63..0650d41b4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.45.3 +version: 1.46.0 description: A Sass implementation in Dart. homepage: https://github.com/sass/dart-sass