Skip to content

Commit 1a1b6df

Browse files
feat(effects): remove concatLatestFrom operator (#4367)
BREAKING CHANGES: The concatLatestFrom operator has been removed from @ngrx/effects in favor of the @ngrx/operators package. BEFORE: import { concatLatestFrom } from '@ngrx/effects'; AFTER: import { concatLatestFrom } from '@ngrx/operators';
1 parent 285c810 commit 1a1b6df

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

modules/effects/spec/provide_effects.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
provideStore,
1111
Store,
1212
} from '@ngrx/store';
13+
import { concatLatestFrom } from '@ngrx/operators';
1314
import {
1415
Actions,
15-
concatLatestFrom,
1616
createEffect,
1717
EffectsRunner,
1818
ofType,

modules/effects/src/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as operators from '@ngrx/operators';
2-
31
export { createEffect } from './effect_creator';
42
export { EffectConfig } from './models';
53
export { getEffectsMetadata } from './effects_metadata';
@@ -30,8 +28,3 @@ export {
3028
} from './lifecycle_hooks';
3129
export { USER_PROVIDED_EFFECTS } from './tokens';
3230
export { provideEffects } from './provide_effects';
33-
34-
/**
35-
* @deprecated Use `concatLatestFrom` from `@ngrx/operators` instead.
36-
*/
37-
export const concatLatestFrom = operators.concatLatestFrom;

projects/example-app/src/app/core/effects/router.effects.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Title } from '@angular/platform-browser';
33

44
import { map, tap } from 'rxjs/operators';
55

6-
import { Actions, concatLatestFrom, createEffect, ofType } from '@ngrx/effects';
6+
import { Actions, createEffect, ofType } from '@ngrx/effects';
7+
import { concatLatestFrom } from '@ngrx/operators';
78
import { Store } from '@ngrx/store';
89
import { routerNavigatedAction } from '@ngrx/router-store';
910

projects/ngrx.io/content/guide/eslint-plugin/rules/prefer-concat-latest-from.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ To report only needed uses of `withLatestFrom` use:
7575

7676
## Further reading
7777

78-
- [`concatLatestFrom` API](api/effects/concatLatestFrom)
78+
- [`concatLatestFrom` API](api/operators/concatLatestFrom)
7979
- [Incorporating State](guide/effects#incorporating-state)

0 commit comments

Comments
 (0)