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: TypeScript 5.7 #27857

Merged
merged 32 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3d7e71c
feat(type): make `Float16Array` generic
petamoriken Nov 19, 2024
bbf6ce5
lint
petamoriken Nov 19, 2024
133966d
feat: TypeScript 5.7
dsherret Nov 20, 2024
a4bd6d6
fix
dsherret Nov 20, 2024
0f83221
Merge branch 'feat/generic-float16array' into typescript_5_7
dsherret Nov 20, 2024
b1cbc10
I think
dsherret Nov 20, 2024
ea3e152
Merge branch 'main' into typescript_5_7
dsherret Jan 28, 2025
eb3bba3
Update
dsherret Jan 28, 2025
7dea16f
Remove deprecated declaration files
dsherret Jan 28, 2025
176ca45
Updates.
dsherret Jan 28, 2025
3e566e5
Update
dsherret Jan 28, 2025
8eb8d8f
Update @types/node
dsherret Jan 28, 2025
856356f
Update
dsherret Jan 29, 2025
c3c0ef6
fix ArrayBufferLike -> ArrayBuffer
dsherret Jan 29, 2025
9038563
Updates
dsherret Jan 30, 2025
65dc29b
Working spec tests.
dsherret Jan 31, 2025
9606674
Fix maybe
dsherret Jan 31, 2025
f92dacd
Fix URL type in Deno
dsherret Jan 31, 2025
e9a7752
remove dead code
dsherret Jan 31, 2025
092705f
temp reverts
dsherret Jan 31, 2025
4829ac9
allow @types/node disallowed globals to be assigned to if the symbol …
dsherret Jan 31, 2025
d5943fd
Merge branch 'main' into typescript_5_7
dsherret Jan 31, 2025
c7be17f
Fix
dsherret Jan 31, 2025
8124dc1
update apis to use ArrayBuffer for outputs in some cases
dsherret Jan 31, 2025
d2245bb
format
dsherret Jan 31, 2025
feec922
lint
dsherret Jan 31, 2025
76c420d
fix jsdoc checker
dsherret Jan 31, 2025
00f0076
fix
dsherret Jan 31, 2025
0c4b593
update
dsherret Jan 31, 2025
e461431
lint
dsherret Jan 31, 2025
a0e4100
Merge branch 'main' into typescript_5_7
dsherret Jan 31, 2025
8affba6
remove deno_webgpu from list of libs
dsherret Jan 31, 2025
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 34 additions & 10 deletions cli/build.rs
dsherret marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ mod ts {
// Deno built-in type libraries
"decorators",
"decorators.legacy",
"es5",
"dom.asynciterable",
"dom",
"dom.extras",
"dom.iterable",
"es2015.collection",
"es2015.core",
"es2015",
Expand All @@ -145,10 +148,13 @@ mod ts {
"es2015.symbol",
"es2015.symbol.wellknown",
"es2016.array.include",
"es2016.intl",
"es2016",
"es2016.full",
"es2016.intl",
"es2017.arraybuffer",
"es2017",
"es2017.date",
"es2017.full",
"es2017.intl",
"es2017.object",
"es2017.sharedmemory",
Expand All @@ -157,52 +163,70 @@ mod ts {
"es2018.asyncgenerator",
"es2018.asynciterable",
"es2018",
"es2018.full",
"es2018.intl",
"es2018.promise",
"es2018.regexp",
"es2019.array",
"es2019",
"es2019.full",
"es2019.intl",
"es2019.object",
"es2019.string",
"es2019.symbol",
"es2020.bigint",
"es2020",
"es2020.date",
"es2020.full",
"es2020.intl",
"es2020.number",
"es2020.promise",
"es2020.sharedmemory",
"es2020.string",
"es2020.symbol.wellknown",
"es2021",
"es2021.full",
"es2021.intl",
"es2021.promise",
"es2021.string",
"es2021.weakref",
"es2022",
"es2022.array",
"es2022",
"es2022.error",
"es2022.full",
"es2022.intl",
"es2022.object",
"es2022.regexp",
"es2022.sharedmemory",
"es2022.string",
"es2023",
"es2023.array",
"es2023.collection",
"es2023",
"es2023.full",
"es2023.intl",
"esnext",
"es2024.arraybuffer",
"es2024.collection",
"es2024",
"es2024.full",
"es2024.object",
"es2024.promise",
"es2024.regexp",
"es2024.sharedmemory",
"es2024.string",
"es5",
"es6",
"esnext.array",
"esnext.collection",
"esnext",
"esnext.decorators",
"esnext.disposable",
"esnext.full",
"esnext.intl",
"esnext.iterator",
"esnext.object",
"esnext.promise",
"esnext.regexp",
"esnext.string",
"scripthost",
"webworker.asynciterable",
"webworker",
"webworker.importscripts",
"webworker.iterable",
];

let path_dts = cwd.join("tsc/dts");
Expand Down
2 changes: 1 addition & 1 deletion cli/lib/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn otel_runtime_config() -> OtelRuntimeConfig {
}

const GIT_COMMIT_HASH: &str = env!("GIT_COMMIT_HASH");
const TYPESCRIPT: &str = "5.6.2";
const TYPESCRIPT: &str = "5.7.3";
const DENO_VERSION: &str = env!("DENO_VERSION");
// TODO(bartlomieju): ideally we could remove this const.
const IS_CANARY: bool = option_env!("DENO_CANARY").is_some();
Expand Down
18 changes: 16 additions & 2 deletions cli/lsp/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6015,11 +6015,25 @@ mod tests {

// get some notification when the size of the assets grows
let mut total_size = 0;
for asset in assets {
for asset in &assets {
total_size += asset.text().len();
}
assert!(total_size > 0);
assert!(total_size < 2_000_000); // currently as of TS 4.6, it's 0.7MB
#[allow(clippy::print_stderr)]
// currently as of TS 5.7, it's 3MB
if total_size > 3_500_000 {
let mut sizes = Vec::new();
for asset in &assets {
sizes.push((asset.specifier(), asset.text().len()));
}
sizes.sort_by_cached_key(|(_, size)| *size);
sizes.reverse();
for (specifier, size) in &sizes {
eprintln!("{}: {}", specifier, size);
}
eprintln!("Total size: {}", total_size);
panic!("Assets were quite large.");
}
}

#[tokio::test]
Expand Down
2 changes: 1 addition & 1 deletion cli/npm/installer/resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ fn get_add_pkg_reqs_options(package_reqs: &[PackageReq]) -> AddPkgReqsOptions {
// WARNING: When bumping this version, check if anything needs to be
// updated in the `setNodeOnlyGlobalNames` call in 99_main_compiler.js
types_node_version_req: Some(
VersionReq::parse_from_npm("22.0.0 - 22.5.4").unwrap(),
VersionReq::parse_from_npm("22.9.0 - 22.12.0").unwrap(),
),
}
}
Expand Down
2 changes: 1 addition & 1 deletion cli/snapshot/shared.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Copyright 2018-2025 the Deno authors. MIT license.

pub static TS_VERSION: &str = "5.6.2";
pub static TS_VERSION: &str = "5.7.3";
Loading