Skip to content

Commit c59fee0

Browse files
authored
Merge pull request #1569 from sass/release
Release 1.45.0
2 parents fcdaa4e + e86897b commit c59fee0

24 files changed

+47
-26
lines changed

CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
## 1.45.0-rc.2
2-
3-
### JS API
4-
5-
* Ship TypeScript type declarations with the package.
6-
7-
## 1.45.0-rc.1
1+
## 1.45.0
82

93
### JS API
104

@@ -41,6 +35,8 @@ For full documentation of this API, please see [the Sass website][js-api].
4135

4236
[js-api]: https://sass-lang.com/documentation/js-api
4337

38+
This release also adds TypeScript type definitions.
39+
4440
## 1.44.0
4541

4642
* Suggest `calc()` as an alternative in `/`-as-division deprecation messages.

analysis/lib/analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ analyzer:
66
strict-inference: true
77
strict-raw-types: true
88
errors:
9-
missing_js_lib_annotation: ignore
109
deprecated_member_use_from_same_package: ignore
1110

1211
# These are necessary for matching the JS API.

lib/src/async_environment.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5-
import 'dart:collection';
6-
75
import 'package:collection/collection.dart';
86
import 'package:path/path.dart' as p;
97
import 'package:source_span/source_span.dart';

lib/src/environment.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
// DO NOT EDIT. This file was generated from async_environment.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: 6e5ee671e0a6e5b1d6ac87beb6aeee1e4b155d74
8+
// Checksum: 6b97030ff074d0b39e027ea97ba5893d242b9d3d
99
//
1010
// ignore_for_file: unused_import
1111

12-
import 'dart:collection';
13-
1412
import 'package:collection/collection.dart';
1513
import 'package:path/path.dart' as p;
1614
import 'package:source_span/source_span.dart';

lib/src/importer/node_to_dart/file.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import '../../importer.dart';
88
import '../../node/importer.dart';
99
import '../../node/url.dart';
1010
import '../../node/utils.dart';
11-
import '../filesystem.dart';
12-
import '../result.dart';
1311
import '../utils.dart';
1412

1513
/// A filesystem importer to use for most implementation details of

lib/src/importer/node_to_dart/sync.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import '../../node/importer.dart';
99
import '../../node/url.dart';
1010
import '../../node/utils.dart';
1111
import '../../util/nullable.dart';
12-
import '../result.dart';
1312

1413
/// A wrapper for a synchronous JS API importer that exposes it as a Dart
1514
/// [Importer].

lib/src/node/compile.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import '../importer/node_to_dart/async_file.dart';
1818
import '../importer/node_to_dart/file.dart';
1919
import '../importer/node_to_dart/sync.dart';
2020
import '../io.dart';
21-
import '../logger.dart';
2221
import '../logger/node_to_dart.dart';
2322
import '../parse/scss.dart';
2423
import '../util/nullable.dart';

