@angular/core 15.2.0-rc.0 → 15.2.0
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/di/interface/defs.mjs +4 -5
- package/esm2020/src/di/provider_collection.mjs +2 -2
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +5 -6
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -6
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +5 -6
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -6
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +248 -207
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2020/src/view/index.mjs +0 -9
package/fesm2020/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.0
|
|
2
|
+
* @license Angular v15.2.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -403,10 +403,9 @@ function getInheritedInjectableDef(type) {
|
|
|
403
403
|
const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);
|
|
404
404
|
if (def) {
|
|
405
405
|
const typeName = getTypeName(type);
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
`This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
|
|
406
|
+
ngDevMode &&
|
|
407
|
+
console.warn(`DEPRECATED: DI is instantiating a token "${typeName}" that inherits its @Injectable decorator but does not provide one itself.\n` +
|
|
408
|
+
`This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
|
|
410
409
|
return def;
|
|
411
410
|
}
|
|
412
411
|
else {
|
|
@@ -8385,7 +8384,7 @@ class Version {
|
|
|
8385
8384
|
/**
|
|
8386
8385
|
* @publicApi
|
|
8387
8386
|
*/
|
|
8388
|
-
const VERSION = new Version('15.2.0
|
|
8387
|
+
const VERSION = new Version('15.2.0');
|
|
8389
8388
|
|
|
8390
8389
|
// This default value is when checking the hierarchy for a token.
|
|
8391
8390
|
//
|