@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/fesm2020/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
|
*/
|
|
@@ -772,10 +772,9 @@ function getInheritedInjectableDef(type) {
|
|
|
772
772
|
const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);
|
|
773
773
|
if (def) {
|
|
774
774
|
const typeName = getTypeName(type);
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
`This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
|
|
775
|
+
ngDevMode &&
|
|
776
|
+
console.warn(`DEPRECATED: DI is instantiating a token "${typeName}" that inherits its @Injectable decorator but does not provide one itself.\n` +
|
|
777
|
+
`This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
|
|
779
778
|
return def;
|
|
780
779
|
}
|
|
781
780
|
else {
|
|
@@ -8743,7 +8742,7 @@ class Version {
|
|
|
8743
8742
|
/**
|
|
8744
8743
|
* @publicApi
|
|
8745
8744
|
*/
|
|
8746
|
-
const VERSION = new Version('
|
|
8745
|
+
const VERSION = new Version('16.0.0-next.0');
|
|
8747
8746
|
|
|
8748
8747
|
// This default value is when checking the hierarchy for a token.
|
|
8749
8748
|
//
|