Conversation
Adapter that implements SessionStorage using the cache library's Storage interface. Supports any cache backend (Redis, file, etc.). - Configurable key prefix for namespace isolation - Configurable TTL (default: 7200s) - Cache-level encryption disabled (sessions have their own) - 100% test coverage (11 tests, 18/18 lines) Closes #337
feat(session): add CacheSessionStorage driver
When a middleware declares dependencies via getDependencies(), assigning only that middleware to a route now auto-includes all transitive dependencies from MiddlewareRegistry via BFS traversal. - resolveDependencies() walks the dependency graph before sorting - Missing dependencies are silently skipped - No duplicates when dependency is already assigned - Execution order preserved via existing topological sort Closes #380
feat(middleware): auto-resolve transitive dependencies
When the internal userRoles map is empty for a user, can() now checks if the user object has a getRoles() method and uses those roles. Internal map still takes precedence when populated. Closes #381
feat(access): can() fallback to SecurityPrincipal getRoles()
Scans a namespace for routable classes and registers API routes: - #[RestController] attributed classes (uses attribute name or derived) - WebService subclasses without attribute (uses getName()) - WebServicesManager subclasses (registered as manager routes) - Non-service classes are skipped Includes DI container integration for service instantiation. Closes #382 Closes #384
- ServiceRouter::dynamic() registers catch-all route for namespace - ServiceRouter::handle() resolves controller at request time, 404 if not found - RouteOption::NS constant for namespace-based routing - ServicesListCommand lists all discovered services with name, class, type, path Closes #383 Closes #385
- discover() accepts recursive flag for subdirectory scanning - Subdirectory names become kebab-cased URL path segments - Class names converted to kebab-case via CaseConverter - #[RestController] name with '/' is rejected (skipped) - Explicit attribute name is always flat (ignores directory nesting) - Non-recursive remains the default
- RouteCache class: build/load/clear cached service discovery results - Uses app's existing cache backend (file, Redis, etc.) - routes:cache CLI command to build cache - routes:clear CLI command to clear cache - Enabled via ROUTE_CACHE_ENABLED env variable - 100% test coverage (12 tests, 35/35 lines) Closes #386
feat: ServiceRouter — auto-discovery, dynamic routing, and caching
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #400 +/- ##
============================================
+ Coverage 83.67% 83.72% +0.04%
- Complexity 3067 3132 +65
============================================
Files 103 106 +3
Lines 9018 9230 +212
============================================
+ Hits 7546 7728 +182
- Misses 1472 1502 +30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This was referenced Jun 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Prepare framework for v3.0.0 stable release. Includes dependency updates, bug fixes, new features, and test improvements.
Motivation
Ship a stable, production-ready v3.0.0 release with all critical bugs fixed and key features implemented.
Changes
Dependencies
webfiori/http: v5.0.* → v6.0.*webfiori/file: v2.0.* → v2.1.*webfiori/jsonx: v4.0.* → v5.0.*webfiori/cli: v2.1.* → v2.2.*webfiori/mailer: v2.1.* → v2.2.*Bug Fixes
Features
CLI Commands Added
migrations:step— interactively apply or skip migrations one at a timeservices:list— list all auto-discovered API servicesroutes:cache— build route cache for productionroutes:clear— clear route cacheTesting
How to Test / Verify
Breaking Changes and Migration Steps
None. All changes are backward compatible.
Checklist
Related issues
Closes #337
Closes #380
Closes #381
Closes #387
Closes #388
Closes #389
Closes #391
Closes #392