@angular/language-service 12.0.3 → 12.0.4

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/bundles/ivy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.0.3
2
+ * @license Angular v12.0.4
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  * License: MIT
5
5
  */
@@ -17918,7 +17918,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
17918
17918
  * Use of this source code is governed by an MIT-style license that can be
17919
17919
  * found in the LICENSE file at https://angular.io/license
17920
17920
  */
17921
- const VERSION$1 = new Version('12.0.3');
17921
+ const VERSION$1 = new Version('12.0.4');
17922
17922
 
17923
17923
  /**
17924
17924
  * @license
@@ -18557,7 +18557,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
18557
18557
  function compileDeclareClassMetadata(metadata) {
18558
18558
  const definitionMap = new DefinitionMap();
18559
18559
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
18560
- definitionMap.set('version', literal('12.0.3'));
18560
+ definitionMap.set('version', literal('12.0.4'));
18561
18561
  definitionMap.set('ngImport', importExpr(Identifiers.core));
18562
18562
  definitionMap.set('type', metadata.type);
18563
18563
  definitionMap.set('decorators', metadata.decorators);
@@ -18597,7 +18597,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
18597
18597
  function createDirectiveDefinitionMap(meta) {
18598
18598
  const definitionMap = new DefinitionMap();
18599
18599
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
18600
- definitionMap.set('version', literal('12.0.3'));
18600
+ definitionMap.set('version', literal('12.0.4'));
18601
18601
  // e.g. `type: MyDirective`
18602
18602
  definitionMap.set('type', meta.internalType);
18603
18603
  // e.g. `selector: 'some-dir'`
@@ -18814,7 +18814,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
18814
18814
  function compileDeclareFactoryFunction(meta) {
18815
18815
  const definitionMap = new DefinitionMap();
18816
18816
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
18817
- definitionMap.set('version', literal('12.0.3'));
18817
+ definitionMap.set('version', literal('12.0.4'));
18818
18818
  definitionMap.set('ngImport', importExpr(Identifiers.core));
18819
18819
  definitionMap.set('type', meta.internalType);
18820
18820
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -18856,7 +18856,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
18856
18856
  function createInjectableDefinitionMap(meta) {
18857
18857
  const definitionMap = new DefinitionMap();
18858
18858
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
18859
- definitionMap.set('version', literal('12.0.3'));
18859
+ definitionMap.set('version', literal('12.0.4'));
18860
18860
  definitionMap.set('ngImport', importExpr(Identifiers.core));
18861
18861
  definitionMap.set('type', meta.internalType);
18862
18862
  // Only generate providedIn property if it has a non-null value
@@ -18935,7 +18935,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
18935
18935
  function createInjectorDefinitionMap(meta) {
18936
18936
  const definitionMap = new DefinitionMap();
18937
18937
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
18938
- definitionMap.set('version', literal('12.0.3'));
18938
+ definitionMap.set('version', literal('12.0.4'));
18939
18939
  definitionMap.set('ngImport', importExpr(Identifiers.core));
18940
18940
  definitionMap.set('type', meta.internalType);
18941
18941
  definitionMap.set('providers', meta.providers);
@@ -18972,7 +18972,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
18972
18972
  function createNgModuleDefinitionMap(meta) {
18973
18973
  const definitionMap = new DefinitionMap();
18974
18974
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
18975
- definitionMap.set('version', literal('12.0.3'));
18975
+ definitionMap.set('version', literal('12.0.4'));
18976
18976
  definitionMap.set('ngImport', importExpr(Identifiers.core));
18977
18977
  definitionMap.set('type', meta.internalType);
18978
18978
  // We only generate the keys in the metadata if the arrays contain values.
@@ -19030,7 +19030,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
19030
19030
  function createPipeDefinitionMap(meta) {
19031
19031
  const definitionMap = new DefinitionMap();
19032
19032
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
19033
- definitionMap.set('version', literal('12.0.3'));
19033
+ definitionMap.set('version', literal('12.0.4'));
19034
19034
  definitionMap.set('ngImport', importExpr(Identifiers.core));
19035
19035
  // e.g. `type: MyPipe`
19036
19036
  definitionMap.set('type', meta.internalType);
@@ -19062,7 +19062,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
19062
19062
  * Use of this source code is governed by an MIT-style license that can be
19063
19063
  * found in the LICENSE file at https://angular.io/license
19064
19064
  */
19065
- const VERSION$2 = new Version('12.0.3');
19065
+ const VERSION$2 = new Version('12.0.4');
19066
19066
 
