Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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.4.0",
"version": "5.5.0",
"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
@@ -1,6 +1,6 @@
// WARNING: The script `configurePrerelease.ts` uses a regexp to parse out these values.
// If changing the text in this section, be sure to test `configurePrerelease` too.
export const versionMajorMinor = "5.4";
export const versionMajorMinor = "5.5";
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
Expand Down
9 changes: 8 additions & 1 deletion src/testRunner/unittests/tsserver/projectReferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => {
};
const files = [libFile, containerLibConfig, containerLibIndex, containerExecConfig, containerExecIndex, containerCompositeExecConfig, containerCompositeExecIndex, containerConfig];
if (tempFile) files.push(tempFile);
const host = createHostWithSolutionBuild(files, [containerConfig.path]);

const rootNames = [containerConfig.path];
const host = createServerHost(files);
// Can't use createHostWithSolutionBuild. This test used to work,
// but no longer does since prepend isn't allowed in project references.
// We just baseline and assert nothing about the output.
solutionBuildWithBaseline(host, rootNames);

const session = new TestSession(host);
return { files, session, containerConfig, containerCompositeExecIndex };
}
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/ES3For-ofTypeCheck1.errors.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
ES3For-ofTypeCheck1.ts(1,15): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== ES3For-ofTypeCheck1.ts (1 errors) ====
for (var v of "") { }
~~
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/ES3For-ofTypeCheck2.errors.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== ES3For-ofTypeCheck2.ts (0 errors) ====
for (var v of [true]) { }
4 changes: 2 additions & 2 deletions tests/baselines/reference/ES3For-ofTypeCheck4.errors.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
ES3For-ofTypeCheck4.ts(2,17): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== ES3For-ofTypeCheck4.ts (1 errors) ====
var union: string | string[];
for (const v of union) { }
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/ES3For-ofTypeCheck6.errors.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== ES3For-ofTypeCheck6.ts (0 errors) ====
var union: string[] | number[];
for (var v of union) { }
4 changes: 2 additions & 2 deletions tests/baselines/reference/accessorWithES3.errors.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
accessorWithES3.ts(4,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
accessorWithES3.ts(10,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
accessorWithES3.ts(15,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
accessorWithES3.ts(19,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== accessorWithES3.ts (4 errors) ====
// error to use accessors in ES3 mode

Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/accessorsNotAllowedInES3.errors.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
accessorsNotAllowedInES3.ts(2,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
accessorsNotAllowedInES3.ts(4,15): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== accessorsNotAllowedInES3.ts (2 errors) ====
class C {
get x(): number { return 1; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'.
error TS5101: Option 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
alwaysStrictNoImplicitUseStrict.ts(3,13): error TS1100: Invalid use of 'arguments' in strict mode.


!!! error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'.
!!! error TS5101: Option 'noImplicitUseStrict' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5102: Option 'noImplicitUseStrict' has been removed. Please remove it from your configuration.
==== alwaysStrictNoImplicitUseStrict.ts (1 errors) ====
module M {
export function f() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== ambientAccessors.ts (0 errors) ====
// ok to use accessors in ambient class in ES3
declare class C {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== Class.ts (0 errors) ====
import { Configurable } from "./Configurable"

Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/api/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4139,7 +4139,7 @@ declare namespace ts {
responseRequired?: boolean;
}
}
const versionMajorMinor = "5.4";
const versionMajorMinor = "5.5";
/** The version of the TypeScript compiler release */
const version: string;
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/bigIntWithTargetES3.errors.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
bigIntWithTargetES3.ts(5,22): error TS2737: BigInt literals are not available when targeting lower than ES2020.
bigIntWithTargetES3.ts(5,29): error TS2737: BigInt literals are not available when targeting lower than ES2020.
bigIntWithTargetES3.ts(5,39): error TS2737: BigInt literals are not available when targeting lower than ES2020.
bigIntWithTargetES3.ts(5,48): error TS2737: BigInt literals are not available when targeting lower than ES2020.


!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== bigIntWithTargetES3.ts (4 errors) ====
const normalNumber = 123; // should not error
let bigintType: bigint; // should not error
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.
weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'?
weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type.
weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== weird.js (3 errors) ====
someFunction(function(BaseClass) {
~~~~~~~~~~~~
Expand Down
6 changes: 3 additions & 3 deletions tests/baselines/reference/checkJsdocReturnTag1.errors.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== returns.js (0 errors) ====
// @ts-check
/**
Expand Down
6 changes: 3 additions & 3 deletions tests/baselines/reference/checkJsdocReturnTag2.errors.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.
returns.js(6,5): error TS2322: Type 'number' is not assignable to type 'string'.
returns.js(13,5): error TS2322: Type 'number | boolean' is not assignable to type 'string | number'.
Type 'boolean' is not assignable to type 'string | number'.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== returns.js (2 errors) ====
// @ts-check
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== a.ts (0 errors) ====
class c {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== computedPropertyNames52.js (0 errors) ====
const array = [];
for (let i = 0; i < 10; ++i) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== computedPropertyNames52.js (0 errors) ====
const array = [];
for (let i = 0; i < 10; ++i) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.
file1.ts(1,1): error TS2448: Block-scoped variable 'c' used before its declaration.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== file1.ts (1 errors) ====
c;
~
Expand Down
6 changes: 3 additions & 3 deletions tests/baselines/reference/controlFlowJavascript.errors.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== controlFlowJavascript.js (0 errors) ====
let cond = true;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.
declFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
declFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
declFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
declFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.


!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== client.ts (0 errors) ====
///<reference path="declFile.d.ts"/>
var x = new M.C(); // Declaration file wont get emitted because there are errors in declaration file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error TS5055: Cannot write file '/out.d.ts' because it would overwrite input file.
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5102: Option 'out' has been removed. Please remove it from your configuration.
Use 'outFile' instead.


!!! error TS5055: Cannot write file '/out.d.ts' because it would overwrite input file.
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
!!! error TS5102: Option 'out' has been removed. Please remove it from your configuration.
!!! error TS5102: Use 'outFile' instead.
==== /out.d.ts (0 errors) ====
declare class c {
}
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/definePropertyOutputES3.errors.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
error TS5048: Option 'useDefineForClassFields' cannot be specified when option 'target' is 'ES3'.
error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.


!!! error TS5048: Option 'useDefineForClassFields' cannot be specified when option 'target' is 'ES3'.
!!! error TS5107: Option 'target=ES3' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5108: Option 'target=ES3' has been removed. Please remove it from your configuration.
==== definePropertyOutputES3.ts (0 errors) ====
class A {
a = 12
Expand Down
Loading