Skip to content

Bump watch_it from 2.4.2 to 2.5.0 - #356

Merged
MrCsabaToth merged 1 commit into
developfrom
dependabot/pub/watch_it-2.5.0
Oct 29, 2026
Merged

MrCsabaToth merged 1 commit into
developfrom
dependabot/pub/watch_it-2.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps watch_it from 2.4.2 to 2.5.0.

Changelog

Sourced from watch_it's changelog.

2.5.0

New Features

  • Requires get_it 9.3.0 (uses the new ObjectRegistration.acceptsParams).
  • Added param1/param2 to watchIt, watchValue, watchPropertyValue, watchStream, watchFuture, registerHandler, registerChangeNotifierHandler, registerStreamHandler and registerFutureHandler to watch objects created via registerCachedFactoryParam (e.g. one manager per entity id). Thanks to @​Feichtmeier (#47, #46).

Changed

  • If the object resolved from get_it is a different instance than on the previous build (e.g. a cached factory returned a new instance because the params changed, or a singleton was re-registered), the watch now re-subscribes to the new instance automatically instead of staying on the old one. allowObservableChange/allowStreamChange/allowFutureChange are still only required when the selector returns a different observable from the same parent.
  • Debug mode only: watching a type registered with registerFactory/registerFactoryParam now throws a StateError, because every build would get a new instance and the widget could never stay subscribed. Use registerCachedFactory/registerCachedFactoryParam, a singleton, or pass the instance via target:. Passing param1/param2 for a registration that isn't a cached factory, or combining them with target:, also throws.

Maintenance

  • Updated to flutter_lints 6 and fixed an analyzer info reported by pub.dev.
Commits

@dependabot dependabot Bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Oct 28, 2026
@MrCsabaToth

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [watch_it](https://github.com/flutter-it/watch_it) from 2.4.2 to 2.5.0.
- [Changelog](https://github.com/flutter-it/watch_it/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flutter-it/watch_it/commits)

---
updated-dependencies:
- dependency-name: watch_it
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pub/watch_it-2.5.0 branch from 0b0f73b to 9b0af66 Compare October 29, 2026 08:18
@MrCsabaToth
MrCsabaToth merged commit c2128a4 into develop Oct 29, 2026
1 of 4 checks passed
@dependabot
dependabot Bot deleted the dependabot/pub/watch_it-2.5.0 branch October 29, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dart Pull requests that update Dart code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant