@angular/core 15.2.0-rc.0 → 16.0.0-next.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/core.mjs +2 -1
- package/esm2020/src/core_reactivity_export.mjs +11 -0
- package/esm2020/src/core_reactivity_export_internal.mjs +9 -0
- 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/render/api_flags.mjs +1 -1
- package/esm2020/src/signals/index.mjs +15 -0
- package/esm2020/src/signals/src/api.mjs +46 -0
- package/esm2020/src/signals/src/computed.mjs +142 -0
- package/esm2020/src/signals/src/effect.mjs +69 -0
- package/esm2020/src/signals/src/graph.mjs +114 -0
- package/esm2020/src/signals/src/signal.mjs +78 -0
- package/esm2020/src/signals/src/untracked.mjs +26 -0
- package/esm2020/src/signals/src/watch.mjs +54 -0
- package/esm2020/src/signals/src/weak_ref.mjs +11 -0
- 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 +483 -7
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -6
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +481 -7
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -6
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +287 -3
- package/package.json +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +608 -804
- 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/fesm2015/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v16.0.0-next.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -773,10 +773,9 @@ function getInheritedInjectableDef(type) {
|
|
|
773
773
|
const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);
|
|
774
774
|
if (def) {
|
|
775
775
|
const typeName = getTypeName(type);
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
`This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
|
|
776
|
+
ngDevMode &&
|
|
777
|
+
console.warn(`DEPRECATED: DI is instantiating a token "${typeName}" that inherits its @Injectable decorator but does not provide one itself.\n` +
|
|
778
|
+
`This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
|
|
780
779
|
return def;
|
|
781
780
|
}
|
|
782
781
|
else {
|
|
@@ -8751,7 +8750,7 @@ class Version {
|
|
|
8751
8750
|
/**
|
|
8752
8751
|
* @publicApi
|
|
8753
8752
|
*/
|
|
8754
|
-
const VERSION = new Version('
|
|
8753
|
+
const VERSION = new Version('16.0.0-next.0');
|
|
8755
8754
|
|
|
8756
8755
|
// This default value is when checking the hierarchy for a token.
|
|
8757
8756
|
//
|