2320 Commits

Author SHA1 Message Date
7eb4964aa2 Lint 2025-08-23 15:40:39 +02:00
a6a780f996 Generate 2025-08-23 15:39:27 +02:00
96141c013d Format 2025-08-23 15:37:37 +02:00
da3ef0c703 Format 2025-08-23 15:28:43 +02:00
33ffe9fb09 Goldens 2025-08-23 15:28:01 +02:00
13a378342f Format lint tests 2025-08-23 15:02:02 +02:00
f88b9a8087 Format utils 2025-08-23 15:00:45 +02:00
0b8d4c09f1 Format tests 2025-08-23 15:00:13 +02:00
8162de6025 Format generated 2025-08-23 14:59:52 +02:00
40252531df Revert "Format"
This reverts commit 1ca0d114d2c101fa6484b1b4b578a42cfef40528.
2025-08-23 14:56:41 +02:00
d033a64298 Preserve commas 2025-08-23 14:54:54 +02:00
3c59b179dd Codegen 2025-08-23 14:39:29 +02:00
d76e6d98e2 More format 2025-08-23 14:38:10 +02:00
c6d282d106 Disable require_trailing_commas 2025-08-23 14:36:54 +02:00
1ca0d114d2 Format 2025-08-23 14:36:14 +02:00
2a71d6ab9e Bump SDK everywhere 2025-08-23 14:35:25 +02:00
d574defc5f Format 2025-08-23 14:31:43 +02:00
f37449a1d7 Generate 2025-08-23 14:31:29 +02:00
4cf35b6ae6 Move name logic to riverpod_analyzer_utils 2025-08-23 14:29:11 +02:00
9a7670b190 Format 2025-08-23 14:08:51 +02:00
143cafd2d6 Format 2025-08-23 14:07:30 +02:00
d39de18589 Remove unused 2025-08-23 14:06:39 +02:00
2723f17a5a Format 2025-08-22 17:35:18 +02:00
85928a82b6 Rename 2025-08-22 17:25:47 +02:00
c7cfaa05e0 Generate 2025-08-22 17:25:24 +02:00
6f900c377e Rename 2025-08-22 17:23:53 +02:00
f03e7a86b7 Move 2025-08-22 16:54:37 +02:00
ba6c1230d1 Move 2025-08-22 16:54:04 +02:00
9578de053c Tests 2025-08-22 15:44:45 +02:00
4b4ced4c7f Move 2025-08-22 15:43:23 +02:00
baf05f823e Move 2025-08-22 15:43:02 +02:00
9bb11ba3c8 Move 2025-08-22 15:42:38 +02:00
b30ac29430 Meta 2025-08-19 17:29:16 +02:00
69a506f909 Various docs updates (#4122) 2025-08-19 17:22:13 +02:00
cd4da4d09a Update Discord links 2025-08-19 14:53:24 +02:00
db57b3c81e Remove AsyncProviderTransformerMixin 2025-08-15 00:32:00 +02:00
6a50eceae0 Document ProviderException 2025-08-15 00:31:39 +02:00
c50c3248ef Don't pause ref.listen/ref.listenManual based off TickerMode (#4239)
fixes #4231
2025-08-14 23:18:30 +02:00
973299bffb Dont-pause-providers-on-paused-flutter-apps (#4238)
## Related Issues

fixes #2671

<!--
  Update to link the issue that is going to be fixed by this.
  Unless this concerns documentation, make sure to create an issue first
  before raising a PR.

  You do not need to describe what this PR is doing, as this should
  already be covered by the associated issue.
  If the linked issue isn't enough, then chances are a new issue
  is needed.

  Don't hesitate to create many issues! This can avoid working
  on something, only to have your PR closed or have to be rewritten
  due to a disagreement/misunderstanding.
 -->

## Checklist

Before you create this PR confirm that it meets all requirements listed
below by checking the relevant checkboxes (`[x]`).

- [ ] I have updated the `CHANGELOG.md` of the relevant packages.
      Changelog files must be edited under the form:

  ```md
  ## Unreleased fix/major/minor

  - Description of your change. (thanks to @yourGithubId)
  ```

- [ ] If this contains new features or behavior changes,
      I have updated the documentation to match those changes.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
  - None

- Bug Fixes
- Improved reliability of provider updates by ensuring pending work is
applied after frames, reducing chances of missed UI updates.
  - Prevented potential timer-related leaks during lifecycle changes.

- Documentation
- Updated changelog to note that providers are no longer paused when the
app is paused.

- Tests
- Added a widget test verifying that updates are applied after flushing
the scheduler when rebuilds are delayed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-14 21:48:23 +02:00
eb922a225e Change provider_name_strip_pattern to default wiht Notifier$ (#4237)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Refactor
- Generated provider names were simplified: symbols now end with
"Provider" instead of "NotifierProvider". Update any app references and
samples.
- Documentation
- README and docs clarify the default strip pattern and examples now use
the new ...Provider names.
- Tests
  - Updated and added tests to assert the new default naming behavior.
- Chores
- Configuration parsing tightened to always supply default naming
values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-14 20:03:17 +02:00
5b2cbb6f90 Increase timeout 2025-08-13 18:21:44 +02:00
d7d26f33fb When a provider emits an error, keep preserved state. (#4236)
fixes #4129

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- Bug Fixes
- Persisted state is preserved if a provider throws, preventing loss of
cached data.
- provider.future now skips offline-persisted state by default, avoiding
unexpected rebuilds when chaining persisted providers.

- Documentation
- Updated changelog to reflect the new persistence and error-handling
behavior.

- Tests
- Added coverage ensuring decoded state is preserved when an error
occurs after decoding.
- Removed an obsolete async storage test to align with current behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-13 18:01:20 +02:00
7386fcffae Update goldens 2025-08-13 17:05:00 +02:00
c8e1a75095 Have offline decoding emit an AsyncLoading instead of AsyncError (#4235)
fixes #4218

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
- Loading states now preserve cached value, progress, and prior errors
for smoother UI during updates.
- Improved handling of complex async transitions to avoid merging
issues.

- Bug Fixes
  - Reduced unnecessary rebuilds in chained/offline provider scenarios.
- More reliable behavior when decoding persisted data and when adapters
emit values from storage.

- Refactor
- Internal module consolidation and import cleanup; no public API
changes.

- Tests
- Added regression tests covering offline chaining, async persistence
decoding, and DB-backed emissions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-13 17:01:23 +02:00
8b3322efee Remove out of date tests 2025-08-12 21:39:31 +02:00
aa222dfe52 Remove stale lint 2025-08-12 21:20:01 +02:00
0ab375c8a1 Add regression test for #4126
closes #4126
2025-08-12 18:36:55 +02:00
5778aa2248 Fuse FamilyNotifier and Notifier (#4229)
fixes #4218
2025-08-12 18:18:22 +02:00
af498b2919 Bump dio from 5.8.0+1 to 5.9.0 (#4227)
Bumps [dio](https://github.com/cfug/dio) from 5.8.0+1 to 5.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/cfug/dio/releases">dio's
releases</a>.</em></p>
<blockquote>
<h2>dio 5.9.0</h2>
<h2>What's new</h2>
<ul>
<li>Do not allow updating the error field after a cancel token has
canceled.</li>
<li>Allow passing an initial interceptors list to the constructor of
<code>Interceptors</code>.</li>
<li>Use <code>package:mime</code> to help determine the
<code>content-type</code> of <code>MultipartFile</code> base on the
provided <code>filename</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fe1a62f282"><code>fe1a62f</code></a>
🔖 dio v5.9.0</li>
<li><a
href="0ebfc9a20e"><code>0ebfc9a</code></a>
🔖 cookie_manager v3.3.0</li>
<li><a
href="5e8f1f5de4"><code>5e8f1f5</code></a>
️ Use <code>package:mime</code> to help determine the
<code>content-type</code> of <code>MultipartFile</code>...</li>
<li><a
href="fd4a4de7ec"><code>fd4a4de</code></a>
️ Improve how <code>CookieManager</code> proceed with exceptions (<a
href="https://redirect.github.com/cfug/dio/issues/2428">#2428</a>)</li>
<li><a
href="b6a2dd3cf8"><code>b6a2dd3</code></a>
Bump actions-cool/issues-helper from 3.6.0 to 3.6.2 (<a
href="https://redirect.github.com/cfug/dio/issues/2429">#2429</a>)</li>
<li><a
href="30dcf6387a"><code>30dcf63</code></a>
️ Allow passing an initial interceptors list to the constructor of
`Intercep...</li>
<li><a
href="29723d43df"><code>29723d4</code></a>
🔖 native_dio_adapter v1.5.0</li>
<li><a
href="30b772e6e8"><code>30b772e</code></a>
️ Expose underlying adapters from all adapters (<a
href="https://redirect.github.com/cfug/dio/issues/2423">#2423</a>)</li>
<li><a
href="b501133aaa"><code>b501133</code></a>
 Close <code>CronetEngine</code> when closing the
<code>CronetClient</code> (<a
href="https://redirect.github.com/cfug/dio/issues/2422">#2422</a>)</li>
<li><a
href="9a233d58f8"><code>9a233d5</code></a>
Fix the missing character in <code>native_dio_adapter</code>'s
README</li>
<li>Additional commits viewable in <a
href="https://github.com/cfug/dio/compare/dio_v5.8.0...dio_v5.9.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dio&package-manager=pub&previous-version=5.8.0+1&new-version=5.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 11:36:45 +02:00
bbe36ab06c Handle (T,) records in generated code (#4226) 2025-08-11 22:16:34 +02:00