refena 0.32.0 copy "refena: ^0.32.0" to clipboard
refena: ^0.32.0 copied to clipboard

A state management library for Dart and Flutter. Inspired by Riverpod and async_redux.

0.32.0 #

  • feat: add debugOrigin to ProviderDisposeEvent and trace it in RefenaTracingPage
  • BREAKING: ProviderDisposeEvent do not have a notifier attribute anymore

0.31.0 #

  • feat(graph): add animation
  • fix(tracing): correctly assign the parent action of an action
  • BREAKING: defaultNotifyStrategy is now NotifyStrategy.equality instead of NotifyStrategy.identity

0.30.0 #

Announcing refena_inspector: a new package to visualize the dependency graph and events in real-time. See refena_inspector for more details.

  • BREAKING: RefenaScope or RefenaContainer now have an observers parameter instead of observer, which is a list of observers instead of a single observer
  • fix: observers should not receive events if init is not called

0.29.0 #

  • BREAKING: rebranding to Refena

0.28.0 #

  • feat: add RiverpieGraphPage to visualize the dependency graph of notifiers
  • feat: notifiers expose a provider getter to access the corresponding provider
  • fix: ref.dispose should also dispose dependencies
  • fix: change method signature generics of ReduxAction.external to keep the state type
  • fix: handle case when action is finished after the notifier is disposed

0.27.0 #

  • feat(ReduxProvider): allow to override initialState
  • feat(TracingPage): hide time column by default (can be enabled via constructor)
  • feat(TracingPage): add exclude, include and query constructor parameters to filter events
  • feat(TracingPage): format action result as JSON if possible

0.26.0 #

  • feat: add ref.container to access low-level APIs of RiverpieContainer
  • feat: add container.set to override providers even after initialization

0.25.0 #

  • feat: add disposeAction getter to ReduxNotifier
  • feat: small improvements for RiverpieTracingPage
  • feat: improve RiverpieDebugObserver logging for dispatching actions
  • fix: correctly dispose ViewProvider when ref.dispose is called
  • BREAKING: remove listener added/removed events due to excessive logging with little value

0.24.0 #

  • feat: add GlobalAction, a family of actions that don't belong to any notifier
  • BREAKING: Change with AddonActions to with GlobalActions

0.23.0 #

  • feat: throw full async stack trace when using dispatchAsync
  • feat: add postInit for notifiers
  • BREAKING: ReduxNotifiers should not dispatch actions directly anymore, override the getter initialAction instead

0.22.0 #

  • feat: make add-on actions customizable
  • feat: add errorParser to RiverpieTracingPage to better visualize errors
  • feat: add default parser for DioException (without introducing a dependency to dio)
  • fix: should emit events within init of a ReduxNotifier
  • BREAKING: events now have millisSinceEpoch instead of microsSinceEpoch

0.21.0 #

  • feat: add addon to ReduxAction
  • feat: show execution time of ReduxAction in RiverpieTracingPage
  • BREAKING: change ref.emitMessage to ref.message

0.20.0 #

  • feat: add NavigationService, example usage: ref.read(navigationProvider).push(MyPage())
  • feat: add SnackBarService, example usage: ref.read(snackBarProvider).showSnackBar('Hello')
  • feat: add ref.dispose(provider)
  • feat: add ref.emitMessage to emit custom messages to the observer

0.19.0 #

  • feat: add error handling for redux actions
  • feat: access ref within observers
  • feat: add defaultNotifyStrategy parameter for RiverpieScope
  • feat: improve RiverpieTracingPage UI
  • feat: export ProviderOverride

0.18.0 #

  • feat: improve RiverpieTracingPage UI

0.17.0 #

  • feat: add RiverpieTracingObserver and RiverpieTracingPage
  • BREAKING: distinguish between sync and async ReduxAction (see updated documentation)

0.16.0 #

  • fix: should update ref.watch config
  • feat: add Provider.overrideWithValue
  • BREAKING: Provider.overrideWithValue to Provider.overrideWithBuilder
  • BREAKING: renaming setup to internalSetup to avoid name clashes

0.15.1 #

  • fix: missing FutureFamilyProvider export

0.15.0 #

  • BREAKING: ReduxAction is now action based instead of event based

0.14.0 #

  • feat: add ChangeNotifierProvider
  • feat: add FutureFamilyProvider

0.13.0 #

  • feat: add provider.overrideWithFuture for regular providers (should call scope.ensureOverrides)
  • fix: refer to non-override from override

0.12.0 #

  • feat: add origin of event (widget or notifier) to EventEmittedEvent
  • feat: add Notifier.test, AsyncNotifier.test and ReduxNotifier.test
  • BREAKING: ReduxNotifier requires a ReduxProvider now
  • BREAKING: recommended emit method is ref.redux(myReduxProvider).emit(MyEvent())

0.11.0 #

  • feat: add ReduxNotifier
  • feat: add ref.watch(provider.select(...)) to only rebuild when a specific value changes
  • feat: add toString implementation to AsyncValue
  • feat: add toString implementation to providers
  • feat: add more options for RiverpieHistoryObserver
  • fix: missing ref in AsyncNotifier
  • BREAKING: add ref parameter to provider overrides
  • BREAKING: rename ChangeEvent.flagRebuild to ChangeEvent.rebuild

0.10.0 #

  • BREAKING: use riverpie_flutter for Flutter projects
  • BREAKING: change AsyncSnapshot to AsyncValue to decouple from Flutter

0.9.0 #

  • feat: add AsyncNotifierProvider and the corresponding AsyncNotifier
  • feat: add ref.future to access the Future of an AsyncNotifierProvider or a FutureProvider
  • feat: add ref.watchWithPrev to access the previous value of an AsyncNotifierProvider

0.8.0 #

  • feat: add context.ref to also access ref inside StatelessWidget
  • feat: add RiverpieMultiObserver to use multiple observers at once

0.7.0 #

  • feat: add ViewProvider, the only provider that can watch other providers
  • feat: add initialProviders parameter for RiverpieScope
  • feat: add exclude parameter for RiverpieDebugObserver
  • BREAKING: setState of StateProvider accepts a builder instead of a value

0.6.0 #

  • feat: add RiverpieObserver and RiverpieDebugObserver
  • feat: add StateProvider for simple use cases
  • BREAKING: add ref parameter for ensureRef callback

0.5.1 #

  • fix: lint fixes

0.5.0 #

  • feat: RiverpieScope.defaultRef for global access to ref
  • feat: ref.stream for manual stream access
  • feat: ref.watch(myProvider, rebuildWhen: (prev, next) => ...) for more control over when to rebuild
  • feat: use ensureRef within initState for ref access within initialization logic
  • BREAKING: removed ref.listen, use ref.watch(myProvider, listener: (prev, next) => ...) instead

0.4.0 #

  • BREAKING: Consumer does not have a child anymore, use ExpensiveConsumer instead

0.3.0 #

  • feat: add FutureProvider

0.2.0 #

  • feat: introduction of PureNotifier, a Notifier without access to ref
  • BREAKING: add ref as parameter to every provider
  • BREAKING: change ref.notify to ref.notifier

0.1.1 #

  • docs: update README.md

0.1.0 #

  • Initial release
29
likes
0
pub points
76%
popularity

Publisher

verified publisherrefena.dev

A state management library for Dart and Flutter. Inspired by Riverpod and async_redux.

Repository (GitHub)
View/report issues

Topics

#state #provider #riverpod #framework #redux

License

unknown (license)

Dependencies

collection, meta

More

Packages that depend on refena