Skip to content

Commit 351a75e

Browse files
feat(router-store): remove deprecated getSelectors method (#3816)
Closes #3815 BREAKING CHANGES: The deprecated `getSelectors` function has been removed from the `@ngrx/router-store` package. BEFORE: The @ngrx/router-store package exports the `getSelectors` function. AFTER: The @ngrx/router-store package no longer exports the `getSelectors` function. A migration has been provided to replace existing usage
1 parent e8a186d commit 351a75e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

modules/router-store/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,5 @@ export {
4444
MinimalRouterStateSnapshot,
4545
MinimalRouterStateSerializer,
4646
} from './serializers/minimal_serializer';
47-
export {
48-
getRouterSelectors,
49-
getSelectors,
50-
createRouterSelector,
51-
} from './router_selectors';
47+
export { getRouterSelectors, createRouterSelector } from './router_selectors';
5248
export { provideRouterStore } from './provide_router_store';

modules/router-store/src/router_selectors.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ export function createRouterSelector<
1313
return createFeatureSelector(DEFAULT_ROUTER_FEATURENAME);
1414
}
1515

16-
/**
17-
* @deprecated This function is deprecated in favor of `getRouterSelectors`.
18-
* For more info see: https://github.com/ngrx/platform/issues/3738
19-
*/
20-
export const getSelectors = getRouterSelectors;
21-
2216
export function getRouterSelectors<V extends Record<string, any>>(
2317
selectState: (state: V) => RouterReducerState<any> = createRouterSelector<V>()
2418
): RouterStateSelectors<V> {

0 commit comments

Comments
 (0)