@angular-eslint/bundled-angular-compiler 18.1.1-alpha.5 → 18.1.1-alpha.7

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @license Angular v18.1.2
4
+ * @license Angular v18.1.3
5
5
  * (c) 2010-2024 Google LLC. https://angular.io/
6
6
  * License: MIT
7
7
  */
@@ -3771,7 +3771,7 @@ exports.FactoryTarget = void 0;
3771
3771
  * Construct a factory function expression for the given `R3FactoryMetadata`.
3772
3772
  */
3773
3773
  function compileFactoryFunction(meta) {
3774
- const t = variable('t');
3774
+ const t = variable('ɵt');
3775
3775
  let baseFactoryVar = null;
3776
3776
  // The type to instantiate via constructor invocation. If there is no delegated factory, meaning
3777
3777
  // this type is always created by constructor invocation, then this is the type-to-create
@@ -3796,7 +3796,7 @@ function compileFactoryFunction(meta) {
3796
3796
  const body = [];
3797
3797
  let retExpr = null;
3798
3798
  function makeConditionalFactory(nonCtorExpr) {
3799
- const r = variable('r');
3799
+ const r = variable('ɵr');
3800
3800
  body.push(r.set(NULL_EXPR).toDeclStmt());
3801
3801
  const ctorStmt = ctorExpr !== null
3802
3802
  ? r.set(ctorExpr).toStmt()
@@ -3834,7 +3834,7 @@ function compileFactoryFunction(meta) {
3834
3834
  // This is straightforward factory, just return it.
3835
3835
  body.push(new ReturnStatement(retExpr));
3836
3836
  }
3837
- let factoryFn = fn([new FnParam('t', DYNAMIC_TYPE)], body, INFERRED_TYPE, undefined, `${meta.name}_Factory`);
3837
+ let factoryFn = fn([new FnParam(t.name, DYNAMIC_TYPE)], body, INFERRED_TYPE, undefined, `${meta.name}_Factory`);
3838
3838
  if (baseFactoryVar !== null) {
3839
3839
  // There is a base factory variable so wrap its declaration along with the factory function into
3840
3840
  // an IIFE.
@@ -6119,7 +6119,8 @@ function delegateToFactory(type, useType, unwrapForwardRefs) {
6119
6119
  return createFactoryFunction(unwrappedType);
6120
6120
  }
6121
6121
  function createFactoryFunction(type) {
6122
- return arrowFn([new FnParam('t', DYNAMIC_TYPE)], type.prop('ɵfac').callFn([variable('t')]));
6122
+ const t = new FnParam('ɵt', DYNAMIC_TYPE);
6123
+ return arrowFn([t], type.prop('ɵfac').callFn([variable(t.name)]));
6123
6124
  }
6124
6125
 
6125
6126
  const UNUSABLE_INTERPOLATION_REGEXPS = [
@@ -29441,7 +29442,7 @@ function publishFacade(global) {
29441
29442
  * @description
29442
29443
  * Entry point for all public APIs of the compiler package.
29443
29444
  */
29444
- const VERSION = new Version('18.1.2');
29445
+ const VERSION = new Version('18.1.3');
29445
29446
 
29446
29447
  class CompilerConfig {
29447
29448
  constructor({ defaultEncapsulation = exports.ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
@@ -31079,7 +31080,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
31079
31080
  function compileDeclareClassMetadata(metadata) {
31080
31081
  const definitionMap = new DefinitionMap();
31081
31082
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
31082
- definitionMap.set('version', literal('18.1.2'));
31083
+ definitionMap.set('version', literal('18.1.3'));
31083
31084
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31084
31085
  definitionMap.set('type', metadata.type);
31085
31086
  definitionMap.set('decorators', metadata.decorators);
@@ -31097,7 +31098,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
31097
31098
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
31098
31099
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
31099
31100
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
31100
- definitionMap.set('version', literal('18.1.2'));
31101
+ definitionMap.set('version', literal('18.1.3'));
31101
31102
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31102
31103
  definitionMap.set('type', metadata.type);
31103
31104
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -31192,7 +31193,7 @@ function createDirectiveDefinitionMap(meta) {
31192
31193
  const definitionMap = new DefinitionMap();
31193
31194
  const minVersion = getMinimumVersionForPartialOutput(meta);
31194
31195
  definitionMap.set('minVersion', literal(minVersion));
31195
- definitionMap.set('version', literal('18.1.2'));
31196
+ definitionMap.set('version', literal('18.1.3'));
31196
31197
  // e.g. `type: MyDirective`
31197
31198
  definitionMap.set('type', meta.type.value);
31198
31199
  if (meta.isStandalone) {
@@ -31611,7 +31612,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
31611
31612
  function compileDeclareFactoryFunction(meta) {
31612
31613
  const definitionMap = new DefinitionMap();
31613
31614
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
31614
- definitionMap.set('version', literal('18.1.2'));
31615
+ definitionMap.set('version', literal('18.1.3'));
31615
31616
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31616
31617
  definitionMap.set('type', meta.type.value);
31617
31618
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -31646,7 +31647,7 @@ function compileDeclareInjectableFromMetadata(meta) {
31646
31647
  function createInjectableDefinitionMap(meta) {
31647
31648
  const definitionMap = new DefinitionMap();
31648
31649
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
31649
- definitionMap.set('version', literal('18.1.2'));
31650
+ definitionMap.set('version', literal('18.1.3'));
31650
31651
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31651
31652
  definitionMap.set('type', meta.type.value);
31652
31653
  // Only generate providedIn property if it has a non-null value
@@ -31697,7 +31698,7 @@ function compileDeclareInjectorFromMetadata(meta) {
31697
31698
  function createInjectorDefinitionMap(meta) {
31698
31699
  const definitionMap = new DefinitionMap();
31699
31700
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
31700
- definitionMap.set('version', literal('18.1.2'));
31701
+ definitionMap.set('version', literal('18.1.3'));
31701
31702
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31702
31703
  definitionMap.set('type', meta.type.value);
31703
31704
  definitionMap.set('providers', meta.providers);
@@ -31730,7 +31731,7 @@ function createNgModuleDefinitionMap(meta) {
31730
31731
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
31731
31732
  }
31732
31733
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
31733
- definitionMap.set('version', literal('18.1.2'));
31734
+ definitionMap.set('version', literal('18.1.3'));
31734
31735
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31735
31736
  definitionMap.set('type', meta.type.value);
31736
31737
  // We only generate the keys in the metadata if the arrays contain values.
@@ -31781,7 +31782,7 @@ function compileDeclarePipeFromMetadata(meta) {
31781
31782
  function createPipeDefinitionMap(meta) {
31782
31783
  const definitionMap = new DefinitionMap();
31783
31784
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
31784
- definitionMap.set('version', literal('18.1.2'));
31785
+ definitionMap.set('version', literal('18.1.3'));
31785
31786
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31786
31787
  // e.g. `type: MyPipe`
31787
31788
  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": "18.1.1-alpha.5",
3
+ "version": "18.1.1-alpha.7",
4
4
  "description": "A CJS bundled version of @angular/compiler",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",