Skip to content

chore: Upgrade hooks dependency to 2.0#3

Merged
pento merged 1 commit into
mainfrom
chore/upgrade-hooks-2.0
May 23, 2026
Merged

chore: Upgrade hooks dependency to 2.0#3
pento merged 1 commit into
mainfrom
chore/upgrade-hooks-2.0

Conversation

@pento
Copy link
Copy Markdown
Owner

@pento pento commented May 23, 2026

Summary

  • Bumps hooks from ^1.0.0 to ^2.0.0.
  • Raises the minimum Dart SDK to >=3.10.0 and the minimum Flutter SDK to >=3.38.0 (the first stable Flutter release shipping Dart 3.10), matching the requirement that hooks 2.0 imposes transitively.
  • Releases as 1.1.3 with a CHANGELOG entry.

Notes

The only documented breaking change in hooks 2.0 is that ProtocolExtension became a base class instead of an interface — linked_text doesn't use that surface. The three hooks APIs touched by hook/build.dart (build(), BuildInput.outputDirectory, output.dependencies.add()) are unchanged across the version bump.

Test plan

  • flutter pub get — resolves cleanly; pubspec.lock shows hooks at 2.0.0.
  • flutter analyze — no issues.
  • dart analyze hook/build.dart — no issues.
  • flutter test — all 51 tests pass.

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).
@github-actions
Copy link
Copy Markdown

✅ Coverage Report

Metric Value
Current coverage 96.33% (105/109)
Baseline coverage 96.33% (105/109)
Result PASS

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 hooks from ^1.0.0 to ^2.0.0.
  • Raised the minimum SDK constraints to Dart >=3.10.0 <4.0.0 and Flutter >=3.38.0.
  • Released as 1.1.3 and added a matching CHANGELOG.md entry.

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.

@pento pento merged commit 58228ca into main May 23, 2026
6 checks passed
@pento pento deleted the chore/upgrade-hooks-2.0 branch May 23, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants