@angular/core 16.2.8 → 16.2.10

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.8
2
+ * @license Angular v16.2.10
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -313,7 +313,7 @@ export declare const APP_ID: InjectionToken<string>;
313
313
  *
314
314
  * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
315
315
  * and a function returning a promise.
316
- *
316
+ * ### Example with NgModule-based application
317
317
  * ```
318
318
  * function initializeApp(): Promise<any> {
319
319
  * return new Promise((resolve, reject) => {
@@ -335,11 +335,38 @@ export declare const APP_ID: InjectionToken<string>;
335
335
  * export class AppModule {}
336
336
  * ```
337
337
  *
338
+ * ### Example with standalone application
339
+ * ```
340
+ * export function initializeApp(http: HttpClient) {
341
+ * return (): Promise<any> =>
342
+ * firstValueFrom(
343
+ * http
344
+ * .get("https://someUrl.com/api/user")
345
+ * .pipe(tap(user => { ... }))
346
+ * );
347
+ * }
348
+ *
349
+ * bootstrapApplication(App, {
350
+ * providers: [
351
+ * provideHttpClient(),
352
+ * {
353
+ * provide: APP_INITIALIZER,
354
+ * useFactory: initializeApp,
355
+ * multi: true,
356
+ * deps: [HttpClient],
357
+ * },
358
+ * ],
359
+ * });
360
+
361
+ * ```
362
+ *
363
+ *
338
364
  * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function
339
365
  * returning an observable, see an example below. Note: the `HttpClient` in this example is used for
340
366
  * demo purposes to illustrate how the factory function can work with other providers available
341
367
  * through DI.
342
368
  *
369
+ * ### Example with NgModule-based application
343
370
  * ```
344
371
  * function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
345
372
  * return () => httpClient.get("https://someUrl.com/api/user")
@@ -362,6 +389,27 @@ export declare const APP_ID: InjectionToken<string>;
362
389
  * export class AppModule {}
363
390
  * ```
364
391
  *
392
+ * ### Example with standalone application
393
+ *
394
+ * function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
395
+ * return () => httpClient.get("https://someUrl.com/api/user")
396
+ * .pipe(
397
+ * tap(user => { ... })
398
+ * );
399
+ * }
400
+ *
401
+ * bootstrapApplication(App, {
402
+ * providers: [
403
+ * provideHttpClient(),
404
+ * {
405
+ * provide: APP_INITIALIZER,
406
+ * useFactory: initializeApp,
407
+ * multi: true,
408
+ * deps: [HttpClient],
409
+ * },
410
+ * ],
411
+ * });
412
+ *
365
413
  * @publicApi
366
414
  */
367
415
  export declare const APP_INITIALIZER: InjectionToken<readonly (() => Observable<unknown> | Promise<unknown> | void)[]>;
@@ -2699,7 +2747,7 @@ export declare interface Directive {
2699
2747
  * If a binding changes, Angular updates the directive's host element.
2700
2748
  *
2701
2749
  * When the key is a property of the host element, the property value is
2702
- * the propagated to the specified DOM property.
2750
+ * propagated to the specified DOM property.
2703
2751
  *
2704
2752
  * When the key is a static attribute in the DOM, the attribute value
2705
2753
  * is propagated to the specified property in the host element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.2.8",
3
+ "version": "16.2.10",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.8
2
+ * @license Angular v16.2.10
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -21920,7 +21920,7 @@ function publishFacade(global) {
21920
21920
  }
21921
21921
 
21922
21922
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
21923
- var VERSION2 = new Version("16.2.8");
21923
+ var VERSION2 = new Version("16.2.10");
21924
21924
 
21925
21925
  // bazel-out/darwin_arm64-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.8"));
23365
+ definitionMap.set("version", literal("16.2.10"));
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.8"));
23436
+ definitionMap.set("version", literal("16.2.10"));
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.8"));
23621
+ definitionMap.set("version", literal("16.2.10"));
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.8"));
23644
+ definitionMap.set("version", literal("16.2.10"));
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.8"));
23682
+ definitionMap.set("version", literal("16.2.10"));
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.8"));
23706
+ definitionMap.set("version", literal("16.2.10"));
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.8"));
23741
+ definitionMap.set("version", literal("16.2.10"));
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/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
23758
- var VERSION3 = new Version("16.2.8");
23758
+ var VERSION3 = new Version("16.2.10");
23759
23759
 
23760
23760
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
23761
23761
  var EmitFlags;