chore: Upgrade hooks dependency to 2.0#3
Merged
Merged
Conversation
The only breaking change in hooks 2.0 (ProtocolExtension becoming a base class instead of an interface) doesn't touch any surface used by linked_text. The build hook uses build(), BuildInput.outputDirectory, and output.dependencies.add(), all of which are unchanged. hooks 2.0 requires Dart SDK >=3.10.0, so the minimum Dart constraint is raised to 3.10.0 and the minimum Flutter SDK to 3.38.0 (the first stable Flutter release shipping Dart 3.10).
✅ Coverage Report
|
There was a problem hiding this comment.
Pull request overview
This PR upgrades the package’s hooks dependency to the new major version and aligns the package’s SDK constraints and release metadata to match the new minimum requirements.
Changes:
- Bumped
hooksfrom^1.0.0to^2.0.0. - Raised the minimum SDK constraints to Dart
>=3.10.0 <4.0.0and Flutter>=3.38.0. - Released as
1.1.3and added a matchingCHANGELOG.mdentry.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pubspec.yaml | Updates package version, SDK constraints, and hooks dependency to support hooks 2.0. |
| CHANGELOG.md | Adds a 1.1.3 entry documenting the dependency and SDK constraint updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
hooksfrom^1.0.0to^2.0.0.>=3.10.0and the minimum Flutter SDK to>=3.38.0(the first stable Flutter release shipping Dart 3.10), matching the requirement thathooks2.0 imposes transitively.1.1.3with a CHANGELOG entry.Notes
The only documented breaking change in
hooks2.0 is thatProtocolExtensionbecame a base class instead of an interface —linked_textdoesn't use that surface. The threehooksAPIs touched byhook/build.dart(build(),BuildInput.outputDirectory,output.dependencies.add()) are unchanged across the version bump.Test plan
flutter pub get— resolves cleanly;pubspec.lockshowshooksat 2.0.0.flutter analyze— no issues.dart analyze hook/build.dart— no issues.flutter test— all 51 tests pass.