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
-
Features
LocalRouterStore
matchesActivatedRoute
more closely (feat!: use local route for local router store #309)ActivatedRoute
to serialize the router state for the local router store implementation (LocalRouterStore
)LocalRouterStore.currentRoute$
matchesActivatedRoute.snapshot
RouterStore#selectRouteData
(feat!: use strict route data #316)MinimalRouteData
withStrictRouteData
(feat!: use strict route parameters #319)RouterStore#routeData$
andMinimalActivatedRouteSnapshot#data
types fromData
toStrictRouteData
(feat!: use strict route parameters #319)BREAKING CHANGES
LocalRouterStore.currentRoute$
matchesActivatedRoute.snapshot
This change in implementation will make the local router store more closely match
ActivatedRoute
while 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#selectRouteData
for stricter typing and to enforce coercionBEFORE:
AFTER:
The
RouterStore#routeData$
selector emitsStrictRouteData
instead ofData
BEFORE:
AFTER:
RouterStore#routeParams$
andMinimalActivatedRouteSnapshot#params
useStrictRouteData
instead ofParams
. Members are read-only and of typestring | undefined
instead ofany
TypeScript will fail to compile application code that has assumed a route type parameter type other than
string | undefined
.BEFORE:
AFTER:
StrictRouteData
members are now read-onlyTypeScript will fail to compile application code that mutates route data data structures.
BEFORE:
AFTER:
RouterStore#queryParams$
andMinimalActivatedRouteSnapshot#queryParams
useStrictRouteParams
instead ofParams
. Members are read-only and of typestring | undefined
instead ofany
TypeScript 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-store
15.0This discussion was created from the release 15.0.0-rc.0.
Beta Was this translation helpful? Give feedback.
All reactions