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

feat: Upgrade to TypeScript 5.5.2 #24326

Merged
merged 10 commits into from
Jul 3, 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
7 changes: 5 additions & 2 deletions cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ mod ts {
"es2023",
"es2023.array",
"es2023.collection",
"es2023.intl",
"esnext",
"esnext.array",
"esnext.collection",
Expand All @@ -243,6 +244,8 @@ mod ts {
"esnext.intl",
"esnext.object",
"esnext.promise",
"esnext.regexp",
"esnext.string",
];

let path_dts = cwd.join("tsc/dts");
Expand Down Expand Up @@ -311,7 +314,7 @@ mod ts {

pub(crate) fn version() -> String {
let file_text = std::fs::read_to_string("tsc/00_typescript.js").unwrap();
let version_text = " version = \"";
let version_text = " version = \"";
for line in file_text.lines() {
if let Some(index) = line.find(version_text) {
let remaining_line = &line[index + version_text.len()..];
Expand Down Expand Up @@ -453,7 +456,7 @@ fn main() {
);

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

Expand Down
364,544 changes: 184,300 additions & 180,244 deletions cli/tsc/00_typescript.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions cli/tsc/dts/lib.dom.asynciterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ interface FileSystemDirectoryHandle {
}

interface ReadableStream<R = any> {
[Symbol.asyncIterator](options?: {
preventCancel?: boolean;
}): AsyncIterableIterator<R>;
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
}
Loading