@angular-eslint/bundled-angular-compiler 17.3.1-alpha.8 → 17.4.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/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ import type { MessageBundle, ParsedTemplate, LocalizedString } from '@angular/co
3
3
  export type Comment = Required<ParsedTemplate>['commentNodes'][number];
4
4
  export type Message = ReturnType<MessageBundle['getMessages']>[number];
5
5
  export type I18nMeta = LocalizedString['metaBlock'];
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAElC,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @license Angular v17.3.4
4
+ * @license Angular v17.3.6
5
5
  * (c) 2010-2024 Google LLC. https://angular.io/
6
6
  * License: MIT
7
7
  */
@@ -12883,7 +12883,7 @@ function createI18nMessage(job, context, messagePlaceholder) {
12883
12883
  let formattedParams = formatParams(context.params);
12884
12884
  const formattedPostprocessingParams = formatParams(context.postprocessingParams);
12885
12885
  let needsPostprocessing = [...context.params.values()].some(v => v.length > 1);
12886
- return createI18nMessageOp(job.allocateXrefId(), context.xref, context.i18nBlock, context.message, messagePlaceholder ?? null, formattedParams, formattedPostprocessingParams, needsPostprocessing);
12886
+ return createI18nMessageOp(job.allocateXrefId(), context.xref, context.i18nBlock, context.message, null, formattedParams, formattedPostprocessingParams, needsPostprocessing);
12887
12887
  }
12888
12888
  /**
12889
12889
  * Formats an ICU placeholder into a single string with expression placeholders.
@@ -24910,10 +24910,10 @@ function convertAst(ast, job, baseSourceSpan) {
24910
24910
  function convertAstWithInterpolation(job, value, i18nMeta, sourceSpan) {
24911
24911
  let expression;
24912
24912
  if (value instanceof Interpolation$1) {
24913
- expression = new Interpolation(value.strings, value.expressions.map(e => convertAst(e, job, sourceSpan ?? null)), Object.keys(asMessage(i18nMeta)?.placeholders ?? {}));
24913
+ expression = new Interpolation(value.strings, value.expressions.map(e => convertAst(e, job, null)), Object.keys(asMessage(i18nMeta)?.placeholders ?? {}));
24914
24914
  }
24915
24915
  else if (value instanceof AST) {
24916
- expression = convertAst(value, job, sourceSpan ?? null);
24916
+ expression = convertAst(value, job, null);
24917
24917
  }
24918
24918
  else {
24919
24919
  expression = literal(value);
@@ -29570,7 +29570,6 @@ class TemplateDefinitionBuilder {
29570
29570
  if (typeof key === 'string') {
29571
29571
  if (!alreadySeen.has(key)) {
29572
29572
  attrExprs.push(...getAttributeNameLiterals(key));
29573
- value !== undefined && attrExprs.push(value);
29574
29573
  alreadySeen.add(key);
29575
29574
  }
29576
29575
  }
@@ -32720,7 +32719,7 @@ function publishFacade(global) {
32720
32719
  * @description
32721
32720
  * Entry point for all public APIs of the compiler package.
32722
32721
  */
32723
- const VERSION = new Version('17.3.4');
32722
+ const VERSION = new Version('17.3.6');
32724
32723
 
32725
32724
  class CompilerConfig {
32726
32725
  constructor({ defaultEncapsulation = exports.ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters } = {}) {
@@ -34288,7 +34287,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$5 = '12.0.0';
34288
34287
  function compileDeclareClassMetadata(metadata) {
34289
34288
  const definitionMap = new DefinitionMap();
34290
34289
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
34291
- definitionMap.set('version', literal('17.3.4'));
34290
+ definitionMap.set('version', literal('17.3.6'));
34292
34291
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34293
34292
  definitionMap.set('type', metadata.type);
34294
34293
  definitionMap.set('decorators', metadata.decorators);
@@ -34384,7 +34383,7 @@ function createDirectiveDefinitionMap(meta) {
34384
34383
  const definitionMap = new DefinitionMap();
34385
34384
  const minVersion = getMinimumVersionForPartialOutput(meta);
34386
34385
  definitionMap.set('minVersion', literal(minVersion));
34387
- definitionMap.set('version', literal('17.3.4'));
34386
+ definitionMap.set('version', literal('17.3.6'));
34388
34387
  // e.g. `type: MyDirective`
34389
34388
  definitionMap.set('type', meta.type.value);
34390
34389
  if (meta.isStandalone) {
@@ -34773,7 +34772,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
34773
34772
  function compileDeclareFactoryFunction(meta) {
34774
34773
  const definitionMap = new DefinitionMap();
34775
34774
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
34776
- definitionMap.set('version', literal('17.3.4'));
34775
+ definitionMap.set('version', literal('17.3.6'));
34777
34776
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34778
34777
  definitionMap.set('type', meta.type.value);
34779
34778
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -34808,7 +34807,7 @@ function compileDeclareInjectableFromMetadata(meta) {
34808
34807
  function createInjectableDefinitionMap(meta) {
34809
34808
  const definitionMap = new DefinitionMap();
34810
34809
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
34811
- definitionMap.set('version', literal('17.3.4'));
34810
+ definitionMap.set('version', literal('17.3.6'));
34812
34811
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34813
34812
  definitionMap.set('type', meta.type.value);
34814
34813
  // Only generate providedIn property if it has a non-null value
@@ -34859,7 +34858,7 @@ function compileDeclareInjectorFromMetadata(meta) {
34859
34858
  function createInjectorDefinitionMap(meta) {
34860
34859
  const definitionMap = new DefinitionMap();
34861
34860
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
34862
- definitionMap.set('version', literal('17.3.4'));
34861
+ definitionMap.set('version', literal('17.3.6'));
34863
34862
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34864
34863
  definitionMap.set('type', meta.type.value);
34865
34864
  definitionMap.set('providers', meta.providers);
@@ -34892,7 +34891,7 @@ function createNgModuleDefinitionMap(meta) {
34892
34891
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
34893
34892
  }
34894
34893
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
34895
- definitionMap.set('version', literal('17.3.4'));
34894
+ definitionMap.set('version', literal('17.3.6'));
34896
34895
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34897
34896
  definitionMap.set('type', meta.type.value);
34898
34897
  // We only generate the keys in the metadata if the arrays contain values.
@@ -34943,7 +34942,7 @@ function compileDeclarePipeFromMetadata(meta) {
34943
34942
  function createPipeDefinitionMap(meta) {
34944
34943
  const definitionMap = new DefinitionMap();
34945
34944
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
34946
- definitionMap.set('version', literal('17.3.4'));
34945
+ definitionMap.set('version', literal('17.3.6'));
34947
34946
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34948
34947
  // e.g. `type: MyPipe`
34949
34948
  definitionMap.set('type', meta.type.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/bundled-angular-compiler",
3
- "version": "17.3.1-alpha.8",
3
+ "version": "17.4.0",
4
4
  "description": "A CJS bundled version of @angular/compiler",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -12,6 +12,7 @@
12
12
  },
13
13
  "files": [
14
14
  "dist",
15
+ "!**/*.tsbuildinfo",
15
16
  "package.json",
16
17
  "README.md"
17
18
  ],