riverpod_mutation_utils 0.5.8
riverpod_mutation_utils: ^0.5.8 copied to clipboard
Runtime helpers, annotations, and mixins for Riverpod experimental mutations.
0.5.8 #
- Update README documentation with simplified quick starts, family provider recommendations, and updated installation instructions.
0.5.7 #
- Add
ignoreIfSuccessparameter and convenienceOnce-suffixed methods (submitActionOnce,submitActionStateOnce,submitOnce,submitStateOnce) to prevent duplicate resubmissions.
0.5.6 #
- Add state-returning submission helpers:
MutationRunner.submitActionState,StateFormMixin.submitState,AsyncStateFormMixin.submitState, andMutationActionMixin.submitActionState. - Document the difference between throwing result-returning submissions and non-throwing mutation-state-returning submissions.
0.5.5 #
- Improve the pub.dev README by removing local development details and refreshing installation guidance for the current companion generator version.
0.5.4 #
- Change
MutationActionMixinso action-only providers keep the owner alive while pending but no longer reset mutation state automatically on owner dispose. - Add
MutationResetPolicyandMutationRunner.reset(...)so reset ownership can be explicit and action mutations can be reset manually or by listeners. - Keep
StateFormMixinandAsyncStateFormMixinon reset-on-owner-dispose by default.
0.5.3 #
- Fix provider-disposal mutation reset timing by deferring
mutation.reset(...)out ofref.onDispose, which avoids illegal provider writes during invalidation-driven rebuilds. - Add regression coverage for async submitters that invalidate watched
dependencies from
afterSuccess. - Bump the companion generator dependency to
0.5.3.
0.5.2 #
- Revert the
0.5.1MutationActionMixin<Result>defaultbuild()change. Action providers must declarebuild(...)explicitly so family providers keep their required parameter shape. - Bump the companion generator dependency to
0.5.2.
0.5.1 #
- Bump the companion generator dependency to
0.5.1.
0.5.0 #
- Breaking:
MutationActionMixin<Result>now requiresNotifier<void>so action-only providers cannot useMutationState<Result>as their own state. Watch the separate mutation accessor for pending/success/error instead. - Bump the companion generator dependency to
0.5.0.
0.4.0 #
- Breaking: simplify runtime mixins to require a single
mutationgetter instead ofmutationBaseandmutationKey. - Add a generated convenience base such as
_$ItemUpdateFormMutation, so generated providers can keepStateFormMixin<...>explicit while hiding the wiring mixin. - Bump the companion generator dependency to
0.4.0.
0.3.4 #
- Retry the first automated pub.dev release after fixing release tag pushes to use
RELEASE_TAG_TOKEN. - Bump the companion generator dependency to
0.3.4.
0.3.3 #
- Prepare the first automated pub.dev release after enabling GitHub Actions publishing.
- Bump the companion generator dependency to
0.3.3.
0.3.2 #
- Restored hosted pub.dev release metadata and installation guidance.
- Added pub.dev automated publishing workflow support for tagged releases.
- Bumped the companion generator dependency to
0.3.2.
0.3.1 #
- Added generated usage examples for non-family, single-parameter family, and multi-parameter family providers.
- Stopped committing generated example
.g.dartfiles and updated CI to regenerate them before analysis and tests. - Expanded the package README with installation, quick-start, and design notes.
0.3.0 #
- Added
GenerateMutationfor generator-driven mutation wiring. - Added
generateMutationas a const annotation instance for@generateMutation. - Added a no-codegen example using
MutationRunnerdirectly. - Added a handwritten
riverpod_annotationexample for manual mutation wiring. - Added a handwritten non-family
riverpod_annotationexample. - Switched mixins to derive
mutationfrommutationBaseand optionalmutationKey, which makes family-safe mutation generation possible. - Re-exported Riverpod experimental mutation APIs from the runtime package.
0.2.0 #
- Changed
afterSuccesscallbacks to receive only the mutation result. - Kept submitting providers alive while mutations are pending and skip
afterSuccessif the original ref becomes unmounted. - Removed deprecated
performandperformActionhelpers.
0.1.0 #
- Added
MutationRunner<Result>for reusable mutation execution and listening. - Added
StateFormMixin,AsyncStateFormMixin, andMutationActionMixin. - Replaced scaffold placeholders with working package docs, example, and tests.