Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump and fix lints, require Dart 3.1 #95

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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