Skip to content

Commit

Permalink
Bump version to 5.8.2 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Feb 26, 2025
1 parent 8fdbd54 commit beb69e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
10 changes: 6 additions & 4 deletions lib/_tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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 */) {
Expand Down Expand Up @@ -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) {
Expand Down
10 changes: 6 additions & 4 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 */) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/corePublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit beb69e4

Please sign in to comment.