Bump version to 5.8.2 and LKG

This commit is contained in:
TypeScript Bot
2025-02-26 07:17:27 +00:00
parent 8fdbd54160
commit beb69e4cdd
5 changed files with 16 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ and limitations under the License.
// src/compiler/corePublic.ts
var versionMajorMinor = "5.8";
var version = "5.8.1-rc";
var version = "5.8.2";
// src/compiler/core.ts
var emptyArray = [];
@@ -85063,11 +85063,10 @@ function createTypeChecker(host) {
return;
}
checkGrammarModifiers(node);
const isImportEquals = isInternalModuleImportEqualsDeclaration(node);
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
}
if (isImportEquals || checkExternalImportOrExportDeclaration(node)) {
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
checkImportBinding(node);
markLinkedReferences(node, 6 /* ExportImportEquals */);
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
@@ -85187,6 +85186,9 @@ function createTypeChecker(host) {
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
return;
}
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
}
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
if (node.isExportEquals) {

View File

@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
// src/compiler/corePublic.ts
var versionMajorMinor = "5.8";
var version = "5.8.1-rc";
var version = "5.8.2";
var Comparison = /* @__PURE__ */ ((Comparison3) => {
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -89673,11 +89673,10 @@ function createTypeChecker(host) {
return;
}
checkGrammarModifiers(node);
const isImportEquals = isInternalModuleImportEqualsDeclaration(node);
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
}
if (isImportEquals || checkExternalImportOrExportDeclaration(node)) {
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
checkImportBinding(node);
markLinkedReferences(node, 6 /* ExportImportEquals */);
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
@@ -89797,6 +89796,9 @@ function createTypeChecker(host) {
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
return;
}
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
}
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
if (node.isExportEquals) {

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "typescript",
"version": "5.8.1-rc",
"version": "5.8.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "typescript",
"version": "5.8.1-rc",
"version": "5.8.2",
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",

View File

@@ -2,7 +2,7 @@
"name": "typescript",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "5.8.1-rc",
"version": "5.8.2",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [

View File

@@ -3,7 +3,7 @@
export const versionMajorMinor = "5.8";
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
export const version = "5.8.1-rc" as string;
export const version = "5.8.2" as string;
/**
* Type of objects whose values are all of the same type.