@angular/core 16.2.2 → 16.2.3
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/esm2022/src/di/injection_token.mjs +12 -7
- package/esm2022/src/hydration/annotate.mjs +53 -25
- package/esm2022/src/render3/after_render_hooks.mjs +6 -3
- package/esm2022/src/render3/collect_native_nodes.mjs +30 -23
- package/esm2022/src/util/dom.mjs +2 -2
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +14624 -14582
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +607 -81
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +12 -7
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +9 -9
- package/schematics/ng-generate/standalone-migration/bundle.js.map +1 -1
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.
|
|
2
|
+
* @license Angular v16.2.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4582,11 +4582,17 @@ export declare enum InjectFlags {
|
|
|
4582
4582
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
|
4583
4583
|
* the `Injector`. This provides an additional level of type safety.
|
|
4584
4584
|
*
|
|
4585
|
-
*
|
|
4586
|
-
*
|
|
4587
|
-
*
|
|
4588
|
-
*
|
|
4589
|
-
*
|
|
4585
|
+
* <div class="alert is-helpful">
|
|
4586
|
+
*
|
|
4587
|
+
* **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the
|
|
4588
|
+
* provider and the injection call. Creating a new instance of `InjectionToken` in different places,
|
|
4589
|
+
* even with the same description, will be treated as different tokens by Angular's DI system,
|
|
4590
|
+
* leading to a `NullInjectorError`.
|
|
4591
|
+
*
|
|
4592
|
+
* </div>
|
|
4593
|
+
*
|
|
4594
|
+
* <code-example format="typescript" language="typescript" path="injection-token/src/main.ts"
|
|
4595
|
+
* region="InjectionToken"></code-example>
|
|
4590
4596
|
*
|
|
4591
4597
|
* When creating an `InjectionToken`, you can optionally specify a factory function which returns
|
|
4592
4598
|
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
|
@@ -4613,7 +4619,6 @@ export declare enum InjectFlags {
|
|
|
4613
4619
|
*
|
|
4614
4620
|
* {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
|
|
4615
4621
|
*
|
|
4616
|
-
*
|
|
4617
4622
|
* @publicApi
|
|
4618
4623
|
*/
|
|
4619
4624
|
export declare class InjectionToken<T> {
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -21920,7 +21920,7 @@ function publishFacade(global) {
|
|
|
21920
21920
|
}
|
|
21921
21921
|
|
|
21922
21922
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
21923
|
-
var VERSION2 = new Version("16.2.
|
|
21923
|
+
var VERSION2 = new Version("16.2.3");
|
|
21924
21924
|
|
|
21925
21925
|
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
21926
21926
|
var _I18N_ATTR = "i18n";
|
|
@@ -23362,7 +23362,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
|
23362
23362
|
function compileDeclareClassMetadata(metadata) {
|
|
23363
23363
|
const definitionMap = new DefinitionMap();
|
|
23364
23364
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
23365
|
-
definitionMap.set("version", literal("16.2.
|
|
23365
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23366
23366
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23367
23367
|
definitionMap.set("type", metadata.type);
|
|
23368
23368
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -23433,7 +23433,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
23433
23433
|
const hasTransformFunctions = Object.values(meta.inputs).some((input) => input.transformFunction !== null);
|
|
23434
23434
|
const minVersion = hasTransformFunctions ? MINIMUM_PARTIAL_LINKER_VERSION2 : "14.0.0";
|
|
23435
23435
|
definitionMap.set("minVersion", literal(minVersion));
|
|
23436
|
-
definitionMap.set("version", literal("16.2.
|
|
23436
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23437
23437
|
definitionMap.set("type", meta.type.value);
|
|
23438
23438
|
if (meta.isStandalone) {
|
|
23439
23439
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -23618,7 +23618,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
|
23618
23618
|
function compileDeclareFactoryFunction(meta) {
|
|
23619
23619
|
const definitionMap = new DefinitionMap();
|
|
23620
23620
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
23621
|
-
definitionMap.set("version", literal("16.2.
|
|
23621
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23622
23622
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23623
23623
|
definitionMap.set("type", meta.type.value);
|
|
23624
23624
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -23641,7 +23641,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
23641
23641
|
function createInjectableDefinitionMap(meta) {
|
|
23642
23642
|
const definitionMap = new DefinitionMap();
|
|
23643
23643
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
23644
|
-
definitionMap.set("version", literal("16.2.
|
|
23644
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23645
23645
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23646
23646
|
definitionMap.set("type", meta.type.value);
|
|
23647
23647
|
if (meta.providedIn !== void 0) {
|
|
@@ -23679,7 +23679,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
23679
23679
|
function createInjectorDefinitionMap(meta) {
|
|
23680
23680
|
const definitionMap = new DefinitionMap();
|
|
23681
23681
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
23682
|
-
definitionMap.set("version", literal("16.2.
|
|
23682
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23683
23683
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23684
23684
|
definitionMap.set("type", meta.type.value);
|
|
23685
23685
|
definitionMap.set("providers", meta.providers);
|
|
@@ -23703,7 +23703,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
23703
23703
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
23704
23704
|
}
|
|
23705
23705
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
23706
|
-
definitionMap.set("version", literal("16.2.
|
|
23706
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23707
23707
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23708
23708
|
definitionMap.set("type", meta.type.value);
|
|
23709
23709
|
if (meta.bootstrap.length > 0) {
|
|
@@ -23738,7 +23738,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
23738
23738
|
function createPipeDefinitionMap(meta) {
|
|
23739
23739
|
const definitionMap = new DefinitionMap();
|
|
23740
23740
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
23741
|
-
definitionMap.set("version", literal("16.2.
|
|
23741
|
+
definitionMap.set("version", literal("16.2.3"));
|
|
23742
23742
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23743
23743
|
definitionMap.set("type", meta.type.value);
|
|
23744
23744
|
if (meta.isStandalone) {
|
|
@@ -23755,7 +23755,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
23755
23755
|
publishFacade(_global);
|
|
23756
23756
|
|
|
23757
23757
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
23758
|
-
var VERSION3 = new Version("16.2.
|
|
23758
|
+
var VERSION3 = new Version("16.2.3");
|
|
23759
23759
|
|
|
23760
23760
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
23761
23761
|
var EmitFlags;
|