@angular/upgrade 13.0.0-rc.3 → 13.1.0-next.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/upgrade",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.0-next.1",
|
|
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": "13.
|
|
15
|
-
"@angular/compiler": "13.
|
|
16
|
-
"@angular/platform-browser": "13.
|
|
17
|
-
"@angular/platform-browser-dynamic": "13.
|
|
14
|
+
"@angular/core": "13.1.0-next.1",
|
|
15
|
+
"@angular/compiler": "13.1.0-next.1",
|
|
16
|
+
"@angular/platform-browser": "13.1.0-next.1",
|
|
17
|
+
"@angular/platform-browser-dynamic": "13.1.0-next.1"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
package/static/static.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v13.
|
|
2
|
+
* @license Angular v13.1.0-next.1
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -162,9 +162,11 @@ export declare function downgradeInjectable(token: any, downgradedModule?: strin
|
|
|
162
162
|
* The Angular module will be bootstrapped once (when requested for the first time) and the same
|
|
163
163
|
* reference will be used from that point onwards.
|
|
164
164
|
*
|
|
165
|
-
* `downgradeModule()` requires either an `NgModuleFactory` or a function:
|
|
165
|
+
* `downgradeModule()` requires either an `NgModuleFactory`, `NgModule` class or a function:
|
|
166
166
|
* - `NgModuleFactory`: If you pass an `NgModuleFactory`, it will be used to instantiate a module
|
|
167
167
|
* using `platformBrowser`'s {@link PlatformRef#bootstrapModuleFactory bootstrapModuleFactory()}.
|
|
168
|
+
* - `NgModule` class: If you pass an NgModule class, it will be used to instantiate a module
|
|
169
|
+
* using `platformBrowser`'s {@link PlatformRef#bootstrapModule bootstrapModule()}.
|
|
168
170
|
* - `Function`: If you pass a function, it is expected to return a promise resolving to an
|
|
169
171
|
* `NgModuleRef`. The function is called with an array of extra {@link StaticProvider Providers}
|
|
170
172
|
* that are expected to be available from the returned `NgModuleRef`'s `Injector`.
|
|
@@ -253,7 +255,7 @@ export declare function downgradeInjectable(token: any, downgradedModule?: strin
|
|
|
253
255
|
*
|
|
254
256
|
* @publicApi
|
|
255
257
|
*/
|
|
256
|
-
export declare function downgradeModule<T>(
|
|
258
|
+
export declare function downgradeModule<T>(moduleOrBootstrapFn: Type<T> | NgModuleFactory<T> | ((extraProviders: StaticProvider[]) => Promise<NgModuleRef<T>>)): string;
|
|
257
259
|
|
|
258
260
|
/**
|
|
259
261
|
* Returns the current AngularJS global.
|
package/upgrade.d.ts
CHANGED