From 5c54d455f272bbb83c948ac420c677371e69ae77 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 29 Jul 2024 11:25:56 -0700 Subject: [PATCH] Bump and fix lints, require Dart 3.1 (#95) --- .github/workflows/test-package.yml | 2 +- CHANGELOG.md | 2 ++ lib/src/map_mutations.dart | 4 ++-- lib/yaml_edit.dart | 2 +- pubspec.yaml | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 7774cd6..32fb129 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index fd7591a..df7e3ef 100644 --- a/CHANGELOG.md +++ b/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/lib/src/map_mutations.dart b/lib/src/map_mutations.dart index 67665d9..46e8c79 100644 --- a/lib/src/map_mutations.dart +++ b/lib/src/map_mutations.dart @@ -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); diff --git a/lib/yaml_edit.dart b/lib/yaml_edit.dart index f4d7d75..49558b2 100644 --- a/lib/yaml_edit.dart +++ b/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/pubspec.yaml b/pubspec.yaml index be7139b..f7898ac 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ topics: - yaml environment: - sdk: ^3.0.0 + sdk: ^3.1.0 dependencies: collection: ^1.15.0 @@ -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