File tree Expand file tree Collapse file tree
tests/baselines/reference/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ and limitations under the License.
1414***************************************************************************** */
1515
1616declare 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 /**
You can’t perform that action at this time.
0 commit comments