Bump and fix lints, require Dart 3.1 (dart-lang/yaml_edit#95)
diff --git a/pkgs/yaml_edit/.github/workflows/test-package.yml b/pkgs/yaml_edit/.github/workflows/test-package.yml index 7774cd6..32fb129 100644 --- a/pkgs/yaml_edit/.github/workflows/test-package.yml +++ b/pkgs/yaml_edit/.github/workflows/test-package.yml
@@ -47,7 +47,7 @@ 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
diff --git a/pkgs/yaml_edit/CHANGELOG.md b/pkgs/yaml_edit/CHANGELOG.md index fd7591a..df7e3ef 100644 --- a/pkgs/yaml_edit/CHANGELOG.md +++ b/pkgs/yaml_edit/CHANGELOG.md
@@ -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
diff --git a/pkgs/yaml_edit/lib/src/map_mutations.dart b/pkgs/yaml_edit/lib/src/map_mutations.dart index 67665d9..46e8c79 100644 --- a/pkgs/yaml_edit/lib/src/map_mutations.dart +++ b/pkgs/yaml_edit/lib/src/map_mutations.dart
@@ -96,8 +96,8 @@ } /// 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);
diff --git a/pkgs/yaml_edit/lib/yaml_edit.dart b/pkgs/yaml_edit/lib/yaml_edit.dart index f4d7d75..49558b2 100644 --- a/pkgs/yaml_edit/lib/yaml_edit.dart +++ b/pkgs/yaml_edit/lib/yaml_edit.dart
@@ -20,7 +20,7 @@ /// ``` /// /// [1]: https://yaml.org/ -library yaml_edit; +library; export 'src/editor.dart'; export 'src/errors.dart' show AliasException;
diff --git a/pkgs/yaml_edit/pubspec.yaml b/pkgs/yaml_edit/pubspec.yaml index be7139b..f7898ac 100644 --- a/pkgs/yaml_edit/pubspec.yaml +++ b/pkgs/yaml_edit/pubspec.yaml
@@ -10,7 +10,7 @@ - yaml environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: collection: ^1.15.0 @@ -20,6 +20,6 @@ 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