Update dependencies (#58458)

This commit is contained in:
Jake Bailey
2024-05-07 12:55:16 -07:00
committed by GitHub
parent 14b4529a69
commit 9d714f47c0
11 changed files with 443 additions and 548 deletions

View File

@@ -57,8 +57,8 @@
],
// Note: if adding new languages, make sure settings.template.json is updated too.
"plugins": [
"https://plugins.dprint.dev/typescript-0.90.0.wasm",
"https://plugins.dprint.dev/typescript-0.90.5.wasm",
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/prettier-0.39.0.json@896b70f29ef8213c1b0ba81a93cee9c2d4f39ac2194040313cd433906db7bc7c"
"https://plugins.dprint.dev/prettier-0.40.0.json@68c668863ec834d4be0f6f5ccaab415df75336a992aceb7eeeb14fdf096a9e9c"
]
}

925
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -40,8 +40,8 @@
],
"devDependencies": {
"@esfx/canceltoken": "^1.0.0",
"@octokit/rest": "^20.0.2",
"@types/chai": "^4.3.14",
"@octokit/rest": "^20.1.1",
"@types/chai": "^4.3.16",
"@types/microsoft__typescript-etw": "^0.1.3",
"@types/minimist": "^1.2.5",
"@types/mocha": "^10.0.6",
@@ -49,33 +49,33 @@
"@types/node": "latest",
"@types/source-map-support": "^0.5.10",
"@types/which": "^3.0.3",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/utils": "^7.3.1",
"azure-devops-node-api": "^12.5.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@typescript-eslint/utils": "^7.8.0",
"azure-devops-node-api": "^13.0.0",
"c8": "^9.1.0",
"chai": "^4.4.1",
"chalk": "^4.1.2",
"chokidar": "^3.6.0",
"diff": "^5.2.0",
"dprint": "^0.45.0",
"esbuild": "^0.21.0",
"dprint": "^0.45.1",
"esbuild": "^0.21.1",
"eslint": "^8.57.0",
"eslint-formatter-autolinkable-stylish": "^1.3.0",
"eslint-plugin-local": "^4.2.1",
"eslint-plugin-local": "^4.2.2",
"fast-xml-parser": "^4.3.6",
"glob": "^10.3.10",
"glob": "^10.3.12",
"hereby": "^1.8.9",
"jsonc-parser": "^3.2.1",
"minimist": "^1.2.8",
"mocha": "^10.3.0",
"mocha": "^10.4.0",
"mocha-fivemat-progress-reporter": "^0.1.0",
"ms": "^2.1.3",
"node-fetch": "^3.3.2",
"playwright": "^1.42.1",
"playwright": "^1.44.0",
"source-map-support": "^0.5.21",
"tslib": "^2.6.2",
"typescript": "^5.4.3",
"typescript": "^5.4.5",
"which": "^3.0.1"
},
"overrides": {

View File

@@ -14,19 +14,19 @@ describe("comment parsing", () => {
it("skips shebang", () => {
const result = ts.getLeadingCommentRanges(withShebang, 0);
assert.isDefined(result);
assert.strictEqual(result!.length, 2);
assert.strictEqual(result.length, 2);
});
it("treats all comments at start of file as leading comments", () => {
const result = ts.getLeadingCommentRanges(noShebang, 0);
assert.isDefined(result);
assert.strictEqual(result!.length, 2);
assert.strictEqual(result.length, 2);
});
it("returns leading comments if position is not 0", () => {
const result = ts.getLeadingCommentRanges(withTrailing, 1);
assert.isDefined(result);
assert.strictEqual(result!.length, 1);
assert.strictEqual(result![0].kind, ts.SyntaxKind.SingleLineCommentTrivia);
assert.strictEqual(result.length, 1);
assert.strictEqual(result[0].kind, ts.SyntaxKind.SingleLineCommentTrivia);
});
});

View File

@@ -20,8 +20,8 @@ describe("unittests:: evaluation:: autoAccessors", () => {
const desc = Object.getOwnPropertyDescriptor(C.prototype, "x");
assert.isDefined(desc);
assert.isFunction(desc!.get);
assert.isFunction(desc!.set);
assert.isFunction(desc.get);
assert.isFunction(desc.set);
});
it("storage is private", async () => {

View File

@@ -232,8 +232,8 @@ describe("unittests:: evaluation:: awaitUsingDeclarations", () => {
]);
assert.instanceOf(output[4], Error);
assert.strictEqual(output[4].name, "SuppressedError");
assert.strictEqual(output[4].error, "dispose error");
assert.strictEqual(output[4].suppressed, "body error");
assert.strictEqual((output[4] as any).error, "dispose error");
assert.strictEqual((output[4] as any).suppressed, "body error");
assert.deepEqual(output.slice(5), [
"after try",
]);

View File

@@ -351,8 +351,8 @@ describe("unittests:: evaluation:: usingDeclarations", () => {
]);
assert.instanceOf(output[4], Error);
assert.strictEqual(output[4].name, "SuppressedError");
assert.strictEqual(output[4].error, "dispose error");
assert.strictEqual(output[4].suppressed, "body error");
assert.strictEqual((output[4] as any).error, "dispose error");
assert.strictEqual((output[4] as any).suppressed, "body error");
assert.deepEqual(output.slice(5), [
"after try",
]);

View File

@@ -519,7 +519,7 @@ oh.no
assert.equal(root.kind, ts.SyntaxKind.SourceFile);
const first = root.getFirstToken();
assert.isDefined(first);
assert.equal(first!.kind, ts.SyntaxKind.VarKeyword);
assert.equal(first.kind, ts.SyntaxKind.VarKeyword);
});
});
describe("getLastToken", () => {
@@ -528,7 +528,7 @@ oh.no
assert.isDefined(root);
const last = root.getLastToken();
assert.isDefined(last);
assert.equal(last!.kind, ts.SyntaxKind.EndOfFileToken);
assert.equal(last.kind, ts.SyntaxKind.EndOfFileToken);
});
});
describe("getStart", () => {

View File

@@ -67,7 +67,7 @@ function test() {}`;
const funcDec = testSourceFile.statements.find(ts.isFunctionDeclaration)!;
const tags = ts.getJSDocTags(funcDec);
assert.isDefined(tags[0].comment);
assert.isDefined(tags[0].comment![0]);
assert.isDefined(tags[0].comment[0]);
assert.isString(tags[0].comment);
assert.equal(tags[0].comment as string, "Some\n text\r\n with newlines.");
});

View File

@@ -117,8 +117,8 @@ describe("unittests:: tsserver:: exportMapCache::", () => {
if (symbolName === "SIGINT") sigintPropBefore = info;
});
assert.ok(sigintPropBefore);
assert.ok(sigintPropBefore![0].symbol.flags & ts.SymbolFlags.Transient);
const symbolIdBefore = ts.getSymbolId(sigintPropBefore![0].symbol);
assert.ok(sigintPropBefore[0].symbol.flags & ts.SymbolFlags.Transient);
const symbolIdBefore = ts.getSymbolId(sigintPropBefore[0].symbol);
// Update program without clearing cache
session.executeCommandSeq<ts.server.protocol.UpdateOpenRequest>({
@@ -143,7 +143,7 @@ describe("unittests:: tsserver:: exportMapCache::", () => {
if (symbolName === "SIGINT") sigintPropAfter = info;
});
assert.ok(sigintPropAfter);
assert.notEqual(symbolIdBefore, ts.getSymbolId(sigintPropAfter![0].symbol));
assert.notEqual(symbolIdBefore, ts.getSymbolId(sigintPropAfter[0].symbol));
baselineTsserverLogs("exportMapCache", "does not store transient symbols through program updates", session);
});

View File

@@ -118,8 +118,8 @@ import { something } from "something";
};
const response = session.executeCommandSeq(request).response as ts.server.protocol.SyntacticDiagnosticsSyncResponse["body"];
assert.isDefined(response);
assert.equal(response!.length, 1);
assert.equal((response![0] as ts.server.protocol.Diagnostic).text, expectedErrorMessage);
assert.equal(response.length, 1);
assert.equal((response[0] as ts.server.protocol.Diagnostic).text, expectedErrorMessage);
const project = service.inferredProjects[0];
const diagnostics = project.getLanguageService().getSyntacticDiagnostics(file1.path);