From f60982d085961937e3adc549d41985dc50d3e85d Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Sat, 23 May 2026 11:45:36 +1000 Subject: [PATCH] chore: Upgrade hooks dependency to 2.0. 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). --- CHANGELOG.md | 5 +++++ pubspec.yaml | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f6aca5..a5fff51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.1.3 + +- Updated the `hooks` dependency to `^2.0.0`. +- Bumped the minimum Dart SDK constraint to 3.10.0 and the minimum Flutter SDK to 3.38.0, matching the new requirement from `hooks` 2.0. + ## 1.1.2 - Prevent an out-of-bounds URL index in a string template from causing a crash. If an index is out of bounds, the link will simply be non-interactive. diff --git a/pubspec.yaml b/pubspec.yaml index 970c9e6..22c01ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: linked_text description: >- A Flutter widget that renders text with interpolated tappable links using a simple template syntax. -version: 1.1.2 +version: 1.1.3 repository: https://github.com/pento/linked_text topics: - text @@ -12,13 +12,13 @@ topics: - widget environment: - sdk: ">=3.6.0 <4.0.0" - flutter: ">=3.22.0" + sdk: ">=3.10.0 <4.0.0" + flutter: ">=3.38.0" dependencies: flutter: sdk: flutter - hooks: ^1.0.0 + hooks: ^2.0.0 url_launcher: ^6.2.0 dev_dependencies: