Skip to content

Commit

Permalink
feat: Upgrade to TypeScript 5.5.2 (#24326)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Jul 3, 2024
1 parent 496ea59 commit 3242e27
Show file tree
Hide file tree
Showing 27 changed files with 185,780 additions and 181,733 deletions.
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

0 comments on commit 3242e27

Please sign in to comment.