chore(release): 0.0.3 — downgrade xml constraint to ^6.5.0 for dusk compat#6
Merged
Conversation
…ompat
Cross-repo dependency BLOCKER reported against 0.0.2:
`image ^4.0.0` (used in `fluttersdk_dusk`'s `ext_screenshot.dart`)
transitively pins `xml ^6.0.1`. 0.0.2 pins `xml ^7.0.0` which makes
fluttersdk_dusk unresolvable as a hosted dep alongside
fluttersdk_artisan 0.0.2 — no `image 5.x` release exists to satisfy
the upper bound.
Fix:
- pubspec.yaml: `xml: ^7.0.0` -> `xml: ^6.5.0` (resolves to xml
6.6.1 in pub get, intersects cleanly with dusk's `^6.0.1`).
- lib/src/helpers/plist_writer.dart: 8 sites reverted from
`XmlName.parts('localname')` -> `XmlName('localname')` so the file
compiles on xml 6 (where `.parts` did not yet exist).
- CHANGELOG.md: 0.0.3 entry under [0.0.3] - 2026-05-21 documenting
the downgrade + deferred xml 7 migration (tracking image's xml 7
bump for a future patch release).
- example/pubspec.lock: auto-resolved to xml 6.6.1; bundled
transitive bumps (meta 1.18, test 1.31) are routine drift from
`dart pub get` and example-only (not shipped to pub.dev).
Full preflight green: dart format zero diff, dart analyze zero issues,
1116 tests pass --exclude-tags=integration, dart pub publish --dry-run
produces a 393 KB archive.
There was a problem hiding this comment.
Pull request overview
Release hotfix for fluttersdk_artisan 0.0.3 to restore compatibility with consumers that depend on image ^4.x (and therefore xml ^6.x) by downgrading the xml constraint and reverting xml-7-only API usage.
Changes:
- Bump package version to
0.0.3and downgradexmldependency from^7.0.0to^6.5.0. - Revert
XmlName.parts(...)usages back toXmlName(...)for xml 6.x compatibility. - Add a 0.0.3 changelog entry and refresh the example app lockfile after dependency resolution.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pubspec.yaml | Version bump to 0.0.3 and xml constraint downgrade to ^6.5.0. |
| lib/src/helpers/plist_writer.dart | Reverts xml-7-only XmlName.parts calls to xml-6-compatible XmlName(...). |
| CHANGELOG.md | Adds release notes for 0.0.3 documenting the downgrade and rationale. |
| example/pubspec.lock | Updates resolved versions (including xml 6.6.1) after running pub get in the example. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.0.3 (xml constraint downgrade for
fluttersdk_duskcompat)Hotfix on top of 0.0.2. Reverts the
xml ^7.0.0bump (commit34f523c) back to^6.5.0so the package resolves alongsidefluttersdk_dusk.Why
fluttersdk_dusk'sext_screenshot.dartdepends onimage ^4.0.0, which transitively pinsxml ^6.0.1. There is noimage 5.xrelease, soimage ^4.0.0+xml ^7.0.0(artisan 0.0.2's constraint) cannot resolve together. Hosted-dep consumers of both packages hit a pub solver failure.Diff shape
pubspec.yaml—xml: ^7.0.0->xml: ^6.5.0. Pub resolves toxml 6.6.1, which intersects with dusk's^6.0.1cleanly.lib/src/helpers/plist_writer.dart— 8XmlName.parts('localname')sites reverted toXmlName('localname')so the file compiles on xml 6.x (.partsdid not exist until xml 7).CHANGELOG.md— new[0.0.3] - 2026-05-21block documenting the downgrade + xml 7 migration deferral.example/pubspec.lock— auto-resolved bydart pub get. xml drops to 6.6.1; collateral transitive bumps (meta 1.17 -> 1.18, test 1.30 -> 1.31, test_api 0.7.10 -> 0.7.11) are example-only and not shipped on pub.dev.Verification
dart format --output=none --set-exit-if-changed lib/ test/ bin/-> zero diff.dart analyze lib/ test/ bin/-> zero issues.dart test --exclude-tags=integration-> 1116 passing.dart pub publish --dry-run-> 393 KB archive (well under the 500 KB target).Post-merge action items
git checkout master && git pullgit tag 0.0.3git push origin 0.0.3(triggerspublish.ymlon the[0-9]+.[0-9]+.[0-9]+*tag pattern).Followup (not in this PR)
xml 7 migration is deferred until
imageships a release on the xml 7 line. Track via dependabot once that lands.