Skip to content

Commit

Permalink
feat(order)!: move error matcher injection token to state subpackage (#…
Browse files Browse the repository at this point in the history
…2645)

BREAKING CHANGE: error matcher injection token has moved to state subpackage
  • Loading branch information
griest024 committed Dec 11, 2023
1 parent 81a170e commit 876d005
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion libs/order/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './models/public_api';
export * from './injection-tokens/public_api';
6 changes: 2 additions & 4 deletions libs/order/state/src/effects/order-collection.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ import {
DaffError,
} from '@daffodil/core';
import { ErrorTransformer } from '@daffodil/core/state';
import {
DaffOrder,
DAFF_ORDER_ERROR_MATCHER,
} from '@daffodil/order';
import { DaffOrder } from '@daffodil/order';
import {
DaffOrderServiceInterface,
DaffOrderDriver,
Expand All @@ -40,6 +37,7 @@ import {
DaffOrderListSuccess,
} from '../actions/public_api';
import { DaffOrderCollectionFacade } from '../facades/public_api';
import { DAFF_ORDER_ERROR_MATCHER } from '../injection-tokens/public_api';

export const DAFF_ORDER_COLLECTION_ACTION_TYPES = [
DaffOrderCollectionActionTypes.ChangeCurrentPageAction,
Expand Down
6 changes: 2 additions & 4 deletions libs/order/state/src/effects/order.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ import {
import { DaffCart } from '@daffodil/cart';
import { DaffError } from '@daffodil/core';
import { ErrorTransformer } from '@daffodil/core/state';
import {
DaffOrder,
DAFF_ORDER_ERROR_MATCHER,
} from '@daffodil/order';
import { DaffOrder } from '@daffodil/order';
import {
DaffOrderServiceInterface,
DaffOrderDriver,
Expand All @@ -35,6 +32,7 @@ import {
DaffOrderListSuccess,
DaffOrderListFailure,
} from '../actions/order.actions';
import { DAFF_ORDER_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffOrderEffects<
Expand Down
1 change: 1 addition & 0 deletions libs/order/state/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export * from './actions/public_api';
export * from './reducers/public_api';
export * from './selectors/public_api';
export * from './facades/public_api';
export * from './injection-tokens/public_api';

export { DaffOrderStateModule } from './order-state.module';

0 comments on commit 876d005

Please sign in to comment.