Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rrousselGit/riverpod
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: riverpod_generator-v2.3.6
Choose a base ref
...
head repository: rrousselGit/riverpod
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: riverpod_generator-v2.3.7
Choose a head ref
  • 5 commits
  • 28 files changed
  • 3 contributors

Commits on Nov 13, 2023

  1. Copy the full SHA
    717e89b View commit details

Commits on Nov 15, 2023

  1. Fix ProviderObserver.didUpdateProvider being called with an incorre…

    …ct "provider" parameter when the provider is overridden. (#3125)
    rrousselGit authored Nov 15, 2023
    Copy the full SHA
    00ee569 View commit details

Commits on Nov 20, 2023

  1. 🐞 fix(i18n, Link): path.sep & link path (#3132)

    1. fix meta_generator cann't read doc type by path.sep.
    2. fix Link components cann't use in i18n langurage.
    
    Co-authored-by: yang-lile <liluaya@foxmail.com>
    yang-lile and yang-lile authored Nov 20, 2023
    Copy the full SHA
    1d10c36 View commit details
  2. Copy the full SHA
    ee99ee0 View commit details
  3. The following packages have been updated: (#3137)

    riverpod                : 2.4.6 -> 2.4.7
    riverpod_analyzer_utils : 0.4.3 -> 0.5.0
    riverpod_annotation     : 2.3.1 -> 2.3.1
    riverpod_generator      : 2.3.6 -> 2.3.7
    riverpod_lint           : 2.3.4 -> 2.3.5
    flutter_riverpod        : 2.4.6 -> 2.4.7
    hooks_riverpod          : 2.4.6 -> 2.4.7
    rrousselGit authored Nov 20, 2023
    Copy the full SHA
    1581244 View commit details
Showing with 543 additions and 184 deletions.
  1. +1 −1 .github/workflows/changelog.yml
  2. +1 −1 .github/workflows/check_generation.yml
  3. +1 −1 .github/workflows/riverpod_lint.yml
  4. +5 −0 packages/flutter_riverpod/CHANGELOG.md
  5. +2 −2 packages/flutter_riverpod/pubspec.yaml
  6. +5 −0 packages/hooks_riverpod/CHANGELOG.md
  7. +3 −3 packages/hooks_riverpod/pubspec.yaml
  8. +5 −0 packages/riverpod/CHANGELOG.md
  9. +3 −3 packages/riverpod/lib/src/framework/element.dart
  10. +1 −1 packages/riverpod/pubspec.yaml
  11. +175 −121 packages/riverpod/test/framework/provider_observer_test.dart
  12. +9 −0 packages/riverpod/test/utils.dart
  13. +5 −0 packages/riverpod_analyzer_utils/CHANGELOG.md
  14. +4 −4 packages/riverpod_analyzer_utils/lib/src/riverpod_element.dart
  15. +1 −1 packages/riverpod_analyzer_utils/pubspec.yaml
  16. +50 −1 packages/riverpod_analyzer_utils_tests/test/consumer_test.dart
  17. +4 −0 packages/riverpod_annotation/CHANGELOG.md
  18. +1 −1 packages/riverpod_annotation/pubspec.yaml
  19. +4 −0 packages/riverpod_generator/CHANGELOG.md
  20. +3 −3 packages/riverpod_generator/pubspec.yaml
  21. +4 −1 packages/riverpod_lint/CHANGELOG.md
  22. +3 −3 packages/riverpod_lint/pubspec.yaml
  23. +22 −5 website/docs/essentials/passing_args/codegen/provider.dart
  24. +166 −1 website/docs/essentials/passing_args/codegen/provider.g.dart
  25. +32 −16 website/docs/essentials/passing_args/raw/family.dart
  26. +19 −5 website/docs/essentials/passing_args/raw/provider.dart
  27. +9 −9 website/meta_generator.js
  28. +5 −1 website/src/components/Link/index.tsx
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ on:


jobs:
build:
changelog:
runs-on: ubuntu-latest

steps:
2 changes: 1 addition & 1 deletion .github/workflows/check_generation.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ on:
- "**.md"

jobs:
build:
check_generation:
runs-on: ubuntu-latest

steps:
2 changes: 1 addition & 1 deletion .github/workflows/riverpod_lint.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ on:
- cron: "0 10 * * *"

jobs:
build:
riverpod_lint:
runs-on: ubuntu-latest

defaults:
5 changes: 5 additions & 0 deletions packages/flutter_riverpod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.4.7 - 2023-11-20

- Fix `ProviderObserver.didUpdateProvider` being called with an incorrect
"provider" parameter when the provider is overridden.

## 2.4.6 - 2023-11-13

- Exceptions in asynchronous providers are now correctly received
4 changes: 2 additions & 2 deletions packages/flutter_riverpod/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: flutter_riverpod
description: >
A simple way to access state from anywhere in your application
while robust and testable.
version: 2.4.6
version: 2.4.7
homepage: https://riverpod.dev
repository: https://github.com/rrousselGit/riverpod
issue_tracker: https://github.com/rrousselGit/riverpod/issues
@@ -18,7 +18,7 @@ dependencies:
flutter:
sdk: flutter
meta: ^1.4.0
riverpod: 2.4.6
riverpod: 2.4.7
state_notifier: ">=0.7.2 <2.0.0"

dev_dependencies:
5 changes: 5 additions & 0 deletions packages/hooks_riverpod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.4.7 - 2023-11-20

- Fix `ProviderObserver.didUpdateProvider` being called with an incorrect
"provider" parameter when the provider is overridden.

## 2.4.6 - 2023-11-13

- Exceptions in asynchronous providers are now correctly received
6 changes: 3 additions & 3 deletions packages/hooks_riverpod/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: hooks_riverpod
description: >
A simple way to access state from anywhere in your application
while robust and testable.
version: 2.4.6
version: 2.4.7
homepage: https://riverpod.dev
repository: https://github.com/rrousselGit/riverpod
issue_tracker: https://github.com/rrousselGit/riverpod/issues
@@ -18,8 +18,8 @@ dependencies:
flutter:
sdk: flutter
flutter_hooks: '>=0.18.0 <0.21.0'
flutter_riverpod: 2.4.6
riverpod: 2.4.6
flutter_riverpod: 2.4.7
riverpod: 2.4.7
state_notifier: ">=0.7.2 <2.0.0"

dev_dependencies:
5 changes: 5 additions & 0 deletions packages/riverpod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.4.7 - 2023-11-20

- Fix `ProviderObserver.didUpdateProvider` being called with an incorrect
"provider" parameter when the provider is overridden.

## 2.4.6 - 2023-11-13

- Exceptions in asynchronous providers are now correctly received
6 changes: 3 additions & 3 deletions packages/riverpod/lib/src/framework/element.dart
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ abstract class ProviderElementBase<State> implements Ref<State>, Node {
/// The [ProviderContainer] that owns this [ProviderElementBase].
@override
ProviderContainer get container => _container;
late ProviderContainer _container;
late final ProviderContainer _container;

/// Whether this [ProviderElementBase] is currently listened to or not.
///
@@ -573,7 +573,7 @@ The provider ${_debugCurrentlyBuildingElement!.origin} modified $origin while bu
for (final observer in _container.observers) {
runQuaternaryGuarded(
observer.didUpdateProvider,
provider,
origin,
previousState,
newState.stateOrNull,
_container,
@@ -586,7 +586,7 @@ The provider ${_debugCurrentlyBuildingElement!.origin} modified $origin while bu
error: (newState) {
runQuaternaryGuarded(
observer.providerDidFail,
provider,
origin,
newState.error,
newState.stackTrace,
_container,
2 changes: 1 addition & 1 deletion packages/riverpod/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: riverpod
description: >
A simple way to access state from anywhere in your application while robust
and testable.
version: 2.4.6
version: 2.4.7
homepage: https://riverpod.dev
repository: https://github.com/rrousselGit/riverpod
issue_tracker: https://github.com/rrousselGit/riverpod/issues
Loading