@angular/upgrade 19.1.0-next.0 → 19.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.0
2
+ * @license Angular v19.1.0-next.2
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.1.0-next.0",
3
+ "version": "19.1.0-next.2",
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.1.0-next.0",
15
- "@angular/compiler": "19.1.0-next.0",
16
- "@angular/platform-browser": "19.1.0-next.0",
17
- "@angular/platform-browser-dynamic": "19.1.0-next.0"
14
+ "@angular/core": "19.1.0-next.2",
15
+ "@angular/compiler": "19.1.0-next.2",
16
+ "@angular/platform-browser": "19.1.0-next.2",
17
+ "@angular/platform-browser-dynamic": "19.1.0-next.2"
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.1.0-next.0
2
+ * @license Angular v19.1.0-next.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -211,7 +211,7 @@ declare const DOWNGRADED_MODULE_COUNT_KEY = "$$angularDowngradedModuleCount";
211
211
  *
212
212
  * {@example upgrade/static/ts/full/module.ts region="example-app"}
213
213
  *
214
- * <div class="alert is-important">
214
+ * <div class="docs-alert docs-alert-important">
215
215
  *
216
216
  * When using `downgradeModule()`, downgraded injectables will not be available until the Angular
217
217
  * module that provides them is instantiated. In order to be safe, you need to ensure that the
@@ -283,7 +283,7 @@ export declare function downgradeInjectable(token: any, downgradedModule?: strin
283
283
  * available until the downgraded module has been bootstrapped, i.e. by instantiating a downgraded
284
284
  * component.
285
285
  *
286
- * <div class="alert is-important">
286
+ * <div class="docs-alert docs-alert-important">
287
287
  *
288
288
  * You cannot use `downgradeModule()` and `UpgradeModule` in the same hybrid application.<br />
289
289
  * Use one or the other.
@@ -314,7 +314,7 @@ export declare function downgradeInjectable(token: any, downgradedModule?: strin
314
314
  * For a more detailed discussion of the differences and their implications, see
315
315
  * [Upgrading for Performance](https://angular.io/guide/upgrade).
316
316
  *
317
- * <div class="alert is-helpful">
317
+ * <div class="docs-alert docs-alert-helpful">
318
318
  *
319
319
  * You can manually trigger a change detection run in AngularJS using
320
320
  * [scope.$apply(...)](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$apply) or
@@ -398,7 +398,7 @@ export declare function downgradeModule<T>(moduleOrBootstrapFn: Type<T> | ((extr
398
398
  * available until the downgraded module has been bootstrapped, i.e. by instantiating a downgraded
399
399
  * component.
400
400
  *
401
- * <div class="alert is-important">
401
+ * <div class="docs-alert docs-alert-important">
402
402
  *
403
403
  * You cannot use `downgradeModule()` and `UpgradeModule` in the same hybrid application.<br />
404
404
  * Use one or the other.
@@ -429,7 +429,7 @@ export declare function downgradeModule<T>(moduleOrBootstrapFn: Type<T> | ((extr
429
429
  * For a more detailed discussion of the differences and their implications, see
430
430
  * [Upgrading for Performance](https://angular.io/guide/upgrade).
431
431
  *
432
- * <div class="alert is-helpful">
432
+ * <div class="docs-alert docs-alert-helpful">
433
433
  *
434
434
  * You can manually trigger a change detection run in AngularJS using
435
435
  * [scope.$apply(...)](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$apply) or
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.0
2
+ * @license Angular v19.1.0-next.2
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
- * <code-example path="upgrade/static/ts/full/module.spec.ts"
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,10 +33,9 @@ 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
- * <code-example path="upgrade/static/ts/full/module.spec.ts"
38
- * region="angularjs-spec"></code-example>
36
+ * {@example upgrade/static/ts/full/module.spec.ts region='angularjs-spec'}
39
37
  *
40
- * <div class="alert is-important">
38
+ * <div class="docs-alert docs-alert-important">
41
39
  *
42
40
  * This helper is for testing services not components.
43
41
  * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or
@@ -45,7 +43,7 @@ import { Type } from '@angular/core';
45
43
  *
46
44
  * </div>
47
45
  *
48
- * <div class="alert is-important">
46
+ * <div class="docs-alert docs-alert-important">
49
47
  *
50
48
  * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the
51
49
  * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger
@@ -53,7 +51,7 @@ import { Type } from '@angular/core';
53
51
  *
54
52
  * </div>
55
53
  *
56
- * <div class="alert is-important">
54
+ * <div class="docs-alert docs-alert-important">
57
55
  *
58
56
  * The helper sets up global variables to hold the shared Angular and AngularJS injectors.
59
57
  *
@@ -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
- * <code-example path="upgrade/static/ts/full/module.spec.ts" region="angular-setup"></code-example>
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,9 +98,9 @@ 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
- * <code-example path="upgrade/static/ts/full/module.spec.ts" region="angular-spec"></code-example>
101
+ * {@example upgrade/static/ts/full/module.spec.ts region='angular-spec'}
104
102
  *
105
- * <div class="alert is-important">
103
+ * <div class="docs-alert docs-alert-important">
106
104
  *
107
105
  * This helper is for testing services not Components.
108
106
  * For Component testing you must still bootstrap a hybrid app. See `UpgradeModule` or
@@ -110,7 +108,7 @@ export declare function createAngularJSTestingModule(angularModules: any[]): str
110
108
  *
111
109
  * </div>
112
110
  *
113
- * <div class="alert is-important">
111
+ * <div class="docs-alert docs-alert-important">
114
112
  *
115
113
  * The resulting configuration does not wire up AngularJS digests to Zone hooks. It is the
116
114
  * responsibility of the test writer to call `$rootScope.$apply`, as necessary, to trigger
@@ -118,7 +116,7 @@ export declare function createAngularJSTestingModule(angularModules: any[]): str
118
116
  *
119
117
  * </div>
120
118
  *
121
- * <div class="alert is-important">
119
+ * <div class="docs-alert docs-alert-important">
122
120
  *
123
121
  * The helper sets up global variables to hold the shared Angular and AngularJS injectors.
124
122
  *