19067
19067
  /**
19068
19068
  * @license
@@ -29607,6 +29607,12 @@ Either add the @Injectable() decorator to '${provider.node.name
29607
29607
  stmt.moduleSpecifier === undefined) {
29608
29608
  continue;
29609
29609
  }
29610
+ if (ts$1.isImportDeclaration(stmt) && stmt.importClause !== undefined &&
29611
+ stmt.importClause.isTypeOnly) {
29612
+ // Exclude type-only imports as they are always elided, so they don't contribute to
29613
+ // cycles.
29614
+ continue;
29615
+ }
29610
29616
  const symbol = this.checker.getSymbolAtLocation(stmt.moduleSpecifier);
29611
29617
  if (symbol === undefined || symbol.valueDeclaration === undefined) {
29612
29618
  // No symbol could be found to skip over this import/export.
@@ -38918,7 +38924,9 @@ https://v9.angular.io/guide/template-typecheck#template-type-checking`,
38918
38924
  }
38919
38925
  function getTsSymbolDisplayInfo(tsLS, checker, symbol, kind, ownerName) {
38920
38926
  const decl = symbol.valueDeclaration;
38921
- if (decl === undefined || (!ts$1.isPropertyDeclaration(decl) && !ts$1.isMethodDeclaration(decl)) ||
38927
+ if (decl === undefined ||
38928
+ (!ts$1.isPropertyDeclaration(decl) && !ts$1.isMethodDeclaration(decl) &&
38929
+ !isNamedClassDeclaration(decl)) ||
38922
38930
  !ts$1.isIdentifier(decl.name)) {
38923
38931
  return null;
38924
38932
  }
@@ -40690,14 +40698,24 @@ https://v9.angular.io/guide/template-typecheck#template-type-checking`,
40690
40698
  displayParts = info.displayParts;
40691
40699
  documentation = info.documentation;
40692
40700
  break;
40701
+ case AttributeCompletionKind.StructuralDirectiveAttribute:
40693
40702
  case AttributeCompletionKind.DirectiveInput:
40694
40703
  case AttributeCompletionKind.DirectiveOutput:
40695
40704
  const propertySymbol = getAttributeCompletionSymbol(completion, this.typeChecker);
40696
40705
  if (propertySymbol === null) {
40697
40706
  return undefined;
40698
40707
  }
40699
- info = getTsSymbolDisplayInfo(this.tsLS, this.typeChecker, propertySymbol, completion.kind === AttributeCompletionKind.DirectiveInput ? DisplayInfoKind.PROPERTY :
40700
- DisplayInfoKind.EVENT, completion.directive.tsSymbol.name);
40708
+ let kind;
40709
+ if (completion.kind === AttributeCompletionKind.DirectiveInput) {
40710
+ kind = DisplayInfoKind.PROPERTY;
40711
+ }
40712
+ else if (completion.kind === AttributeCompletionKind.DirectiveOutput) {
40713
+ kind = DisplayInfoKind.EVENT;
40714
+ }
40715
+ else {
40716
+ kind = DisplayInfoKind.DIRECTIVE;
40717
+ }
40718
+ info = getTsSymbolDisplayInfo(this.tsLS, this.typeChecker, propertySymbol, kind, completion.directive.tsSymbol.name);
40701
40719
  if (info === null) {
40702
40720
  return undefined;
40703
40721
  }
@@ -40708,7 +40726,7 @@ https://v9.angular.io/guide/template-typecheck#template-type-checking`,
40708
40726
  name: entryName,
40709
40727
  kind: unsafeCastDisplayInfoKindToScriptElementKind(kind),
40710
40728
  kindModifiers: ts$1.ScriptElementKindModifier.none,
40711
- displayParts: [],
40729
+ displayParts,
40712
40730
  documentation,
40713
40731
  };
40714
40732
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.0.3
2
+ * @license Angular v12.0.4
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  * License: MIT
5
5
  */
@@ -19459,7 +19459,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
19459
19459
  * Use of this source code is governed by an MIT-style license that can be
19460
19460
  * found in the LICENSE file at https://angular.io/license
19461
19461
  */
19462
- const VERSION$1 = new Version('12.0.3');
19462
+ const VERSION$1 = new Version('12.0.4');
19463
19463
 
19464
19464
  /**
19465
19465
  * @license
@@ -35366,6 +35366,9 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
35366
35366
  * then use the factory's `create()` method to create a component of that type.
35367
35367
  *
35368
35368
  * @see [Dynamic Components](guide/dynamic-component-loader)
35369
+ * @see [Usage Example](guide/dynamic-component-loader#resolving-components)
35370
+ * @see <live-example name="dynamic-component-loader" noDownload></live-example>
35371
+ of the code in this cookbook
35369
35372
  * @publicApi
35370
35373
  */
35371
35374
  class ComponentFactoryResolver {
@@ -35527,7 +35530,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
35527
35530
  /**
35528
35531
  * @publicApi
35529
35532
  */
35530
- const VERSION$2 = new Version$1('12.0.3');
35533
+ const VERSION$2 = new Version$1('12.0.4');
35531
35534
 
35532
35535
  /**
35533
35536
  * @license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/language-service",
3
- "version": "12.0.3",
3
+ "version": "12.0.4",
4
4
  "description": "Angular - language services",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",