Skip to content

Commit

Permalink
Bump and fix lints, require Dart 3.1 (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Jul 29, 2024
1 parent d605cce commit 5c54d45
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: ['3.0', stable, dev]
sdk: ['3.1', stable, dev]
platform: [vm, chrome]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
([#41](https://github.com/dart-lang/yaml_edit/issues/41)). Resolves
([[#86](https://github.com/dart-lang/yaml_edit/issues/86)]).

- Require Dart 3.1

## 2.2.1

- Require Dart 3.0
Expand Down
4 changes: 2 additions & 2 deletions lib/src/map_mutations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ SourceEdit _addToBlockMap(
}

/// Performs the string operation on [yamlEdit] to achieve the effect of adding
/// the [key]:[newValue] pair when reparsed, bearing in mind that this is a flow
/// map.
/// the [keyNode]:[newValue] pair when reparsed, bearing in mind that this is a
/// flow map.
SourceEdit _addToFlowMap(
YamlEditor yamlEdit, YamlMap map, YamlNode keyNode, YamlNode newValue) {
final keyString = yamlEncodeFlow(keyNode);
Expand Down
2 changes: 1 addition & 1 deletion lib/yaml_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// ```
///
/// [1]: https://yaml.org/
library yaml_edit;
library;

export 'src/editor.dart';
export 'src/errors.dart' show AliasException;
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ topics:
- yaml

environment:
sdk: ^3.0.0
sdk: ^3.1.0

dependencies:
collection: ^1.15.0
Expand All @@ -20,6 +20,6 @@ dependencies:

dev_dependencies:
coverage: any # we only need format_coverage, don't care what version
dart_flutter_team_lints: ^2.0.0
dart_flutter_team_lints: ^3.0.0
path: ^1.8.0
test: ^1.17.12

0 comments on commit 5c54d45

Please sign in to comment.