Skip to content

Commit 4374ffd

Browse files
Bump version to 5.1, fix 'ignoreDeprecations', and update baselines. (microsoft#52975)
1 parent 20d4479 commit 4374ffd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
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.0.0",
5+
"version": "5.1.0",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

src/compiler/corePublic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// WARNING: The script `configurePrerelease.ts` uses a regexp to parse out these values.
22
// If changing the text in this section, be sure to test `configurePrerelease` too.
3-
export const versionMajorMinor = "5.0";
3+
export const versionMajorMinor = "5.1";
44
// The following is baselined as a literal template type without intervention
55
/** The version of the TypeScript compiler release */
66
// eslint-disable-next-line @typescript-eslint/no-inferrable-types

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4324,7 +4324,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
43244324
const version = typeScriptVersion || versionMajorMinor;
43254325
const ignoreDeprecations = options.ignoreDeprecations;
43264326
if (ignoreDeprecations) {
4327-
if (ignoreDeprecations === DeprecationVersion.v5_0 && (version === DeprecationVersion.v5_0 || version === DeprecationVersion.v5_5)) {
4327+
if (ignoreDeprecations === DeprecationVersion.v5_0 && version.startsWith("5.")) {
43284328
return;
43294329
}
43304330
else if (reportInvalidIgnoreDeprecations) {

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3989,7 +3989,7 @@ declare namespace ts {
39893989
responseRequired?: boolean;
39903990
}
39913991
}
3992-
const versionMajorMinor = "5.0";
3992+
const versionMajorMinor = "5.1";
39933993
/** The version of the TypeScript compiler release */
39943994
const version: string;
39953995
/**

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ and limitations under the License.
1414
***************************************************************************** */
1515

1616
declare namespace ts {
17-
const versionMajorMinor = "5.0";
17+
const versionMajorMinor = "5.1";
1818
/** The version of the TypeScript compiler release */
1919
const version: string;
2020
/**

0 commit comments

Comments
 (0)