zenrouter_core 2.1.0
zenrouter_core: ^2.1.0 copied to clipboard
The core routing engine and unified interfaces for the ZenRouter navigation system. Contains common models, types, and logic used across the zenrouter ecosystem.
2.1.0 #
New Features #
GuardRule/RouteGuardRule: Composable pop-guard chains (first non-nullboolwins), mirroringRedirectRule/RouteRedirectRule.RouteGuard.canPop/canPopListenable: Sync PopScope hint plus optionalListenableMixininvalidation when leave-safety changes.ListenableMixin: Subscribe-only reactive surface (withListenableMixin.merge);ListenableObjectnow implements it.
Breaking Changes #
CoordinatorCore.pop: Pops only the nearest eligible stack path. Nested shells are no longer popped together with child stacks in a single call.RouteRedirect.resolve: ThrowsStateErrorwhen a redirect returns a different route type (previously silently ignored).
2.0.3 #
- chore: make
RedirectRulecan be const
2.0.2 #
- Fix
CoordinatorModular.getModulenow correctly resolves the coordinator itself by registeringruntimeType: thisin_allModules, enablinggetModule<MyCoordinator>()to work at any level of the hierarchy.
2.0.1 #
- Fix
CoordinatorModularedge case cascading dispose and prevent duplicate definitions.
2.0.0 #
- Extract core function from
zenrouterpackage