@angular/upgrade 19.0.2 → 19.0.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/fesm2022/static/testing.mjs +9 -11
- package/fesm2022/static/testing.mjs.map +1 -1
- package/fesm2022/static.mjs +9 -9
- package/fesm2022/static.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +6 -6
- package/fesm2022/upgrade.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +5 -5
- package/static/index.d.ts +1 -1
- package/static/testing/index.d.ts +5 -7
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.4
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -84,7 +84,7 @@ declare type Ng1Expression = string | Function;
|
|
|
84
84
|
*
|
|
85
85
|
* ### Example
|
|
86
86
|
*
|
|
87
|
-
* ```
|
|
87
|
+
* ```ts
|
|
88
88
|
* const adapter = new UpgradeAdapter(forwardRef(() => MyNg2Module), myCompilerOptions);
|
|
89
89
|
* const module = angular.module('myExample', []);
|
|
90
90
|
* module.directive('ng2Comp', adapter.downgradeNg2Component(Ng2Component));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/upgrade",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.4",
|
|
4
4
|
"description": "Angular - the library for easing update from v1 to v2",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "19.0.
|
|
15
|
-
"@angular/compiler": "19.0.
|
|
16
|
-
"@angular/platform-browser": "19.0.
|
|
17
|
-
"@angular/platform-browser-dynamic": "19.0.
|
|
14
|
+
"@angular/core": "19.0.4",
|
|
15
|
+
"@angular/compiler": "19.0.4",
|
|
16
|
+
"@angular/platform-browser": "19.0.4",
|
|
17
|
+
"@angular/platform-browser-dynamic": "19.0.4"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/static/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.4
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -24,8 +24,7 @@ import { Type } from '@angular/core';
|
|
|
24
24
|
* The AngularJS `ng1AppModule`, which is the AngularJS part of our hybrid application and the
|
|
25
25
|
* `Ng2AppModule`, which is the Angular part.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
* region="angularjs-setup"></code-example>
|
|
27
|
+
* {@example upgrade/static/ts/full/module.spec.ts region='angularjs-setup'}
|
|
29
28
|
*
|
|
30
29
|
* Once this is done we can get hold of services via the AngularJS `$injector` as normal.
|
|
31
30
|
* Services that are (or have dependencies on) a downgraded Angular service, will be instantiated as
|
|
@@ -34,8 +33,7 @@ import { Type } from '@angular/core';
|
|
|
34
33
|
* In the following code snippet, `heroesService` is a downgraded Angular service that we are
|
|
35
34
|
* accessing from AngularJS.
|
|
36
35
|
*
|
|
37
|
-
*
|
|
38
|
-
* region="angularjs-spec"></code-example>
|
|
36
|
+
* {@example upgrade/static/ts/full/module.spec.ts region='angularjs-spec'}
|
|
39
37
|
*
|
|
40
38
|
* <div class="docs-alert docs-alert-important">
|
|
41
39
|
*
|
|
@@ -91,7 +89,7 @@ export declare function createAngularJSTestingModule(angularModules: any[]): str
|
|
|
91
89
|
* The `Ng2AppModule` is the Angular part of our hybrid application and the `ng1AppModule` is the
|
|
92
90
|
* AngularJS part.
|
|
93
91
|
*
|
|
94
|
-
*
|
|
92
|
+
* {@example upgrade/static/ts/full/module.spec.ts region='angular-setup'}
|
|
95
93
|
*
|
|
96
94
|
* Once this is done we can get hold of services via the Angular `Injector` as normal.
|
|
97
95
|
* Services that are (or have dependencies on) an upgraded AngularJS service, will be instantiated
|
|
@@ -100,7 +98,7 @@ export declare function createAngularJSTestingModule(angularModules: any[]): str
|
|
|
100
98
|
* In the following code snippet, `HeroesService` is an Angular service that depends upon an
|
|
101
99
|
* AngularJS service, `titleCase`.
|
|
102
100
|
*
|
|
103
|
-
*
|
|
101
|
+
* {@example upgrade/static/ts/full/module.spec.ts region='angular-spec'}
|
|
104
102
|
*
|
|
105
103
|
* <div class="docs-alert docs-alert-important">
|
|
106
104
|
*
|