Skip to content

Commit 74c287f

Browse files
build: update Angular packages to v16.0.0 (#3870)
1 parent 0a13c4d commit 74c287f

File tree

6 files changed

+1305
-1187
lines changed

6 files changed

+1305
-1187
lines changed

modules/component-store/src/component-store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
type ValueEqualityFn,
3838
} from '@angular/core';
3939
import { isOnStateInitDefined, isOnStoreInitDefined } from './lifecycle_hooks';
40-
import { toSignal } from './to-signal';
40+
import { toSignal } from '@angular/core/rxjs-interop';
4141

4242
export interface SelectConfig {
4343
debounce?: boolean;
@@ -87,7 +87,7 @@ export class ComponentStore<T extends object> implements OnDestroy {
8787
readonly state: Signal<T> = toSignal(
8888
this.state$.pipe(takeUntil(this.destroy$)),
8989
{ requireSync: false, manualCleanup: true }
90-
);
90+
) as Signal<T>;
9191
private ɵhasProvider = false;
9292

9393
constructor(@Optional() @Inject(INITIAL_STATE_TOKEN) defaultState?: T) {

modules/component-store/src/to-signal.ts

Lines changed: 0 additions & 131 deletions
This file was deleted.

modules/store/src/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { computed, Injectable, Provider, Signal } from '@angular/core';
33
import { Observable, Observer, Operator } from 'rxjs';
44
import { distinctUntilChanged, map, pluck } from 'rxjs/operators';
5+
import { toSignal } from '@angular/core/rxjs-interop';
56

67
import { ActionsSubject } from './actions_subject';
78
import {
@@ -12,7 +13,6 @@ import {
1213
} from './models';
1314
import { ReducerManager } from './reducer_manager';
1415
import { StateObservable } from './state';
15-
import { toSignal } from './to_signal';
1616

1717
@Injectable()
1818
export class Store<T = object>
@@ -29,7 +29,7 @@ export class Store<T = object>
2929
super();
3030

3131
this.source = state$;
32-
this.state = toSignal(state$);
32+
this.state = toSignal(state$, { manualCleanup: true });
3333
}
3434

3535
select<K>(mapFn: (state: T) => K): Observable<K>;

modules/store/src/to_signal.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@
6565
]
6666
},
6767
"dependencies": {
68-
"@angular/animations": "^16.0.0-rc.0",
69-
"@angular/cdk": "^16.0.0-rc.0",
70-
"@angular/common": "^16.0.0-rc.0",
71-
"@angular/compiler": "^16.0.0-rc.0",
72-
"@angular/core": "^16.0.0-rc.0",
73-
"@angular/forms": "^16.0.0-rc.0",
74-
"@angular/material": "^16.0.0-rc.0",
75-
"@angular/platform-browser": "^16.0.0-rc.0",
76-
"@angular/platform-browser-dynamic": "^16.0.0-rc.0",
77-
"@angular/platform-server": "^16.0.0-rc.0",
78-
"@angular/router": "^16.0.0-rc.0",
68+
"@angular/animations": "^16.0.0",
69+
"@angular/cdk": "^16.0.0",
70+
"@angular/common": "^16.0.0",
71+
"@angular/compiler": "^16.0.0",
72+
"@angular/core": "^16.0.0",
73+
"@angular/forms": "^16.0.0",
74+
"@angular/material": "^16.0.0",
75+
"@angular/platform-browser": "^16.0.0",
76+
"@angular/platform-browser-dynamic": "^16.0.0",
77+
"@angular/platform-server": "^16.0.0",
78+
"@angular/router": "^16.0.0",
7979
"@nrwl/angular": "15.8.7",
8080
"core-js": "^2.5.4",
8181
"eslint-etc": "^5.1.0",
@@ -87,17 +87,17 @@
8787
"zone.js": "0.13.0"
8888
},
8989
"devDependencies": {
90-
"@angular-devkit/build-angular": "^16.0.0-rc.0",
91-
"@angular-devkit/core": "^16.0.0-rc.0",
92-
"@angular-devkit/schematics": "^16.0.0-rc.0",
90+
"@angular-devkit/build-angular": "^16.0.0",
91+
"@angular-devkit/core": "^16.0.0",
92+
"@angular-devkit/schematics": "^16.0.0",
9393
"@angular-eslint/builder": "15.2.1",
9494
"@angular-eslint/eslint-plugin": "15.2.1",
9595
"@angular-eslint/eslint-plugin-template": "15.2.1",
9696
"@angular-eslint/schematics": "15.2.1",
9797
"@angular-eslint/template-parser": "15.2.1",
98-
"@angular/cli": "^16.0.0-rc.0",
99-
"@angular/compiler-cli": "^16.0.0-rc.0",
100-
"@angular/language-service": "^16.0.0-rc.0",
98+
"@angular/cli": "^16.0.0",
99+
"@angular/compiler-cli": "^16.0.0",
100+
"@angular/language-service": "^16.0.0",
101101
"@babel/core": "7.9.0",
102102
"@nrwl/cli": "15.8.7",
103103
"@nrwl/cypress": "15.8.7",
@@ -109,7 +109,7 @@
109109
"@nrwl/tao": "15.8.7",
110110
"@nrwl/workspace": "15.8.7",
111111
"@octokit/rest": "^15.17.0",
112-
"@schematics/angular": "^16.0.0-rc.0",
112+
"@schematics/angular": "^16.0.0",
113113
"@testing-library/cypress": "9.0.0",
114114
"@types/fs-extra": "^2.1.0",
115115
"@types/glob": "^5.0.33",
@@ -160,7 +160,7 @@
160160
"karma-jasmine-html-reporter": "2.0.0",
161161
"lint-staged": "^8.0.0",
162162
"ncp": "^2.0.0",
163-
"ng-packagr": "^16.0.0-rc.0",
163+
"ng-packagr": "^16.0.0",
164164
"npm-run-all": "^4.1.5",
165165
"nx": "15.8.7",
166166
"nyc": "^10.1.2",

0 commit comments

Comments
 (0)