From 5901fe019db4c5bc88ed57957f735916c54427ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Bouchard?= Date: Fri, 21 Mar 2025 06:02:03 -0400 Subject: [PATCH] Upgraded dependencies + null safe corrections --- CHANGELOG.md | 9 +++++++++ analysis_options.yaml | 1 - lib/src/nodes/xml_element.dart | 1 - lib/src/xml_node.dart | 2 +- pubspec.yaml | 12 ++++++------ 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39b927a..7abb431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.1.0] - March 21, 2025 + +* Migrated dependencies + +* Fixed null safe error + +* Fixed unused imports + + ## [1.0.0] - May 15, 2021 * Migrated to null-safe code. diff --git a/analysis_options.yaml b/analysis_options.yaml index 108d105..e69de29 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1 +0,0 @@ -include: package:pedantic/analysis_options.yaml diff --git a/lib/src/nodes/xml_element.dart b/lib/src/nodes/xml_element.dart index 89960bd..2c1219a 100644 --- a/lib/src/nodes/xml_element.dart +++ b/lib/src/nodes/xml_element.dart @@ -3,7 +3,6 @@ import 'package:meta/meta.dart'; import '../helpers/delimiters.dart'; import '../helpers/formatters.dart'; import '../xml_node.dart'; -import './xml_attribute.dart'; /// A XML element. /// diff --git a/lib/src/xml_node.dart b/lib/src/xml_node.dart index adaf68d..9aefa06 100644 --- a/lib/src/xml_node.dart +++ b/lib/src/xml_node.dart @@ -363,7 +363,7 @@ abstract class XmlNode { /// /// Returns `null` if the [uri] can't be reached or no valid XML nodes /// are found in the returned document. - static Future fromUri( + static Future fromUri( String uri, { bool parseCharacterEntities = true, bool parseComments = false, diff --git a/pubspec.yaml b/pubspec.yaml index 51908d8..4aa3ed7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,18 +1,18 @@ name: xml_parser description: An unopinionated XML parser that can read, traverse, modify, and write XML documents. -version: 1.0.0 +version: 1.1.0 homepage: https://github.com/james-alex/xml_parser environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=3.0.0 <4.0.0" dependencies: - collection: ^1.15.0 + collection: ^1.19.1 html_character_entities: ^1.0.0+1 - http: ^0.13.3 + http: ^1.1.0 recursive_regex: ^1.0.0 - meta: ^1.3.0 + meta: ^1.16.0 dev_dependencies: test: ^1.17.4 - pedantic: ^1.11.0 + lints: ^5.0.0