From 351a75e5f754d8272bd4ba400f82e19a45193f52 Mon Sep 17 00:00:00 2001 From: Andreas Pramendorfer <77431359+apramendorfer@users.noreply.github.com> Date: Sun, 16 Apr 2023 00:32:35 +0200 Subject: [PATCH] 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 --- modules/router-store/src/index.ts | 6 +----- modules/router-store/src/router_selectors.ts | 6 ------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/modules/router-store/src/index.ts b/modules/router-store/src/index.ts index ae5e46abd2..c219cf6f71 100644 --- a/modules/router-store/src/index.ts +++ b/modules/router-store/src/index.ts @@ -44,9 +44,5 @@ export { MinimalRouterStateSnapshot, MinimalRouterStateSerializer, } from './serializers/minimal_serializer'; -export { - getRouterSelectors, - getSelectors, - createRouterSelector, -} from './router_selectors'; +export { getRouterSelectors, createRouterSelector } from './router_selectors'; export { provideRouterStore } from './provide_router_store'; diff --git a/modules/router-store/src/router_selectors.ts b/modules/router-store/src/router_selectors.ts index 33b260497d..a15ecae66d 100644 --- a/modules/router-store/src/router_selectors.ts +++ b/modules/router-store/src/router_selectors.ts @@ -13,12 +13,6 @@ export function createRouterSelector< return createFeatureSelector(DEFAULT_ROUTER_FEATURENAME); } -/** - * @deprecated This function is deprecated in favor of `getRouterSelectors`. - * For more info see: https://github.com/ngrx/platform/issues/3738 - */ -export const getSelectors = getRouterSelectors; - export function getRouterSelectors>( selectState: (state: V) => RouterReducerState = createRouterSelector() ): RouterStateSelectors {