Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade TypeScript from 5.4.3 to 5.4.5 #23740

Merged
merged 1 commit into from
May 8, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: upgrade TypeScript to 5.4.5
  • Loading branch information
dsherret committed May 8, 2024
commit dbabfebc735c3a8f7251bbdaef9b67b23e6f72e6
2 changes: 1 addition & 1 deletion cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 453,7 @@ fn main() {
);

let ts_version = ts::version();
debug_assert_eq!(ts_version, "5.4.3"); // bump this assertion when it changes
debug_assert_eq!(ts_version, "5.4.5"); // bump this assertion when it changes
println!("cargo:rustc-env=TS_VERSION={}", ts_version);
println!("cargo:rerun-if-env-changed=TS_VERSION");

Expand Down
207 changes: 129 additions & 78 deletions cli/tsc/00_typescript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/tsc/dts/lib.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25582,7 25582,7 @@ interface WebSocket extends EventTarget {
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
Expand Down
2 changes: 1 addition & 1 deletion cli/tsc/dts/lib.webworker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8292,7 8292,7 @@ interface WebSocket extends EventTarget {
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
Expand Down
8 changes: 5 additions & 3 deletions cli/tsc/dts/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1510,12 1510,13 @@ declare namespace ts {
}
interface WatchChangeRequest extends Request {
command: CommandTypes.WatchChange;
arguments: WatchChangeRequestArgs;
arguments: WatchChangeRequestArgs | readonly WatchChangeRequestArgs[];
}
interface WatchChangeRequestArgs {
id: number;
path: string;
eventType: "create" | "delete" | "update";
created?: string[];
deleted?: string[];
updated?: string[];
}
/**
* Request to obtain the list of files that should be regenerated if target file is recompiled.
Expand Down Expand Up @@ -2452,6 2453,7 @@ declare namespace ts {
readonly id: number;
readonly path: string;
readonly recursive: boolean;
readonly ignoreUpdate?: boolean;
}
type CloseFileWatcherEventName = "closeFileWatcher";
interface CloseFileWatcherEvent extends Event {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/version_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 6,5 @@ Deno.test(function version() {
const pattern = /^\d \.\d \.\d /;
assert(pattern.test(Deno.version.deno));
assert(pattern.test(Deno.version.v8));
assertEquals(Deno.version.typescript, "5.4.3");
assertEquals(Deno.version.typescript, "5.4.5");
});
Loading