lib/src/node/legacy/value.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export 'value/string.dart';
2727
Value unwrapValue(Object? object) {
2828
if (object != null) {
2929
if (object is Value) return object;
30+
31+
// TODO(nweiz): Remove this ignore and add an explicit type argument once we
32+
// support only Dart SDKs >= 2.15.
33+
// ignore: inference_failure_on_function_invocation
3034
var value = getProperty(object, 'dartValue');
3135
if (value != null && value is Value) return value;
3236
if (isJSError(object)) throw object;

lib/src/node/reflection.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5-
import 'dart:js';
65
import 'dart:js_util';
76

87
import 'package:js/js.dart';

lib/src/node/utils.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5-
import 'dart:js';
65
import 'dart:js_util';
76
import 'dart:typed_data';
87

lib/src/value/number/unitless.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'package:tuple/tuple.dart';
77

88
import '../../util/number.dart';
99
import '../../value.dart';
10-
import '../number.dart';
1110

1211
/// A specialized subclass of [SassNumber] for numbers that have no units.
1312
///

pkg/sass_api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0-beta.23
2+
3+
* No user-visible changes.
4+
15
## 1.0.0-beta.22
26

37
* No user-visible changes.

pkg/sass_api/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: sass_api
22
# Note: Every time we add a new Sass AST node, we need to bump the *major*
33
# version because it's a breaking change for anyone who's implementing the
44
# visitor interface(s).
5-
version: 1.0.0-beta.22
5+
version: 1.0.0-beta.23
66
description: Additional APIs for Dart Sass.
77
homepage: https://github.com/sass/dart-sass
88

99
environment:
1010
sdk: '>=2.12.0 <3.0.0'
1111

1212
dependencies:
13-
sass: 1.45.0-rc.2
13+
sass: 1.45.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.0-rc.2
2+
version: 1.45.0
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

test/dart_api/importer_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import 'dart:convert';
99
import 'package:test/test.dart';
1010

1111
import 'package:sass/sass.dart';
12-
import 'package:sass/src/exception.dart';
1312

1413
import 'from_import_importer.dart';
1514
import 'test_importer.dart';

test/legacy_node_api/function_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5+
// TODO(nweiz): Remove this ignore and add explicit type arguments once we
6+
// support only Dart SDKs >= 2.15.
7+
// ignore_for_file: inference_failure_on_function_invocation
8+
59
@TestOn('node')
610
@Tags(['node'])
711

test/legacy_node_api/importer_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import 'dart:async';
99

1010
import 'package:js/js.dart';
11-
import 'package:node_interop/js.dart';
1211
import 'package:node_interop/node.dart';
1312
import 'package:path/path.dart' as p;
1413
import 'package:test/test.dart';

test/legacy_node_api/value/boolean_test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ void main() {
4343

4444
test("the constructor throws", () {
4545
expect(
46-
() => callConstructor(sass.types.Boolean, [true]), throwsA(anything));
46+
// TODO(nweiz): Remove this ignore and add an explicit type argument
47+
// once we support only Dart SDKs >= 2.15.
48+
// ignore: inference_failure_on_function_invocation
49+
() => callConstructor(sass.types.Boolean, [true]),
50+
throwsA(anything));
4751
});
4852

4953
group("the convenience accessor", () {

test/legacy_node_api/value/color_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5+
// TODO(nweiz): Remove this ignore and add explicit type arguments once we
6+
// support only Dart SDKs >= 2.15.
7+
// ignore_for_file: inference_failure_on_function_invocation
8+
59
@TestOn('node')
610
@Tags(['node'])
711

test/legacy_node_api/value/list_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5+
// TODO(nweiz): Remove this ignore and add explicit type arguments once we
6+
// support only Dart SDKs >= 2.15.
7+
// ignore_for_file: inference_failure_on_function_invocation
8+
59
@TestOn('node')
610
@Tags(['node'])
711

test/legacy_node_api/value/map_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5+
// TODO(nweiz): Remove this ignore and add explicit type arguments once we
6+
// support only Dart SDKs >= 2.15.
7+
// ignore_for_file: inference_failure_on_function_invocation
8+
59
@TestOn('node')
610
@Tags(['node'])
711

test/legacy_node_api/value/null_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ void main() {
2929
});
3030

3131
test("the constructor throws", () {
32+
// TODO(nweiz): Remove this ignore and add an explicit type argument once we
33+
// support only Dart SDKs >= 2.15.
34+
// ignore: inference_failure_on_function_invocation
3235
expect(() => callConstructor(sass.types.Null, []), throwsA(anything));
3336
});
3437

test/legacy_node_api/value/number_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5+
// TODO(nweiz): Remove this ignore and add explicit type arguments once we
6+
// support only Dart SDKs >= 2.15.
7+
// ignore_for_file: inference_failure_on_function_invocation
8+
59
@TestOn('node')
610
@Tags(['node'])
711

test/legacy_node_api/value/string_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5+
// TODO(nweiz): Remove this ignore and add explicit type arguments once we
6+
// support only Dart SDKs >= 2.15.
7+
// ignore_for_file: inference_failure_on_function_invocation
8+
59
@TestOn('node')
610
@Tags(['node'])
711

0 commit comments

Comments
 (0)