Skip to content

Commit beb69e4

Browse files
committedFeb 26, 2025·
Bump version to 5.8.2 and LKG
1 parent 8fdbd54 commit beb69e4

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed
 

‎lib/_tsc.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and limitations under the License.
1818

1919
// src/compiler/corePublic.ts
2020
var versionMajorMinor = "5.8";
21-
var version = "5.8.1-rc";
21+
var version = "5.8.2";
2222

2323
// src/compiler/core.ts
2424
var emptyArray = [];
@@ -85063,11 +85063,10 @@ function createTypeChecker(host) {
8506385063
return;
8506485064
}
8506585065
checkGrammarModifiers(node);
85066-
const isImportEquals = isInternalModuleImportEqualsDeclaration(node);
85067-
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
85066+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
8506885067
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
8506985068
}
85070-
if (isImportEquals || checkExternalImportOrExportDeclaration(node)) {
85069+
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
8507185070
checkImportBinding(node);
8507285071
markLinkedReferences(node, 6 /* ExportImportEquals */);
8507385072
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
@@ -85187,6 +85186,9 @@ function createTypeChecker(host) {
8518785186
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
8518885187
return;
8518985188
}
85189+
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
85190+
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
85191+
}
8519085192
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
8519185193
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
8519285194
if (node.isExportEquals) {

‎lib/typescript.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
22852285

22862286
// src/compiler/corePublic.ts
22872287
var versionMajorMinor = "5.8";
2288-
var version = "5.8.1-rc";
2288+
var version = "5.8.2";
22892289
var Comparison = /* @__PURE__ */ ((Comparison3) => {
22902290
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
22912291
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -89673,11 +89673,10 @@ function createTypeChecker(host) {
8967389673
return;
8967489674
}
8967589675
checkGrammarModifiers(node);
89676-
const isImportEquals = isInternalModuleImportEqualsDeclaration(node);
89677-
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
89676+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
8967889677
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
8967989678
}
89680-
if (isImportEquals || checkExternalImportOrExportDeclaration(node)) {
89679+
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
8968189680
checkImportBinding(node);
8968289681
markLinkedReferences(node, 6 /* ExportImportEquals */);
8968389682
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
@@ -89797,6 +89796,9 @@ function createTypeChecker(host) {
8979789796
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
8979889797
return;
8979989798
}
89799+
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
89800+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
89801+
}
8980089802
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
8980189803
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
8980289804
if (node.isExportEquals) {

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "https://www.typescriptlang.org/",
5-
"version": "5.8.1-rc",
5+
"version": "5.8.2",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

‎src/compiler/corePublic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export const versionMajorMinor = "5.8";
44
// The following is baselined as a literal template type without intervention
55
/** The version of the TypeScript compiler release */
6-
export const version = "5.8.1-rc" as string;
6+
export const version = "5.8.2" as string;
77

88
/**
99
* Type of objects whose values are all of the same type.

0 commit comments

Comments
 (0)
Please sign in to comment.