Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion packages/kaisel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased
## 1.1.0

Additive only — no breaking changes.

- `reevaluateOn` on `KaiselRouterConfig` / `KaiselRouterDelegate`: point it at
any `Listenable` and the guard pipeline re-runs against the current stack
Expand All @@ -16,6 +18,14 @@
main stack, shell branches, modules, and flows — so screen-view analytics
no longer re-logs a tab you return to
([#66](https://github.com/Mastersam07/kaisel/issues/66)).
- Migration guides: a full auto_route verb translation table (with the two
translations that silently change behaviour called out), how `AutoRouter`
parent-with-`children:` shells map onto flattening, modules, or shell
branches, and notes on callback-carrying routes and inherited path params
([#67](https://github.com/Mastersam07/kaisel/issues/67),
[#68](https://github.com/Mastersam07/kaisel/issues/68),
[#69](https://github.com/Mastersam07/kaisel/issues/69),
[#70](https://github.com/Mastersam07/kaisel/issues/70)).

## 1.0.0+1

Expand Down
4 changes: 2 additions & 2 deletions packages/kaisel/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: kaisel
description: A Dart 3-native Flutter router built on sealed routes, pattern matching, and a stack-as-state model. No string paths, no codegen.
version: 1.0.0+1
version: 1.1.0
repository: https://github.com/Mastersam07/kaisel
homepage: https://kaisel.dev
issue_tracker: https://github.com/Mastersam07/kaisel/issues
Expand All @@ -26,7 +26,7 @@ dependencies:
flutter:
sdk: flutter
meta: ^1.15.0
kaisel_core: ^1.0.0
kaisel_core: ^1.1.0
web: ^1.1.0

dev_dependencies:
Expand Down
4 changes: 3 additions & 1 deletion packages/kaisel_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Unreleased
## 1.1.0

Additive only — no breaking changes.

- `KaiselRouter.reevaluate()` — re-runs the guard pipeline against the current
stack and applies the result, so a policy that changes while the stack sits
Expand Down
2 changes: 1 addition & 1 deletion packages/kaisel_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: kaisel_core
description: Pure-Dart navigation core for the kaisel router — sealed routes, a stack-as-state model, guards, and URL codecs. No Flutter, no codegen.
version: 1.0.1
version: 1.1.0
repository: https://github.com/Mastersam07/kaisel/tree/dev/packages/kaisel_core
homepage: https://github.com/Mastersam07/kaisel/tree/dev/packages/kaisel_core
issue_tracker: https://github.com/Mastersam07/kaisel/issues
Expand Down
3 changes: 2 additions & 1 deletion packages/kaisel_core/test/kaisel_reevaluate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ final class _Passcode extends _R {
KaiselGuard<_R> _lockGuard(bool Function() locked) => (current, proposed) {
final protected = proposed.any((route) => route is _Vault);
final hasPasscode = proposed.any((route) => route is _Passcode);
if (protected && locked() && !hasPasscode)
if (protected && locked() && !hasPasscode) {
return [...proposed, const _Passcode()];
}
if (!locked() && hasPasscode) {
return proposed.where((route) => route is! _Passcode).toList();
}
Expand Down
Loading