Skip to content

Commit f9dff2e

Browse files
authored
Mention TypeScript type updates in the CHANGELOG (#1589)
1 parent 78c98ee commit f9dff2e

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1-
## 1.45.3
1+
## 1.46.0
22

33
### JS API
44

55
* **Potentially breaking bug fix:** Match the specification of the new JS API by
66
passing `undefined` rather than `null` to `Logger.warn()` for an unset `span`.
7+
8+
#### TypeScript Declarations
9+
10+
* Add a declaration for the `LegacyPluginThis.options.context` field.
11+
12+
* Update the definition of `LegacyAsyncFunction` to include explicit definitions
13+
with zero through six arguments before the `done` parameter. This makes it
14+
possible for TypeScript users to pass in callbacks that take a specific number
15+
of arguments, rather than having to declare a callback that takes an arbitrary
16+
number.
17+
18+
* Add a declaration for `types.Error`, a legacy API class that can be returned
19+
by asynchronous functions to signal asynchronous errors.
20+
21+
* Add a `LegacyAsyncFunctionDone` type for the `done` callback that's passed to
22+
`LegacyAsyncFunction`.
723

824
## 1.45.2
925

pkg/sass_api/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
sdk: '>=2.12.0 <3.0.0'
1111

1212
dependencies:
13-
sass: 1.45.3
13+
sass: 1.46.0
1414

1515
dependency_overrides:
1616
sass: {path: ../..}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.45.3
2+
version: 1.46.0
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)