@angular/upgrade 18.0.0-next.3 → 18.0.0-next.4
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/esm2022/src/common/src/downgrade_component.mjs +2 -2
- package/esm2022/src/common/src/version.mjs +1 -1
- package/esm2022/src/dynamic/src/upgrade_adapter.mjs +3 -3
- package/esm2022/src/dynamic/src/upgrade_ng1_adapter.mjs +3 -3
- package/esm2022/static/src/downgrade_module.mjs +3 -3
- package/esm2022/static/src/upgrade_component.mjs +3 -3
- package/esm2022/static/src/upgrade_module.mjs +4 -4
- package/esm2022/static/testing/src/create_angular_testing_module.mjs +4 -4
- package/fesm2022/static/testing.mjs +6 -6
- package/fesm2022/static.mjs +13 -13
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +9 -9
- package/fesm2022/upgrade.mjs.map +1 -1
- package/index.d.ts +4 -4
- package/package.json +5 -5
- package/static/index.d.ts +7 -7
- package/static/testing/index.d.ts +2 -2
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v18.0.0-next.4
|
|
3
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
17
17
|
/**
|
|
18
18
|
* @publicApi
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = new Version('18.0.0-next.
|
|
20
|
+
const VERSION = new Version('18.0.0-next.4');
|
|
21
21
|
|
|
22
22
|
function noNg() {
|
|
23
23
|
throw new Error('AngularJS v1.x is not loaded!');
|
|
@@ -622,7 +622,7 @@ class SyncPromise {
|
|
|
622
622
|
* {@example upgrade/static/ts/full/module.ts region="ng2-heroes-wrapper"}
|
|
623
623
|
*
|
|
624
624
|
* For more details and examples on downgrading Angular components to AngularJS components please
|
|
625
|
-
* visit the [Upgrade guide](guide/upgrade#using-angular-components-from-angularjs-code).
|
|
625
|
+
* visit the [Upgrade guide](https://angular.io/guide/upgrade#using-angular-components-from-angularjs-code).
|
|
626
626
|
*
|
|
627
627
|
* @param info contains information about the Component that is being downgraded:
|
|
628
628
|
*
|
|
@@ -1302,10 +1302,10 @@ class UpgradeNg1ComponentAdapter {
|
|
|
1302
1302
|
setComponentProperty(name, value) {
|
|
1303
1303
|
this.destinationObj[this.propertyMap[name]] = value;
|
|
1304
1304
|
}
|
|
1305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
1306
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
1305
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1306
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.4", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 }); }
|
|
1307
1307
|
}
|
|
1308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
1308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
|
|
1309
1309
|
type: Directive
|
|
1310
1310
|
}], ctorParameters: () => [{ type: UpgradeHelper }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }] });
|
|
1311
1311
|
|
|
@@ -1389,7 +1389,7 @@ let upgradeCount = 0;
|
|
|
1389
1389
|
* ```
|
|
1390
1390
|
*
|
|
1391
1391
|
* @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports
|
|
1392
|
-
* [Ahead-of-Time compilation](
|
|
1392
|
+
* [Ahead-of-Time compilation](tools/cli/aot-compiler).
|
|
1393
1393
|
* @publicApi
|
|
1394
1394
|
*/
|
|
1395
1395
|
class UpgradeAdapter {
|
|
@@ -1911,7 +1911,7 @@ class UpgradeAdapter {
|
|
|
1911
1911
|
* Use `UpgradeAdapterRef` to control a hybrid AngularJS / Angular application.
|
|
1912
1912
|
*
|
|
1913
1913
|
* @deprecated Deprecated since v5. Use `upgrade/static` instead, which also supports
|
|
1914
|
-
* [Ahead-of-Time compilation](
|
|
1914
|
+
* [Ahead-of-Time compilation](tools/cli/aot-compiler).
|
|
1915
1915
|
* @publicApi
|
|
1916
1916
|
*/
|
|
1917
1917
|
class UpgradeAdapterRef {
|