Skip to content

Commit ad84210

Browse files
authored
Bump and fix lints, require Dart 3.1 (dart-archive/yaml_edit#95)
1 parent 9719932 commit ad84210

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

pkgs/yaml_edit/.github/workflows/test-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
matrix:
4848
# Add macos-latest and/or windows-latest if relevant for this package.
4949
os: [ubuntu-latest]
50-
sdk: ['3.0', stable, dev]
50+
sdk: ['3.1', stable, dev]
5151
platform: [vm, chrome]
5252
steps:
5353
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

pkgs/yaml_edit/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
([#41](https://github.com/dart-lang/yaml_edit/issues/41)). Resolves
1313
([[#86](https://github.com/dart-lang/yaml_edit/issues/86)]).
1414

15+
- Require Dart 3.1
16+
1517
## 2.2.1
1618

1719
- Require Dart 3.0

pkgs/yaml_edit/lib/src/map_mutations.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ SourceEdit _addToBlockMap(
9696
}
9797

9898
/// Performs the string operation on [yamlEdit] to achieve the effect of adding
99-
/// the [key]:[newValue] pair when reparsed, bearing in mind that this is a flow
100-
/// map.
99+
/// the [keyNode]:[newValue] pair when reparsed, bearing in mind that this is a
100+
/// flow map.
101101
SourceEdit _addToFlowMap(
102102
YamlEditor yamlEdit, YamlMap map, YamlNode keyNode, YamlNode newValue) {
103103
final keyString = yamlEncodeFlow(keyNode);

pkgs/yaml_edit/lib/yaml_edit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// ```
2121
///
2222
/// [1]: https://yaml.org/
23-
library yaml_edit;
23+
library;
2424

2525
export 'src/editor.dart';
2626
export 'src/errors.dart' show AliasException;

pkgs/yaml_edit/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ topics:
1010
- yaml
1111

1212
environment:
13-
sdk: ^3.0.0
13+
sdk: ^3.1.0
1414

1515
dependencies:
1616
collection: ^1.15.0
@@ -20,6 +20,6 @@ dependencies:
2020

2121
dev_dependencies:
2222
coverage: any # we only need format_coverage, don't care what version
23-
dart_flutter_team_lints: ^2.0.0
23+
dart_flutter_team_lints: ^3.0.0
2424
path: ^1.8.0
2525
test: ^1.17.12

0 commit comments

Comments
 (0)