Skip to content

Commit 285c810

Browse files
feat(component-store): remove tapResponse operator (#4366)
BREAKING CHANGES: The tapResponse operator has been removed from @ngrx/component-store in favor of the @ngrx/operators package. BEFORE: import { tapResponse } from '@ngrx/component-store'; AFTER: import { tapResponse } from '@ngrx/operators';
1 parent c35794e commit 285c810

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import * as operators from '@ngrx/operators';
2-
31
export * from './component-store';
42
export {
53
provideComponentStore,
64
OnStateInit,
75
OnStoreInit,
86
} from './lifecycle_hooks';
9-
10-
/**
11-
* @deprecated Use `tapResponse` from `@ngrx/operators` instead.
12-
*/
13-
export const tapResponse = operators.tapResponse;

modules/component-store/spec/types/tap-response.types.spec.ts renamed to modules/operators/spec/types/tap-response.types.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { compilerOptions } from './utils';
33

44
describe('tapResponse types', () => {
55
const snippetFactory = (code: string): string => `
6-
import { tapResponse } from '@ngrx/component-store';
6+
import { tapResponse } from '@ngrx/operators';
77
import { noop, of } from 'rxjs';
88
99
${code}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const compilerOptions = () => ({
2+
moduleResolution: 'node',
3+
target: 'ES2022',
4+
baseUrl: '.',
5+
experimentalDecorators: true,
6+
paths: {
7+
'@ngrx/operators': ['./modules/operators'],
8+
},
9+
});

0 commit comments

Comments
 (0)