@angular/upgrade 13.0.1 → 13.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/common/src/util.mjs +6 -1
- package/esm2020/src/common/src/version.mjs +1 -1
- package/esm2020/src/dynamic/src/upgrade_ng1_adapter.mjs +3 -3
- package/esm2020/static/src/downgrade_module.mjs +19 -7
- package/esm2020/static/src/upgrade_component.mjs +3 -3
- package/esm2020/static/src/upgrade_module.mjs +4 -4
- package/esm2020/static/testing/src/create_angular_testing_module.mjs +4 -4
- package/fesm2015/static/testing.mjs +5 -5
- package/fesm2015/static.mjs +31 -15
- package/fesm2015/static.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +10 -6
- package/fesm2015/upgrade.mjs.map +1 -1
- package/fesm2020/static/testing.mjs +5 -5
- package/fesm2020/static.mjs +31 -15
- package/fesm2020/static.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +10 -6
- package/fesm2020/upgrade.mjs.map +1 -1
- package/package.json +5 -5
- package/static/static.d.ts +5 -3
- package/static/testing/testing.d.ts +1 -1
- package/upgrade.d.ts +1 -1
package/fesm2020/upgrade.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v13.0.
|
|
2
|
+
* @license Angular v13.1.0-next.2
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { Version, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, NgZone, ComponentFactoryResolver, Directive, Inject, ElementRef, EventEmitter, Compiler, resolveForwardRef, NgModule, isDevMode } from '@angular/core';
|
|
8
|
+
import { Version, ɵNG_MOD_DEF, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, NgZone, ComponentFactoryResolver, Directive, Inject, ElementRef, EventEmitter, Compiler, resolveForwardRef, NgModule, isDevMode } from '@angular/core';
|
|
9
9
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
10
10
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
19
19
|
/**
|
|
20
20
|
* @publicApi
|
|
21
21
|
*/
|
|
22
|
-
const VERSION = new Version('13.0.
|
|
22
|
+
const VERSION = new Version('13.1.0-next.2');
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
@@ -232,6 +232,10 @@ function getUpgradeAppType($injector) {
|
|
|
232
232
|
function isFunction(value) {
|
|
233
233
|
return typeof value === 'function';
|
|
234
234
|
}
|
|
235
|
+
function isNgModuleType(value) {
|
|
236
|
+
// NgModule class should have the `ɵmod` static property attached by AOT or JIT compiler.
|
|
237
|
+
return isFunction(value) && !!value[ɵNG_MOD_DEF];
|
|
238
|
+
}
|
|
235
239
|
function isParentNode(node) {
|
|
236
240
|
return isFunction(node.querySelectorAll);
|
|
237
241
|
}
|
|
@@ -1356,9 +1360,9 @@ class UpgradeNg1ComponentAdapter {
|
|
|
1356
1360
|
this.destinationObj[this.propertyMap[name]] = value;
|
|
1357
1361
|
}
|
|
1358
1362
|
}
|
|
1359
|
-
UpgradeNg1ComponentAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.
|
|
1360
|
-
UpgradeNg1ComponentAdapter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.
|
|
1361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.
|
|
1363
|
+
UpgradeNg1ComponentAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0-next.2", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
1364
|
+
UpgradeNg1ComponentAdapter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0-next.2", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 });
|
|
1365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.2", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
|
|
1362
1366
|
type: Directive
|
|
1363
1367
|
}], ctorParameters: function () { return [{ type: UpgradeHelper }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }]; } });
|
|
1364
1368
|
|