Skip to content

Commit 5a976a2

Browse files
authored
feat: Angular 14.2.0 (#84)
1 parent 7b8389e commit 5a976a2

File tree

4 files changed

+61
-64
lines changed

4 files changed

+61
-64
lines changed

package.json

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -35,77 +35,77 @@
3535
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
3636
},
3737
"dependencies": {
38-
"@angular/animations": "14.1.1",
39-
"@angular/common": "14.1.1",
40-
"@angular/compiler": "14.1.1",
41-
"@angular/core": "14.1.1",
42-
"@angular/forms": "14.1.1",
43-
"@angular/platform-browser": "14.1.1",
44-
"@angular/platform-browser-dynamic": "14.1.1",
45-
"@angular/router": "14.1.1",
46-
"@nativescript/core": "~8.3.0",
47-
"@nativescript/theme": "~3.0.0",
38+
"@angular/animations": "14.2.0",
39+
"@angular/common": "14.2.0",
40+
"@angular/compiler": "14.2.0",
41+
"@angular/core": "14.2.0",
42+
"@angular/forms": "14.2.0",
43+
"@angular/platform-browser": "14.2.0",
44+
"@angular/platform-browser-dynamic": "14.2.0",
45+
"@angular/router": "14.2.0",
46+
"@nativescript/core": "~8.3.4",
47+
"@nativescript/theme": "~3.0.2",
4848
"@ngx-translate/core": "~14.0.0",
4949
"nativescript-ngx-fonticon": "~7.0.0",
50-
"rxjs": "^7.5.0",
51-
"zone.js": "~0.11.5"
50+
"rxjs": "^7.5.6",
51+
"zone.js": "~0.11.8"
5252
},
5353
"devDependencies": {
54-
"@angular-devkit/build-angular": "14.1.1",
55-
"@angular-eslint/eslint-plugin": "14.0.2",
56-
"@angular-eslint/eslint-plugin-template": "14.0.2",
57-
"@angular-eslint/template-parser": "14.0.2",
58-
"@angular/compiler-cli": "14.1.1",
54+
"@angular-devkit/build-angular": "14.2.0",
55+
"@angular-eslint/eslint-plugin": "14.0.3",
56+
"@angular-eslint/eslint-plugin-template": "14.0.3",
57+
"@angular-eslint/template-parser": "14.0.3",
58+
"@angular/compiler-cli": "14.2.0",
5959
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
60-
"@nativescript/types": "~8.3.0",
61-
"@nativescript/unit-test-runner": "^3.0.2",
62-
"@nativescript/webpack": "~5.0.0",
63-
"@ngtools/webpack": "14.1.1",
64-
"@nrwl/angular": "14.5.4",
65-
"@nrwl/cli": "14.5.4",
66-
"@nrwl/eslint-plugin-nx": "14.5.4",
67-
"@nrwl/jest": "14.5.4",
68-
"@nrwl/js": "14.5.4",
69-
"@nrwl/node": "14.5.4",
70-
"@nrwl/workspace": "14.5.4",
60+
"@nativescript/types": "~8.3.1",
61+
"@nativescript/unit-test-runner": "^3.0.4",
62+
"@nativescript/webpack": "~5.0.8",
63+
"@ngtools/webpack": "14.2.0",
64+
"@nrwl/angular": "14.5.10",
65+
"@nrwl/cli": "14.5.10",
66+
"@nrwl/eslint-plugin-nx": "14.5.10",
67+
"@nrwl/jest": "14.5.10",
68+
"@nrwl/js": "14.5.10",
69+
"@nrwl/node": "14.5.10",
70+
"@nrwl/workspace": "14.5.10",
7171
"@nstudio/angular": "14.3.0",
7272
"@nstudio/nativescript": "14.3.0",
7373
"@nstudio/nativescript-angular": "14.3.0",
7474
"@nstudio/xplat": "14.3.0",
75-
"@types/jasmine": "4.0.3",
76-
"@types/jest": "27.4.1",
77-
"@types/node": "^18.0.0",
78-
"@types/sinon": "^10.0.2",
79-
"@typescript-eslint/eslint-plugin": "~5.24.0",
80-
"@typescript-eslint/parser": "~5.24.0",
81-
"conventional-changelog-cli": "^2.1.1",
82-
"dotenv": "10.0.0",
83-
"eslint": "7.22.0",
84-
"eslint-config-prettier": "8.1.0",
85-
"fs-extra": "^9.0.1",
75+
"@types/jasmine": "4.3.0",
76+
"@types/jest": "28.1.8",
77+
"@types/node": "^18.7.13",
78+
"@types/sinon": "^10.0.13",
79+
"@typescript-eslint/eslint-plugin": "~5.35.1",
80+
"@typescript-eslint/parser": "~5.35.1",
81+
"conventional-changelog-cli": "^2.2.2",
82+
"dotenv": "16.0.1",
83+
"eslint": "8.22.0",
84+
"eslint-config-prettier": "8.5.0",
85+
"fs-extra": "^10.1.0",
8686
"husky": "~8.0.1",
87-
"jest": "27.5.1",
87+
"jest": "29.0.1",
8888
"karma": "6.4.0",
89-
"karma-coverage": "2.0.3",
89+
"karma-coverage": "2.2.0",
9090
"karma-jasmine": "5.1.0",
9191
"karma-mocha-reporter": "^2.2.5",
9292
"karma-nativescript-launcher": "0.4.0",
9393
"karma-sinon": "^1.0.5",
94-
"lint-staged": "^13.0.0",
95-
"ng-packagr": "14.1.0",
96-
"nx": "14.5.4",
94+
"lint-staged": "^13.0.3",
95+
"ng-packagr": "14.2.0",
96+
"nx": "14.5.10",
9797
"nyc": "15.1.0",
98-
"postcss": "^8.3.9",
98+
"postcss": "^8.4.16",
9999
"postcss-import": "14.1.0",
100-
"postcss-preset-env": "7.5.0",
100+
"postcss-preset-env": "7.8.0",
101101
"postcss-url": "10.1.3",
102-
"prettier": "2.6.2",
103-
"sass": "^1.32.0",
104-
"sinon": "^11.1.1",
105-
"ts-jest": "27.1.4",
106-
"ts-node": "10.8.1",
107-
"tslib": "^2.1.0",
108-
"typescript": "~4.7.3"
102+
"prettier": "2.7.1",
103+
"sass": "^1.54.5",
104+
"sinon": "^14.0.0",
105+
"ts-jest": "28.0.8",
106+
"ts-node": "10.9.1",
107+
"tslib": "^2.4.0",
108+
"typescript": "~4.8.2"
109109
},
110110
"xplat": {
111111
"prefix": "nativescript",

packages/angular/src/lib/cdk/dialog/native-modal-ref.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, EmbeddedViewRef, Injector, Optional, ViewContainerRef, ɵmarkDirty } from '@angular/core';
1+
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, EmbeddedViewRef, Injector, Optional, ViewContainerRef, ɵdetectChanges as detectChanges } from '@angular/core';
22
import { ContentView, View, Application, Frame } from '@nativescript/core';
33
import { fromEvent, Subject } from 'rxjs';
44
import { take } from 'rxjs/operators';
@@ -100,7 +100,7 @@ export class NativeModalRef {
100100
const targetView = new ContentView();
101101
this.portalOutlet = new NativeScriptDomPortalOutlet(targetView, this._config.componentFactoryResolver || this._injector.get(ComponentFactoryResolver), this._injector.get(ApplicationRef), this._injector);
102102
const componentRef = this.portalOutlet.attach(portal);
103-
ɵmarkDirty(componentRef.instance);
103+
detectChanges(componentRef.instance);
104104
this.modalViewRef = new NgViewRef(componentRef);
105105
if (this.modalViewRef.firstNativeLikeView !== this.modalViewRef.view) {
106106
(<any>this.modalViewRef.view)._ngDialogRoot = this.modalViewRef.firstNativeLikeView;

packages/angular/src/lib/cdk/list-view/list-view.component.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, Directive, DoCheck, ElementRef, EmbeddedViewRef, EventEmitter, forwardRef, Host, HostListener, Inject, InjectionToken, Input, IterableDiffer, IterableDiffers, NgZone, OnDestroy, Output, TemplateRef, ViewChild, ViewContainerRef, ɵisListLikeIterable as isListLikeIterable, ɵmarkDirty } from '@angular/core';
1+
import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Directive, DoCheck, ElementRef, EmbeddedViewRef, EventEmitter, forwardRef, Host, HostListener, Inject, InjectionToken, Input, IterableDiffer, IterableDiffers, OnDestroy, Output, TemplateRef, ViewChild, ViewContainerRef, ɵisListLikeIterable as isListLikeIterable } from '@angular/core';
22
import { ItemEventData, KeyedTemplate, LayoutBase, ListView, ObservableArray, profile, View } from '@nativescript/core';
33

