15.0.0-rc.0 #324
LayZeeDK
announced in
Announcements
15.0.0-rc.0
#324
Replies: 2 comments
-
|
📖 Documentation has been added to the /docs directory. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
💎 Hundreds of test cases now cover complex route configurations and edge cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Features
LocalRouterStorematchesActivatedRoutemore closely (feat!: use local route for local router store #309)ActivatedRouteto serialize the router state for the local router store implementation (LocalRouterStore)LocalRouterStore.currentRoute$matchesActivatedRoute.snapshotRouterStore#selectRouteData(feat!: use strict route data #316)MinimalRouteDatawithStrictRouteData(feat!: use strict route parameters #319)RouterStore#routeData$andMinimalActivatedRouteSnapshot#datatypes fromDatatoStrictRouteData(feat!: use strict route parameters #319)BREAKING CHANGES
LocalRouterStore.currentRoute$matchesActivatedRoute.snapshotThis change in implementation will make the local router store more closely match
ActivatedRoutewhile the global router store matches NgRx Router Store selectors. Through complex route configurations, the router store implementations are exercised to identify edge case differences between them and any breaking changes introduced to the local router store.BEFORE:
AFTER:
The type parameter is removed from
RouterStore#selectRouteDatafor stricter typing and to enforce coercionBEFORE:
AFTER:
The
RouterStore#routeData$selector emitsStrictRouteDatainstead ofDataBEFORE:
AFTER:
RouterStore#routeParams$andMinimalActivatedRouteSnapshot#paramsuseStrictRouteDatainstead ofParams. Members are read-only and of typestring | undefinedinstead ofanyTypeScript will fail to compile application code that has assumed a route type parameter type other than
string | undefined.BEFORE:
AFTER:
StrictRouteDatamembers are now read-onlyTypeScript will fail to compile application code that mutates route data data structures.
BEFORE:
AFTER:
RouterStore#queryParams$andMinimalActivatedRouteSnapshot#queryParamsuseStrictRouteParamsinstead ofParams. Members are read-only and of typestring | undefinedinstead ofanyTypeScript will fail to compile application code that has assumed a query parameter type other than
string | undefined.BEFORE:
AFTER:
Compatibility
To avoid compatibility issues, we now require the same RxJS peer dependency as NgRx ComponentStore, namely at least RxJS version 7.5 (#311).
@ngrx/component-store15.0This discussion was created from the release 15.0.0-rc.0.
Beta Was this translation helpful? Give feedback.
All reactions