@angular/language-service 10.2.4 → 10.2.5

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 v10.2.4
2
+ * @license Angular v10.2.5
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  * License: MIT
5
5
  */
@@ -19198,7 +19198,7 @@ define(['exports', 'os', 'typescript', 'fs', 'constants', 'stream', 'util', 'ass
19198
19198
  * Use of this source code is governed by an MIT-style license that can be
19199
19199
  * found in the LICENSE file at https://angular.io/license
19200
19200
  */
19201
- const VERSION$1 = new Version('10.2.4');
19201
+ const VERSION$1 = new Version('10.2.5');
19202
19202
 
19203
19203
  /**
19204
19204
  * @license
@@ -19791,7 +19791,7 @@ define(['exports', 'os', 'typescript', 'fs', 'constants', 'stream', 'util', 'ass
19791
19791
  * Use of this source code is governed by an MIT-style license that can be
19792
19792
  * found in the LICENSE file at https://angular.io/license
19793
19793
  */
19794
- const VERSION$2 = new Version('10.2.4');
19794
+ const VERSION$2 = new Version('10.2.5');
19795
19795
 
19796
19796
  /**
19797
19797
  * @license
@@ -19930,6 +19930,11 @@ define(['exports', 'os', 'typescript', 'fs', 'constants', 'stream', 'util', 'ass
19930
19930
  * Raised when a directive/pipe is part of the declarations of two or more NgModules.
19931
19931
  */
19932
19932
  ErrorCode[ErrorCode["NGMODULE_DECLARATION_NOT_UNIQUE"] = 6007] = "NGMODULE_DECLARATION_NOT_UNIQUE";
19933
+ /**
19934
+ * Not actually raised by the compiler, but reserved for documentation of a View Engine error when
19935
+ * a View Engine build depends on an Ivy-compiled NgModule.
19936
+ */
19937
+ ErrorCode[ErrorCode["NGMODULE_VE_DEPENDENCY_ON_IVY_LIB"] = 6999] = "NGMODULE_VE_DEPENDENCY_ON_IVY_LIB";
19933
19938
  /**
19934
19939
  * An element name failed validation against the DOM schema.
19935
19940
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v10.2.4
2
+ * @license Angular v10.2.5
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  * License: MIT
5
5
  */
@@ -17995,7 +17995,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
17995
17995
  * Use of this source code is governed by an MIT-style license that can be
17996
17996
  * found in the LICENSE file at https://angular.io/license
17997
17997
  */
17998
- const VERSION$1 = new Version('10.2.4');
17998
+ const VERSION$1 = new Version('10.2.5');
17999
17999
 
18000
18000
  /**
18001
18001
  * @license
@@ -18568,6 +18568,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
18568
18568
  * found in the LICENSE file at https://angular.io/license
18569
18569
  */
18570
18570
  const ERROR_COMPONENT_TYPE = 'ngComponentType';
18571
+ const MISSING_NG_MODULE_METADATA_ERROR_DATA = 'ngMissingNgModuleMetadataErrorData';
18571
18572
  // Design notes:
18572
18573
  // - don't lazily create metadata:
18573
18574
  // For some metadata, we need to do async work sometimes,
@@ -19035,7 +19036,16 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
19035
19036
  const importedModuleSummary = this.getNgModuleSummary(importedModuleType, alreadyCollecting);
19036
19037
  alreadyCollecting.delete(importedModuleType);
19037
19038
  if (!importedModuleSummary) {
19038
- this._reportError(syntaxError(`Unexpected ${this._getTypeDescriptor(importedType)} '${stringifyType(importedType)}' imported by the module '${stringifyType(moduleType)}'. Please add a @NgModule annotation.`), moduleType);
19039
+ const err = syntaxError(`Unexpected ${this._getTypeDescriptor(importedType)} '${stringifyType(importedType)}' imported by the module '${stringifyType(moduleType)}'. Please add a @NgModule annotation.`);
19040
+ // If possible, record additional context for this error to enable more useful
19041
+ // diagnostics on the compiler side.
19042
+ if (importedType instanceof StaticSymbol) {
19043
+ err[MISSING_NG_MODULE_METADATA_ERROR_DATA] = {
19044
+ fileName: importedType.filePath,
19045
+ className: importedType.name,
19046
+ };
19047
+ }
19048
+ this._reportError(err, moduleType);
19039
19049
  return;
19040
19050
  }
19041
19051
  importedModules.push(importedModuleSummary);
@@ -34147,7 +34157,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
34147
34157
  /**
34148
34158
  * @publicApi
34149
34159
  */
34150
- const VERSION$2 = new Version$1('10.2.4');
34160
+ const VERSION$2 = new Version$1('10.2.5');
34151
34161
 
34152
34162
  /**
34153
34163
  * @license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/language-service",
3
- "version": "10.2.4",
3
+ "version": "10.2.5",
4
4
  "description": "Angular - language services",
5
5
  "main": "./bundles/language-service.js",
6
6
  "typings": "./index.d.ts",