44
import { extractSingleViewRecursive } from '../../element-registry/registry';
@@ -130,7 +130,7 @@ export class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterCont
130130
this.templatedItemsView.items = this._items;
131131
}
132132

133-
constructor(_elementRef: ElementRef, private _iterableDiffers: IterableDiffers, private zone: NgZone) {
133+
constructor(_elementRef: ElementRef, private readonly _iterableDiffers: IterableDiffers, private readonly _changeDetectorRef: ChangeDetectorRef) {
134134
this.templatedItemsView = _elementRef.nativeElement;
135135
}
136136

@@ -187,10 +187,7 @@ export class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterCont
187187
this._templateMap = new Map<string, NsTemplatedItem<T>>();
188188
}
189189

190-
this._templateMap.set(
191-
key,
192-
new NsTemplatedItem<T>(template, this.loader, (v) => this._viewToTemplate.set(v, key))
193-
);
190+
this._templateMap.set(key, new NsTemplatedItem<T>(template, this.loader, (v) => this._viewToTemplate.set(v, key)));
194191
}
195192

196193
@HostListener('itemLoading', ['$event'])
@@ -240,7 +237,7 @@ export class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterCont
240237
this.setupViewRef(template.getEmbeddedViewRef(args.view), currentItem, index, args.view);
241238

242239
template.attach(args.view);
243-
ɵmarkDirty(this);
240+
this._changeDetectorRef.detectChanges();
244241
}
245242

246243
public setupViewRef(viewRef: EmbeddedViewRef<ItemContext<T>>, data: T, index: number, nativeElement: View): void {

packages/angular/src/lib/legacy/directives/dialogs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injectable, Injector, NgModuleRef, NgZone, Type, ViewContainerRef, ɵmarkDirty } from '@angular/core';
1+
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injectable, Injector, NgModuleRef, NgZone, Type, ViewContainerRef, ɵdetectChanges as detectChanges } from '@angular/core';
22
import { Application, ContentView, Frame, ShowModalOptions, View, ViewBase } from '@nativescript/core';
33
import { Subject } from 'rxjs';
44
import { AppHostAsyncView, AppHostView } from '../../app-host-view';
@@ -169,7 +169,7 @@ export class ModalDialogService {
169169
const portal = new ComponentPortal(options.type);
170170
portalOutlet = new NativeScriptDomPortalOutlet(targetView, options.resolver, this.appRef, childInjector);
171171
const componentRef = portalOutlet.attach(portal);
172-
ɵmarkDirty(componentRef.instance);
172+
detectChanges(componentRef.instance);
173173
componentViewRef = new NgViewRef(componentRef);
174174
if (options.useContextAsComponentProps && options.context) {
175175
for (const key in options.context) {

0 commit comments

Comments
 (0)