@angular/compiler 19.1.0-next.1 → 19.1.0-next.2

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.1
2
+ * @license Angular v19.1.0-next.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3936,7 +3936,7 @@ function convertFromMaybeForwardRefExpression({ expression, forwardRef, }) {
3936
3936
  /**
3937
3937
  * Generate an expression that has the given `expr` wrapped in the following form:
3938
3938
  *
3939
- * ```
3939
+ * ```ts
3940
3940
  * forwardRef(() => expr)
3941
3941
  * ```
3942
3942
  */
@@ -11881,14 +11881,14 @@ const MAX_CHAIN_LENGTH = 256;
11881
11881
  *
11882
11882
  * For example, two `elementStart` operations in sequence:
11883
11883
  *
11884
- * ```typescript
11884
+ * ```ts
11885
11885
  * elementStart(0, 'div');
11886
11886
  * elementStart(1, 'span');
11887
11887
  * ```
11888
11888
  *
11889
11889
  * Can be called as a chain instead:
11890
11890
  *
11891
- * ```typescript
11891
+ * ```ts
11892
11892
  * elementStart(0, 'div')(1, 'span');
11893
11893
  * ```
11894
11894
  */
@@ -20931,7 +20931,7 @@ const GOOG_GET_MSG = 'goog.getMsg';
20931
20931
  *
20932
20932
  * Generates:
20933
20933
  *
20934
- * ```typescript
20934
+ * ```ts
20935
20935
  * const MSG_FOO = goog.getMsg(
20936
20936
  * // Message template.
20937
20937
  * 'Sent from {$interpolation} to {$startTagSpan}{$interpolation_1}{$closeTagSpan}.',
@@ -21375,7 +21375,7 @@ function addSubMessageParams(messageOp, subMessagePlaceholders) {
21375
21375
  /**
21376
21376
  * Generate statements that define a given translation message.
21377
21377
  *
21378
- * ```
21378
+ * ```ts
21379
21379
  * var I18N_1;
21380
21380
  * if (typeof ngI18nClosureMode !== undefined && ngI18nClosureMode) {
21381
21381
  * var MSG_EXTERNAL_XXX = goog.getMsg(
@@ -21414,7 +21414,7 @@ function getTranslationDeclStmts(message, variable, closureVar, params, transfor
21414
21414
  * Create the expression that will be used to guard the closure mode block
21415
21415
  * It is equivalent to:
21416
21416
  *
21417
- * ```
21417
+ * ```ts
21418
21418
  * typeof ngI18nClosureMode !== undefined && ngI18nClosureMode
21419
21419
  * ```
21420
21420
  */
@@ -26520,7 +26520,7 @@ const queryAdvancePlaceholder = Symbol('queryAdvancePlaceholder');
26520
26520
  *
26521
26521
  * --> will turn into
26522
26522
  *
26523
- * ```
26523
+ * ```ts
26524
26524
  * bla();
26525
26525
  * queryAdvance(2);
26526
26526
  * bla();
@@ -30883,7 +30883,7 @@ function publishFacade(global) {
30883
30883
  * @description
30884
30884
  * Entry point for all public APIs of the compiler package.
30885
30885
  */
30886
- const VERSION = new Version('19.1.0-next.1');
30886
+ const VERSION = new Version('19.1.0-next.2');
30887
30887
 
30888
30888
  class CompilerConfig {
30889
30889
  defaultEncapsulation;
@@ -32538,7 +32538,7 @@ function internalCompileClassMetadata(metadata) {
32538
32538
  * loads dependencies from `@defer` blocks.
32539
32539
  *
32540
32540
  * Generates a call like this:
32541
- * ```
32541
+ * ```ts
32542
32542
  * setClassMetadataAsync(type, () => [
32543
32543
  * import('./cmp-a').then(m => m.CmpA);
32544
32544
  * import('./cmp-b').then(m => m.CmpB);
@@ -32735,7 +32735,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
32735
32735
  function compileDeclareClassMetadata(metadata) {
32736
32736
  const definitionMap = new DefinitionMap();
32737
32737
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
32738
- definitionMap.set('version', literal('19.1.0-next.1'));
32738
+ definitionMap.set('version', literal('19.1.0-next.2'));
32739
32739
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32740
32740
  definitionMap.set('type', metadata.type);
32741
32741
  definitionMap.set('decorators', metadata.decorators);
@@ -32753,7 +32753,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
32753
32753
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
32754
32754
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
32755
32755
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
32756
- definitionMap.set('version', literal('19.1.0-next.1'));
32756
+ definitionMap.set('version', literal('19.1.0-next.2'));
32757
32757
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32758
32758
  definitionMap.set('type', metadata.type);
32759
32759
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -32848,7 +32848,7 @@ function createDirectiveDefinitionMap(meta) {
32848
32848
  const definitionMap = new DefinitionMap();
32849
32849
  const minVersion = getMinimumVersionForPartialOutput(meta);
32850
32850
  definitionMap.set('minVersion', literal(minVersion));
32851
- definitionMap.set('version', literal('19.1.0-next.1'));
32851
+ definitionMap.set('version', literal('19.1.0-next.2'));
32852
32852
  // e.g. `type: MyDirective`
32853
32853
  definitionMap.set('type', meta.type.value);
32854
32854
  if (meta.isStandalone !== undefined) {
@@ -33267,7 +33267,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
33267
33267
  function compileDeclareFactoryFunction(meta) {
33268
33268
  const definitionMap = new DefinitionMap();
33269
33269
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
33270
- definitionMap.set('version', literal('19.1.0-next.1'));
33270
+ definitionMap.set('version', literal('19.1.0-next.2'));
33271
33271
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33272
33272
  definitionMap.set('type', meta.type.value);
33273
33273
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -33302,7 +33302,7 @@ function compileDeclareInjectableFromMetadata(meta) {
33302
33302
  function createInjectableDefinitionMap(meta) {
33303
33303
  const definitionMap = new DefinitionMap();
33304
33304
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
33305
- definitionMap.set('version', literal('19.1.0-next.1'));
33305
+ definitionMap.set('version', literal('19.1.0-next.2'));
33306
33306
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33307
33307
  definitionMap.set('type', meta.type.value);
33308
33308
  // Only generate providedIn property if it has a non-null value
@@ -33353,7 +33353,7 @@ function compileDeclareInjectorFromMetadata(meta) {
33353
33353
  function createInjectorDefinitionMap(meta) {
33354
33354
  const definitionMap = new DefinitionMap();
33355
33355
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
33356
- definitionMap.set('version', literal('19.1.0-next.1'));
33356
+ definitionMap.set('version', literal('19.1.0-next.2'));
33357
33357
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33358
33358
  definitionMap.set('type', meta.type.value);
33359
33359
  definitionMap.set('providers', meta.providers);
@@ -33386,7 +33386,7 @@ function createNgModuleDefinitionMap(meta) {
33386
33386
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
33387
33387
  }
33388
33388
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
33389
- definitionMap.set('version', literal('19.1.0-next.1'));
33389
+ definitionMap.set('version', literal('19.1.0-next.2'));
33390
33390
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33391
33391
  definitionMap.set('type', meta.type.value);
33392
33392
  // We only generate the keys in the metadata if the arrays contain values.
@@ -33437,7 +33437,7 @@ function compileDeclarePipeFromMetadata(meta) {
33437
33437
  function createPipeDefinitionMap(meta) {
33438
33438
  const definitionMap = new DefinitionMap();
33439
33439
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
33440
- definitionMap.set('version', literal('19.1.0-next.1'));
33440
+ definitionMap.set('version', literal('19.1.0-next.2'));
33441
33441
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33442
33442
  // e.g. `type: MyPipe`
33443
33443
  definitionMap.set('type', meta.type.value);