Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riverpod 3.0 #3058

Draft
wants to merge 441 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 240 commits
Commits
Show all changes
441 commits
Select commit Hold shift + click to select a range
ed0020b
Update generated files
rrousselGit Feb 10, 2024
177d5d8
Fix example
rrousselGit Feb 10, 2024
deb1599
Update website
rrousselGit Feb 10, 2024
94878d5
Run riverpod_lint on website
rrousselGit Feb 10, 2024
579ec75
Fix missing imports
rrousselGit Feb 10, 2024
d712d12
Fix lints
rrousselGit Feb 10, 2024
ce72789
Disable unreachable_from_main in generated code
rrousselGit Feb 10, 2024
92918a6
Update generated code
rrousselGit Feb 10, 2024
d6383d0
Fix some lints
rrousselGit Feb 10, 2024
5dd5b1e
Fix unreachable_from_main
rrousselGit Feb 10, 2024
681404b
Fix lints
rrousselGit Feb 10, 2024
eaa780e
Fix some lints
rrousselGit Feb 10, 2024
77508d6
Update generated files
rrousselGit Feb 10, 2024
83ab0b4
Fix keepAlive family
rrousselGit Feb 10, 2024
e49419c
Avoid unnecessary cast
rrousselGit Feb 10, 2024
b1a6de8
Update generated code
rrousselGit Feb 10, 2024
0c61024
Rename cb
rrousselGit Feb 10, 2024
4f8a893
Update generated code
rrousselGit Feb 10, 2024
f839418
fix lints
rrousselGit Feb 10, 2024
5365a2c
Fix some lints
rrousselGit Feb 10, 2024
433f63d
More lints
rrousselGit Feb 10, 2024
ad34d52
Fix some lints
rrousselGit Feb 10, 2024
f27ac61
createElement->$createElement
rrousselGit Feb 10, 2024
34dc25e
Update generated code
rrousselGit Feb 10, 2024
963016a
Document private APIs
rrousselGit Feb 10, 2024
dfef923
Add some lints
rrousselGit Feb 10, 2024
4acf48d
Add some newlines
rrousselGit Feb 10, 2024
61c1b82
Merge branch 'dev' into rewrite
rrousselGit Feb 10, 2024
e87d40f
Fix test
rrousselGit Feb 10, 2024
14379a6
Update goldens
rrousselGit Feb 10, 2024
1212fb0
Update custom_lint
rrousselGit Feb 10, 2024
0cf51e5
Fix command failure
rrousselGit Feb 10, 2024
b2ad2d1
Sync dev with master (#3332)
rrousselGit Feb 10, 2024
ac39b7e
Sync rewrite with dev (#3333)
rrousselGit Feb 10, 2024
c1b966a
Merge branch 'dev' into rewrite
rrousselGit Feb 10, 2024
0fb4c5b
Format
rrousselGit Feb 10, 2024
163ad5c
Skip some tests
rrousselGit Feb 10, 2024
eccd762
Handle notifier error
rrousselGit Feb 10, 2024
91c6fb5
Fix error handling
rrousselGit Feb 10, 2024
f4ef947
Fix CI
rrousselGit Feb 11, 2024
0544dcb
Merge pull request #3331 from rrousselGit:rewrite
rrousselGit Feb 11, 2024
626be52
Add riverpod_syntax_error lint
rrousselGit Feb 11, 2024
4850853
Make notifier_build an error
rrousselGit Feb 11, 2024
9ef6b59
Remove dead code and clean-up a bit
rrousselGit Feb 11, 2024
b450246
Ignore codegen in riverpod_syntax_error
rrousselGit Feb 11, 2024
594237c
Make some lints warnings
rrousselGit Feb 11, 2024
55dab0c
Add avoid_keep_alive_dependency_inside_auto_dispose
rrousselGit Feb 11, 2024
6dc06c1
Fix lint
rrousselGit Feb 11, 2024
7f762e7
Add automatic migration for missing legacy import (#3334)
rrousselGit Feb 11, 2024
35632a7
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
1b61228
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
b5fd16f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
7711174
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
ac6c9f0
Format
rrousselGit Feb 11, 2024
03ff3da
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
ef66802
Update CI
rrousselGit Feb 11, 2024
83fd6de
Update dependencies doc
rrousselGit Feb 11, 2024
44d46e1
Fix scoped notifiers not specifying dependencies
rrousselGit Feb 12, 2024
5b45356
Typos
rrousselGit Feb 12, 2024
e1358b4
Use code-gen to automatically handle RiverpodAstVisitor (#3345)
rrousselGit Feb 13, 2024
585a10b
Update packages/riverpod_lint/README.md
rrousselGit Feb 14, 2024
9ddec6e
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 15, 2024
52c033c
Merge remote-tracking branch 'upstream/dev' into riverpod-generator/d…
ValentinVignal Feb 21, 2024
513a3f3
style: Format code
ValentinVignal Feb 21, 2024
f92eead
chore: Update pubspec_overrides
ValentinVignal Feb 21, 2024
b633016
Add `@Dependencies` (#3364)
rrousselGit Feb 25, 2024
620c5a8
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pr…
rrousselGit Feb 25, 2024
5e6541f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 25, 2024
fafd2de
Update changelog
rrousselGit Feb 25, 2024
be8e07a
Merge pull request #3355 from ValentinVignal/riverpod-generator/dev/A…
rrousselGit Feb 25, 2024
a670f02
Fix some scoping issues (#3365)
rrousselGit Feb 26, 2024
d423c55
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 26, 2024
8208451
AsyncValue.value now returns `null` on error
rrousselGit Feb 26, 2024
3f76c4f
Add interface that can be applied on al notifiers
rrousselGit Feb 26, 2024
e24c2b8
Fix valueOrNull usage
rrousselGit Feb 26, 2024
e3be446
Increase timeout
rrousselGit Feb 26, 2024
91ba8b2
Update codegen
rrousselGit Feb 26, 2024
6c2d0fb
Update docs a bit
rrousselGit Feb 28, 2024
3972c1f
Update exports
rrousselGit Feb 28, 2024
e413c57
Update generated files
rrousselGit Feb 28, 2024
88dda63
CI
rrousselGit Feb 28, 2024
2905864
Remove AsyncValue extension
rrousselGit Feb 28, 2024
b2ff9f4
Unexport CircularDependencyError
rrousselGit Feb 28, 2024
fe5c022
Riverpod FutureProviderRef
rrousselGit Feb 28, 2024
4810760
Rename generics
rrousselGit Feb 28, 2024
f6d0dea
Update todos
rrousselGit Feb 28, 2024
5c2e96a
More todos
rrousselGit Feb 28, 2024
f360877
Add doc
rrousselGit Feb 28, 2024
eb95973
Update flutter_riverpod docs
rrousselGit Feb 28, 2024
220a497
hooks_riverpod
rrousselGit Feb 28, 2024
04ecc33
Override_with_value (#3375)
rrousselGit Mar 1, 2024
a7cbae4
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 1, 2024
cc55be0
Add a way to do a "full reload" using invalidate (#3378)
rrousselGit Mar 1, 2024
ef8ad91
Remove redundant line
rrousselGit Mar 1, 2024
d7816cf
Add regression test for #3249
rrousselGit Mar 1, 2024
7971b3a
Fix `provider_parameters` for objects using mixins. (#3379)
rrousselGit Mar 1, 2024
861066a
Fix family provider override
rrousselGit Mar 1, 2024
412bba7
Changelog
rrousselGit Mar 1, 2024
3c47a0a
Correctly close pending scheduler timers when disposing containers
rrousselGit Mar 1, 2024
87b7dc5
`ref.invalidate` now correctly clear all resources associated with th…
rrousselGit Mar 1, 2024
48cd71f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 1, 2024
65ea8c9
Merge branch 'full-dispose-invalidate' of https://github.com/rroussel…
rrousselGit Mar 1, 2024
28d70d0
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 1, 2024
5ccbfe4
Init changeset
rrousselGit Mar 7, 2024
810ccb8
Disable changelog set
rrousselGit Mar 7, 2024
5076132
Separate Ref and ProviderElement (#3389)
rrousselGit Mar 7, 2024
491f870
Recreate Notifiers on rebuild (#3393)
rrousselGit Mar 8, 2024
328676f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 9, 2024
f59b755
Fix golden
rrousselGit Mar 9, 2024
8248f5e
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 10, 2024
a179df2
Revert involuntary revert
rrousselGit Mar 10, 2024
439a606
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 10, 2024
2e2791d
Improve error message
rrousselGit Mar 10, 2024
db06fef
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 10, 2024
0aefb65
Update import
rrousselGit Mar 10, 2024
3cb83e4
Remove deprecated members
rrousselGit Mar 10, 2024
edf2bd8
Update goldens
rrousselGit Mar 10, 2024
e72869e
Merge pull request #3412 from rrousselGit/remove-parent
rrousselGit Mar 10, 2024
80d281d
Changelogs
rrousselGit Mar 11, 2024
ce5afa2
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 11, 2024
1138026
Use 3.0.0 as min version
rrousselGit Mar 11, 2024
e3b358e
Refactor
rrousselGit Mar 11, 2024
8ffd2b3
Merge pull request #3415 from rrousselGit/refactor
rrousselGit Mar 11, 2024
faad87b
Remove createContainer in flutter_riverpod
rrousselGit Mar 13, 2024
8a21eef
Remove todo
rrousselGit Mar 13, 2024
1664a9c
Improve coverage
rrousselGit Mar 13, 2024
f661cd0
Coverage
rrousselGit Mar 13, 2024
a11ea81
More tests
rrousselGit Mar 14, 2024
52bb32d
ProviderElementBase > ProviderElement
rrousselGit Mar 14, 2024
970e79c
Remove todo
rrousselGit Mar 14, 2024
6058b3a
Merge pull request #3423 from rrousselGit/rename-element
rrousselGit Mar 14, 2024
a7d30f5
Cleanup
rrousselGit Mar 14, 2024
367649c
Coverage
rrousselGit Mar 14, 2024
ad2c0fd
Coverage
rrousselGit Mar 14, 2024
2807d43
Cleanup
rrousselGit Mar 14, 2024
88a865b
Mooore
rrousselGit Mar 14, 2024
142a8d4
Cleanup
rrousselGit Mar 14, 2024
78419ae
Cleanup
rrousselGit Mar 14, 2024
597da1f
More
rrousselGit Mar 14, 2024
c31e913
Coverage
rrousselGit Mar 14, 2024
86e1176
Outdated todos
rrousselGit Mar 14, 2024
3bdbe9a
More
rrousselGit Mar 14, 2024
b3298f1
Remove commented code
rrousselGit Mar 14, 2024
fa99b20
More dead code
rrousselGit Mar 14, 2024
a82e1c1
Unskip stuff
rrousselGit Mar 14, 2024
2701c74
Improve DO/DON'T
rrousselGit Mar 14, 2024
d2a9e0d
W
rrousselGit Mar 15, 2024
d9ddce2
Rename
rrousselGit Mar 15, 2024
32ccc69
W
rrousselGit Mar 15, 2024
ea394c6
W
rrousselGit Mar 15, 2024
b95250d
W
rrousselGit Mar 15, 2024
d8001c1
Fix
rrousselGit Mar 16, 2024
79662d2
Add test
rrousselGit Mar 16, 2024
e2627d2
Add test
rrousselGit Mar 16, 2024
aea5b7a
Docs
rrousselGit Mar 16, 2024
0ad6424
Coverage
rrousselGit Mar 16, 2024
510b45b
Coverage
rrousselGit Mar 16, 2024
5c53649
Remove dead code
rrousselGit Mar 16, 2024
f96031e
Remove unused import
rrousselGit Mar 16, 2024
39db426
Add Ref.listen(weak: true)
rrousselGit Mar 16, 2024
fc09597
Update custom_lint
rrousselGit Mar 16, 2024
6e12b2e
Add test for missing `@internal` & co
rrousselGit Mar 16, 2024
59e8efe
Bump lint
rrousselGit Mar 16, 2024
36f3e20
Update docs
rrousselGit Mar 16, 2024
0f384f0
Refactor pause mechanism
rrousselGit Mar 17, 2024
b736550
Changelog
rrousselGit Mar 17, 2024
a57f4a0
Coverage
rrousselGit Mar 17, 2024
1aaaea8
Changelog
rrousselGit Mar 17, 2024
c52514d
Refactor _mount to use notifyListeners
rrousselGit Mar 17, 2024
ed0a372
Don't invoke paused listeners
rrousselGit Mar 17, 2024
eadd075
W
rrousselGit Mar 22, 2024
ebcdc2f
docs: fixed possible typo
LennartCode May 21, 2024
94aa75f
docs: fixed possible typo
LennartCode May 21, 2024
ab095de
Merge pull request #3565 from LennartCode/dev
rrousselGit May 21, 2024
ec043fe
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit May 27, 2024
6078e3e
Fix depreciation
rrousselGit Jun 2, 2024
946c109
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Jun 3, 2024
f06a310
Support retry
rrousselGit Jun 18, 2024
4bd891b
Update generated files
rrousselGit Jun 18, 2024
5912fdb
Fix CI
rrousselGit Jun 19, 2024
fa01085
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Jun 19, 2024
0ff9c5a
Fix depreciation
rrousselGit Jun 19, 2024
18165b8
More
rrousselGit Jun 19, 2024
be9da02
Fix test
rrousselGit Jun 19, 2024
3d9b748
Merge pull request #3623 from rrousselGit/retry
rrousselGit Jun 20, 2024
d68c6f9
Merge branch 'master' into dev
rrousselGit Jun 20, 2024
855a748
Add AsyncValue.progress
rrousselGit Jun 22, 2024
1a070bc
Merge pull request #3629 from rrousselGit:progress
rrousselGit Jun 22, 2024
55b7b12
Have `AsyncValue.progress` default to null instead of 0.
rrousselGit Jun 24, 2024
754d516
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Aug 15, 2024
bb8a0b2
Fix some tests
rrousselGit Aug 31, 2024
e9f132d
More tests
rrousselGit Aug 31, 2024
2615056
W
rrousselGit Sep 1, 2024
8723f8f
Restore most tests
rrousselGit Sep 7, 2024
5023bce
Add test
rrousselGit Sep 8, 2024
ad36b8b
W
rrousselGit Sep 10, 2024
8e4515d
Fixup some tests
rrousselGit Sep 12, 2024
5cb43e5
Fix propagation
rrousselGit Sep 12, 2024
84cbb04
Fix flutter_riverpod
rrousselGit Sep 13, 2024
7187a1f
Patch tests
rrousselGit Sep 13, 2024
d38507a
Complete pause
rrousselGit Sep 14, 2024
66e0a89
Cleanup
rrousselGit Sep 14, 2024
0e1802b
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pause
rrousselGit Sep 14, 2024
abb9a61
Changelog
rrousselGit Sep 14, 2024
140192d
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Sep 14, 2024
95a24c9
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pause
rrousselGit Sep 14, 2024
fcee6f5
Update codegen
rrousselGit Sep 14, 2024
8f0917c
Fix lint
rrousselGit Sep 14, 2024
b0f2682
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pause
rrousselGit Sep 14, 2024
980d0f1
Format
rrousselGit Sep 14, 2024
5fa0556
Listen Visibility to pause subscriptions
rrousselGit Sep 17, 2024
027c756
Fix AST caching
rrousselGit Sep 17, 2024
088cfcc
Remove unused default
rrousselGit Sep 17, 2024
f6e5e01
Fix test
rrousselGit Sep 18, 2024
4e4c4ba
Fix codegen
rrousselGit Sep 18, 2024
36f93a9
Merge pull request #3428 from rrousselGit/pause
rrousselGit Sep 21, 2024
ff77de7
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Sep 21, 2024
a21ea32
Update Ref
rrousselGit Nov 1, 2024
262c149
Update Ref
rrousselGit Nov 1, 2024
2585409
Fix lint tests
rrousselGit Nov 1, 2024
9c2dbc6
Fix more lints
rrousselGit Nov 1, 2024
b705da0
Updated generated files
rrousselGit Nov 1, 2024
3f7bc94
Remove Ref type-arg
rrousselGit Nov 1, 2024
6082367
Ref<T> => Ref
rrousselGit Nov 1, 2024
f95b3fe
Fix riverpod tests
rrousselGit Nov 2, 2024
3f5fd41
Fix some depreciation
rrousselGit Nov 2, 2024
81f41e7
Fix lints
rrousselGit Nov 2, 2024
3188d25
Fix lints
rrousselGit Nov 2, 2024
00f8962
Lint
rrousselGit Nov 2, 2024
0c775d3
Use enclosingElement
rrousselGit Nov 2, 2024
fa387c2
Fix goldens
rrousselGit Nov 3, 2024
3ceda7c
Fix lint
rrousselGit Nov 3, 2024
b2432b0
enclosingElement3
rrousselGit Nov 3, 2024
d499f35
Merge pull request #3825 from rrousselGit/sync-dev
rrousselGit Nov 3, 2024
003f2f7
Sync dev with master
rrousselGit Nov 18, 2024
ec753f9
Lints
rrousselGit Nov 18, 2024
965ef13
fix test
rrousselGit Nov 18, 2024
ecb52b3
goldens
rrousselGit Nov 19, 2024
e79523a
Merge pull request #3841 from rrousselGit:sync-dev
rrousselGit Nov 19, 2024
5ba44ab
Add mutations (#3860)
rrousselGit Dec 8, 2024
c21fee7
Add a way to unregister life-cycle listeners (#3862)
rrousselGit Dec 9, 2024
459aec7
Fix-3490 (#3863)
rrousselGit Dec 9, 2024
f2b304c
Auto add imports (#3864)
rrousselGit Dec 9, 2024
d840c18
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Dec 9, 2024
24894de
Imports
rrousselGit Dec 9, 2024
d7b791c
Fix goldens
rrousselGit Dec 9, 2024
cc80883
Fix-stream-cancel (#3865)
rrousselGit Dec 9, 2024
d90f2d3
Skip unimplemented test
rrousselGit Dec 11, 2024
d7dc8e3
Merge branch 'master' into dev
rrousselGit Dec 24, 2024
aaa38bf
Fix mutation codegen (#3876)
r52 Dec 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Related Issues

fixes #your-issue-number

<!--
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.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ on:
paths-ignore:
- "**.md"
- "**.mdx"
push:
branches:
- master
- dev
paths-ignore:
- "**.md"
- "**.mdx"

schedule:
# runs the CI everyday at 10AM
Expand All @@ -28,7 +21,6 @@ jobs:
strategy:
matrix:
channel:
- stable
- master
package_path:
- examples/counter
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Check CHANGELOG.md

on:
push:
branches:
- master
- dev
pull_request:


jobs:
changelog:
Expand All @@ -28,5 +23,5 @@ jobs:
- name: Install "semantic_changelog"
run: dart pub global activate -s git https://github.com/rrousselGit/semantic_changelog

- run: git fetch origin master:refs/remotes/origin/master
- run: semantic_changelog check origin/master
- run: git fetch origin dev:refs/remotes/origin/dev
- run: semantic_changelog check origin/dev
2 changes: 2 additions & 0 deletions .github/workflows/check_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Check code-generation

on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/riverpod_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
- dev
paths-ignore:
- "**.md"
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Finally, head to `localhost:3000`
### Adding new language

Riverpod supports multiple languages.
To add new languages, it is recommended to follow the [i18n](https://docusaurus.io/fr/docs/i18n/introduction)
To add new languages, it is recommended to follow the [i18n](https://docusaurus.io/docs/i18n/introduction)
documentation of Docusaurus.

The English documentation is hosted in [`/website/docs`](https://github.com/rrousselGit/riverpod/tree/master/website/docs).
Expand Down Expand Up @@ -119,4 +119,4 @@ your code snippets should support those.
This is done by having a separate `.dart` file for each possible scenario.
Again, look at the [Getting Started] for an example.

[Getting Started]: https://github.com/rrousselGit/riverpod/blob/rework-flow/website/docs/introduction/getting_started.mdx
[Getting Started]: https://github.com/rrousselGit/riverpod/blob/master/website/docs/introduction/getting_started.mdx
2 changes: 2 additions & 0 deletions all_lint_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ linter:
- always_specify_types
- always_use_package_imports
- annotate_overrides
- annotate_redeclares
- avoid_annotating_with_dynamic
- avoid_bool_literals_in_conditional_expressions
- avoid_catches_without_on_clauses
Expand Down Expand Up @@ -44,6 +45,7 @@ linter:
- avoid_types_as_parameter_names
- avoid_types_on_closure_parameters
- avoid_unnecessary_containers
- avoid_unstable_final_fields
- avoid_unused_constructor_parameters
- avoid_void_async
- avoid_web_libraries_in_flutter
Expand Down
6 changes: 0 additions & 6 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ linter:

# Low value and lacks a quick fix
combinators_ordering: false

# Low value and high cost to change on all files
eol_at_end_of_file: false

# Conflicts with unused variables
no_leading_underscores_for_local_identifiers: false
Expand Down Expand Up @@ -84,6 +81,3 @@ linter:

# conflicts with `prefer_relative_imports`
always_use_package_imports: false

# Disabled for now until we have NNBD as it otherwise conflicts with `missing_return`
no_default_cases: false
2 changes: 1 addition & 1 deletion benchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.12.0-0 <3.0.0"
sdk: ">=3.0.0-0.0-dev <4.0.0"

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The standard Flutter Counter example built with [Riverpod]

This uses `ProvidedScope`.
This uses `ProviderScope`.


[riverpod]: https://github.com/rrousselGit/riverpod
2 changes: 2 additions & 0 deletions examples/counter/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main, https://github.com/dart-lang/linter/issues/4652

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
Expand Down
92 changes: 77 additions & 15 deletions examples/counter/lib/main.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/counter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.3.3
custom_lint: ^0.5.2
custom_lint: ^0.6.0
flutter_test:
sdk: flutter
freezed: ^2.3.2
Expand Down
5 changes: 3 additions & 2 deletions examples/counter/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ dependency_overrides:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
# https://github.com/vegardit/dart-hotreloader/issues/14
vm_service: ">=8.0.0 <14.0.0"

# hotreloader issue
vm_service: ^14.0.0
4 changes: 2 additions & 2 deletions examples/marvel/lib/src/configuration.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/marvel/lib/src/marvel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MarvelRepository {
}) : _getCurrentTimestamp = getCurrentTimestamp ??
(() => DateTime.now().millisecondsSinceEpoch);

final Ref ref;
final Ref<MarvelRepository> ref;
final int Function() _getCurrentTimestamp;
final _characterCache = <String, Character>{};

Expand Down
12 changes: 6 additions & 6 deletions examples/marvel/lib/src/marvel.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading