From d704e0b1f06eea9d99609fc7eaa4b7b826e33e2c Mon Sep 17 00:00:00 2001 From: Peter Lauck Date: Mon, 11 Dec 2023 15:33:03 +0000 Subject: [PATCH] feat(geography)!: move error matcher injection token to state subpackage (#2645) BREAKING CHANGE: error matcher injection token has moved to state subpackage --- libs/geography/src/public_api.ts | 1 - libs/geography/state/src/effects/geography.effects.ts | 6 ++---- libs/geography/state/src/index.ts | 8 +------- .../src/injection-tokens/error-matcher.token.ts | 0 .../{ => state}/src/injection-tokens/public_api.ts | 0 libs/geography/state/src/public_api.ts | 8 ++++++++ 6 files changed, 11 insertions(+), 12 deletions(-) rename libs/geography/{ => state}/src/injection-tokens/error-matcher.token.ts (100%) rename libs/geography/{ => state}/src/injection-tokens/public_api.ts (100%) create mode 100644 libs/geography/state/src/public_api.ts diff --git a/libs/geography/src/public_api.ts b/libs/geography/src/public_api.ts index c078c9d2b0..42372f42ce 100644 --- a/libs/geography/src/public_api.ts +++ b/libs/geography/src/public_api.ts @@ -3,4 +3,3 @@ */ export * from './models/public_api'; export * from './comparators/public_api'; -export * from './injection-tokens/public_api'; diff --git a/libs/geography/state/src/effects/geography.effects.ts b/libs/geography/state/src/effects/geography.effects.ts index 3593964a37..c5ac3785c2 100644 --- a/libs/geography/state/src/effects/geography.effects.ts +++ b/libs/geography/state/src/effects/geography.effects.ts @@ -16,10 +16,7 @@ import { import { DaffError } from '@daffodil/core'; import { ErrorTransformer } from '@daffodil/core/state'; -import { - DaffCountry, - DAFF_GEOGRAPHY_ERROR_MATCHER, -} from '@daffodil/geography'; +import { DaffCountry } from '@daffodil/geography'; import { DaffGeographyServiceInterface, DaffGeographyDriver, @@ -34,6 +31,7 @@ import { DaffCountryListSuccess, DaffCountryListFailure, } from '../actions/public_api'; +import { DAFF_GEOGRAPHY_ERROR_MATCHER } from '../injection-tokens/public_api'; @Injectable() export class DaffGeographyEffects { diff --git a/libs/geography/state/src/index.ts b/libs/geography/state/src/index.ts index 60621ea210..4aaf8f92ed 100644 --- a/libs/geography/state/src/index.ts +++ b/libs/geography/state/src/index.ts @@ -1,7 +1 @@ -export * from './selectors/public_api'; -export * from './reducers/public_api'; -export * from './actions/public_api'; - -export { DaffGeographyFacade } from './facades/geography/geography.facade'; -export { DaffGeographyFacadeInterface } from './facades/geography/geography-facade.interface'; -export { DaffGeographyStateModule } from './geography-state.module'; +export * from './public_api'; diff --git a/libs/geography/src/injection-tokens/error-matcher.token.ts b/libs/geography/state/src/injection-tokens/error-matcher.token.ts similarity index 100% rename from libs/geography/src/injection-tokens/error-matcher.token.ts rename to libs/geography/state/src/injection-tokens/error-matcher.token.ts diff --git a/libs/geography/src/injection-tokens/public_api.ts b/libs/geography/state/src/injection-tokens/public_api.ts similarity index 100% rename from libs/geography/src/injection-tokens/public_api.ts rename to libs/geography/state/src/injection-tokens/public_api.ts diff --git a/libs/geography/state/src/public_api.ts b/libs/geography/state/src/public_api.ts new file mode 100644 index 0000000000..4f2b3cd058 --- /dev/null +++ b/libs/geography/state/src/public_api.ts @@ -0,0 +1,8 @@ +export * from './selectors/public_api'; +export * from './reducers/public_api'; +export * from './actions/public_api'; +export * from './injection-tokens/public_api'; + +export { DaffGeographyFacade } from './facades/geography/geography.facade'; +export { DaffGeographyFacadeInterface } from './facades/geography/geography-facade.interface'; +export { DaffGeographyStateModule } from './geography-state.module';