Skip to content

Commit ef1de68

Browse files
authored
Update sass_api to 3.0.0 (#226)
1 parent 2fb8f44 commit ef1de68

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

lib/src/migration_visitor.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import 'patch.dart';
2424
/// If [migrateDependencies] is enabled, this visitor will construct and run a
2525
/// new instance of itself (using [newInstance]) each time it encounters an
2626
/// `@import` or `@use` rule.
27-
abstract class MigrationVisitor extends RecursiveAstVisitor {
27+
abstract class MigrationVisitor
28+
with RecursiveStatementVisitor, RecursiveAstVisitor {
2829
/// A mapping from URLs to migrated contents for stylesheets already migrated.
2930
final _migrated = <Uri, String>{};
3031

lib/src/migrators/module/references.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class References {
167167
}
168168

169169
/// A visitor that builds a References object.
170-
class _ReferenceVisitor extends RecursiveAstVisitor {
170+
class _ReferenceVisitor with RecursiveStatementVisitor, RecursiveAstVisitor {
171171
final _variables = BidirectionalMap<VariableExpression, MemberDeclaration>();
172172
final _variableReassignments = BidirectionalMap<
173173
MemberDeclaration<VariableDeclaration>, MemberDeclaration>();

pubspec.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass_migrator
2-
version: 1.5.6
2+
version: 1.5.7-dev
33
description: A tool for running migrations on Sass files
44
homepage: https://github.com/sass/migrator
55

@@ -10,14 +10,15 @@ dependencies:
1010
args: ^2.1.0
1111
charcode: ^1.2.0
1212
collection: ^1.16.0
13-
file: ^6.1.0
13+
# Workaround until pulyaevskiy/node-interop#110 is resolved
14+
file: '>=6.1.0 <6.1.2'
1415
glob: ^2.0.1
1516
js: ^0.6.3
1617
meta: ^1.3.0
1718
node_interop: ^2.0.2
1819
node_io: ^2.1.0
1920
path: ^1.8.0
20-
sass_api: ^1.0.0-beta.48
21+
sass_api: ^3.0.0
2122
source_span: ^1.8.1
2223
string_scanner: ^1.1.0
2324
term_glyph: ^1.2.0

0 commit comments

Comments
 (0)