From 398570691b581c21ba9fd69bcee1e873a0d648b7 Mon Sep 17 00:00:00 2001 From: "voidzero-guard[bot]" <278573678+voidzero-guard[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 01:56:05 +0000 Subject: [PATCH 1/2] feat(deps): upgrade upstream dependencies - rolldown: f2757ed -> v1.0.3 (a287faa) - oxc Rust crates: 0.132.0 -> 0.133.0 - mimalloc-safe: 0.1.61 -> 0.1.62 --- Cargo.lock | 160 +++++++++++++------------ Cargo.toml | 26 ++-- packages/core/package.json | 2 +- packages/tools/.upstream-versions.json | 2 +- 4 files changed, 98 insertions(+), 92 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 175f79e645..2f7d1bf9f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,7 +111,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -122,7 +122,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1545,7 +1545,7 @@ dependencies = [ "libc", "option-ext", "redox_users 0.5.2", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1697,7 +1697,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2495,7 +2495,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2 0.5.10", + "socket2 0.6.3", "tokio", "tower-service", "tracing", @@ -2772,7 +2772,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2942,7 +2942,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8cfc352a66ba903c23239ef51e809508b6fc2b0f90e3476ac7a9ff47e863ae95" dependencies = [ "scopeguard", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -3047,9 +3047,9 @@ dependencies = [ [[package]] name = "libmimalloc-sys2" -version = "0.1.57" +version = "0.1.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c601df46d9245293af01d2e82529bef06fd46d7428cd079ba2ab73fe452e9fb" +checksum = "52406d0c46b81d2f65422a6d6086172f4e6b2753414cbee48be53850f90b804e" dependencies = [ "cc", "cmake", @@ -3235,9 +3235,9 @@ dependencies = [ [[package]] name = "mimalloc-safe" -version = "0.1.61" +version = "0.1.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339faed83010f7e29846491de7db305c2624384271776cb27e08c9e44ee692c0" +checksum = "3e8b607e1874a1962cca1b926ffcf66c62aeda8cb62634acd904ee39582ed323" dependencies = [ "libmimalloc-sys2", ] @@ -3506,7 +3506,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -3787,9 +3787,9 @@ dependencies = [ [[package]] name = "oxc" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fecf76aaae6c29dd8dcde82e8a526ba8e7859ecfa98a2b8b5d54fc17965a241" +checksum = "cd840e7bf69e7db0148361251349bc85939dc81506b22584245ec539bff53e66" dependencies = [ "oxc_allocator", "oxc_ast", @@ -3850,9 +3850,9 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b44db8e77f8ead7332d0dd95850d27fb7bb09f288761447e804be05ad2f89d3" +checksum = "5e900ccc598726485709ccee5caf11687db0fdce7a7f6ab5ca67ab99036347fd" dependencies = [ "allocator-api2", "hashbrown 0.17.0", @@ -3864,9 +3864,9 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b7d05623c5fb0a8e65ee6c1971811a6f5e2332711b14abbffd2d90fdb81786" +checksum = "e85f2b08a659b819c31ae798a4d8ed43d5d3e4b5d3c24fe244599ed602401c16" dependencies = [ "bitflags 2.11.0", "oxc_allocator", @@ -3882,9 +3882,9 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f585aec92e2bdd985857d9bf58ce6896b65ad4410cc24a9533a16b864b5de8d7" +checksum = "b3baa8c4432cc17e36cb2aff37fc9e57e7defa5d0cf8fd4127d68ca474dd5edd" dependencies = [ "phf", "proc-macro2", @@ -3894,9 +3894,9 @@ dependencies = [ [[package]] name = "oxc_ast_visit" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c56f75c8a3204594b0f2cf3334378de270b7cec98ed336c77f83ae39db5c088b" +checksum = "976e4c8e1874fd007c4e9a729ac0975e15cbc6b715b620cbb9616b73a30828be" dependencies = [ "oxc_allocator", "oxc_ast", @@ -3906,9 +3906,9 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4b86db2459847ed12bcd2dc5c0112b1a6403cf476e93a428ef6a4056df3eb1d" +checksum = "656308108c2be80cddf6fdf36f2296138f3c0061845149d4f0b405ea6ffb6855" dependencies = [ "bitflags 2.11.0", "itertools 0.14.0", @@ -3920,9 +3920,9 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5c6d585bfae4599955634a307955afca907342694c62993a933216a9b6d170b" +checksum = "9f4d0ed54011c9647ec07e0445cbbc5113c0000b2994ac738321ea41a3a85644" dependencies = [ "bitflags 2.11.0", "cow-utils", @@ -3942,9 +3942,9 @@ dependencies = [ [[package]] name = "oxc_compat" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df61ca5b1ae11fcbc50f71c221532b1d16385268c576420faabf1740f85158f9" +checksum = "004a1b0e2bbba4afe2a68914d595346d2ea6705d6c467fcdd9256c16984cf71c" dependencies = [ "cow-utils", "oxc-browserslist", @@ -3955,18 +3955,18 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75a67baa093fb2410302bb5bea3be60c6f4e9d9573fda9d8561691234cd6bfde" +checksum = "9315b3a6c1560d176796921441fb91dc45ef3810fb2b98fedc040162f3a3a0d8" dependencies = [ "ropey", ] [[package]] name = "oxc_diagnostics" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd40c6b1e961ee7e9e00ba2c924b11259ad23aa306c349a48539344f266ef5c5" +checksum = "a729e6dbb517aec94346685e769f960dbdd335523cf9c844ecca7731beb15e2c" dependencies = [ "cow-utils", "oxc-miette", @@ -3975,9 +3975,9 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32dfc8b140169c70350e98cbfee928be46ae60151c3af6e477521afae8288809" +checksum = "6f803b86d86fd830075a6a7f7b84c59e93131367738c55b4e7526669eeb0cc70" dependencies = [ "cow-utils", "num-bigint", @@ -3991,9 +3991,9 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d13f41b137ab39f80c5ab3277e777302bfd8e9b937b760159bb0996e0b2467aa" +checksum = "ad19053743d90699386a7783562185cc88a4a240a02406e005225a9ea07e4f3a" dependencies = [ "dragonbox_ecma", "itoa", @@ -4013,9 +4013,9 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9cd8d61d9a651618aca97ca5b8b4264db6c47caffd1a427f64c416dccab5079" +checksum = "dd64ce6511afb4f982f4234c6f5f3de9c60dfab309d55c9353c949b38f0ac591" dependencies = [ "bitflags 2.11.0", "oxc_allocator", @@ -4031,9 +4031,9 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bca092ed1567ab44a1dbcfea8fdce169ab8a8310f31ef99ca0130b3ea5b8f4" +checksum = "a31a183e801bfaeb743a40867c2cbd2568e063f04da204e7b66a9707fb4b060d" dependencies = [ "itertools 0.14.0", "oxc_allocator", @@ -4049,9 +4049,9 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "277491ec9648e8ffb6c8b886abe243c71e228b1e5a3d5fc544bc2fc259c60dca" +checksum = "5eb678b4f814f97cf8c4553580663bfca3dd26cabba2ff234532ec441ea81b28" dependencies = [ "cow-utils", "itoa", @@ -4075,9 +4075,9 @@ dependencies = [ [[package]] name = "oxc_minify_napi" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d86b0a12d91111c5e4428076af916140ac6826e360ae15ada089fb5063c76d36" +checksum = "e24ee845e0a8df7ede6c87ded452eec987404a4885fcc08ba72a928a7bcf6990" dependencies = [ "napi", "napi-build", @@ -4095,9 +4095,9 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7185ed734c4140606fdb3156f07c06297c603d438895880ed6c1462dc7a8202f" +checksum = "5f8d17a004481486376dfbed239b9a5a4cefc18acef969b8a2a616f7d641cf4d" dependencies = [ "napi", "napi-build", @@ -4111,9 +4111,9 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da5b9ce5228d670de1bbc5b8c02441d01358c0a97b0037b17c6a5385c0e14442" +checksum = "e5983baba9d73d319214c3d0492987f4b47cb75b916b0e428adb3b3695a728ae" dependencies = [ "bitflags 2.11.0", "cow-utils", @@ -4135,9 +4135,9 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed0ea922c7ffccd29f315824e5321989a3ebe072445a46bc69051fd0ef990b5c" +checksum = "0c7b92233fe992e859dedb830eeaaa8e8bc22646a8b394c2c2e075ce90f180df" dependencies = [ "napi", "napi-build", @@ -4152,9 +4152,9 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "064f938a25efd15884b3e44565b903add1a762398420835a591bf9de41d27ee1" +checksum = "42bc4b6c29740a9de457f498b4e07c60af2c3acdc93cdc83a87b51f9c18b34b5" dependencies = [ "bitflags 2.11.0", "oxc_allocator", @@ -4210,9 +4210,9 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278adff6dc2f02cf149b978ff1b326a4c22a2d26dacedb4a21310ee3af6c533d" +checksum = "7aa288d48d10f2bbf470870b76280f754048fde578ce6051987f40c2dec84495" dependencies = [ "itertools 0.14.0", "memchr", @@ -4228,6 +4228,7 @@ dependencies = [ "oxc_syntax", "rustc-hash", "self_cell", + "smallvec 1.15.1", ] [[package]] @@ -4248,9 +4249,9 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8763b157864021a4a5ded33bd9e620e25d6e20552d11eefa5d3fa707663a3341" +checksum = "d92507cc30d1b8abd38fc1368ef90a33d573e746a048adefaae7434ad1be91ff" dependencies = [ "compact_str", "oxc-miette", @@ -4263,9 +4264,9 @@ dependencies = [ [[package]] name = "oxc_str" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf9548a6a9ab4a6227e1d890d7d244a9b5eb427c6b46790c770f5914b565c52b" +checksum = "4c8413fd0d68722180b2a3568a73920330ae2674975336b35a9cceb691b6f3f2" dependencies = [ "compact_str", "hashbrown 0.17.0", @@ -4276,9 +4277,9 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b3eaa2b28010deb7648dbbbce940ea788164db602e6fe09d81792e97706f07" +checksum = "db8ca91f5e39d6db686f3a75bdf01e2a44c05d24a554d22470073dd79462877b" dependencies = [ "bitflags 2.11.0", "cow-utils", @@ -4297,9 +4298,9 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca9b35894d67fa2b111b78922a5fd95906588f9f310055c037598f4763c6c8ab" +checksum = "e2ae88e3971bd9de5e479fffb80bf492ab01428fb46cdfbade973ada334a49e6" dependencies = [ "napi", "napi-build", @@ -4312,9 +4313,9 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4de9e697f1d7325576a62c644a3f7c4bbb26c8c93a24f80f561477a97a2c812" +checksum = "de8df164fbaa1b09d98b6f24ef537635e01a72d623c005c52ec411b5f9d11b80" dependencies = [ "base64 0.22.1", "compact_str", @@ -4342,9 +4343,9 @@ dependencies = [ [[package]] name = "oxc_transformer_plugins" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "152910d2c114c4e6c38ea49b77dd5a2d56b704c5fe0f81167759282dc0054e81" +checksum = "44c055d27fff3322072b91bbca7b6bc9f1dcbec7e381e1bdbaedd0f6a1b1333c" dependencies = [ "cow-utils", "itoa", @@ -4365,9 +4366,9 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.132.0" +version = "0.133.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c50dbc89637853b0cab15b93f19504f5d1539dc4ddbd7942f30ac7a43515ab6" +checksum = "3faf0ba83a4aa1af760f887b628afa08c1da08d1e0f916e3580116ad2abdc955" dependencies = [ "itoa", "oxc_allocator", @@ -5151,6 +5152,7 @@ dependencies = [ "commondir", "cow-utils", "dashmap", + "dunce", "futures", "indexmap", "insta", @@ -5623,6 +5625,7 @@ version = "0.1.0" dependencies = [ "arcstr", "phf", + "rolldown_common", "rolldown_plugin", "rolldown_utils", ] @@ -6078,7 +6081,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6134,7 +6137,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6268,7 +6271,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6593,6 +6596,9 @@ name = "smallvec" version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +dependencies = [ + "serde", +] [[package]] name = "smallvec" @@ -6623,7 +6629,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -6804,10 +6810,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.2", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6837,7 +6843,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874" dependencies = [ "rustix", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -8215,7 +8221,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -8631,7 +8637,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10" dependencies = [ "cfg-if", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index bfbc83d064..5c0978ea4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -212,7 +212,7 @@ json-strip-comments = "3" jsonschema = { version = "0.46.5", default-features = false } junction = "1.4.1" memchr = "2.7.4" -mimalloc-safe = "0.1.61" +mimalloc-safe = "0.1.62" mime = "0.3.17" napi = { version = "3.0.0", default-features = false, features = [ "async", @@ -316,7 +316,7 @@ xxhash-rust = "0.8.15" zip = "7.2" # oxc crates with the same version -oxc = { version = "0.132.0", features = [ +oxc = { version = "0.133.0", features = [ "ast_visit", "transformer", "minifier", @@ -328,17 +328,17 @@ oxc = { version = "0.132.0", features = [ "regular_expression", "cfg", ] } -oxc_allocator = { version = "0.132.0", features = ["pool"] } -oxc_ast = "0.132.0" -oxc_ecmascript = "0.132.0" -oxc_parser = "0.132.0" -oxc_span = "0.132.0" -oxc_napi = "0.132.0" -oxc_str = "0.132.0" -oxc_minify_napi = "0.132.0" -oxc_parser_napi = "0.132.0" -oxc_transform_napi = "0.132.0" -oxc_traverse = "0.132.0" +oxc_allocator = { version = "0.133.0", features = ["pool"] } +oxc_ast = "0.133.0" +oxc_ecmascript = "0.133.0" +oxc_parser = "0.133.0" +oxc_span = "0.133.0" +oxc_napi = "0.133.0" +oxc_str = "0.133.0" +oxc_minify_napi = "0.133.0" +oxc_parser_napi = "0.133.0" +oxc_transform_napi = "0.133.0" +oxc_traverse = "0.133.0" # oxc crates in their own repos oxc_index = { version = "4", features = ["rayon", "serde"] } diff --git a/packages/core/package.json b/packages/core/package.json index d8268c9857..64308a13ab 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -219,7 +219,7 @@ }, "bundledVersions": { "vite": "8.0.14", - "rolldown": "1.0.2", + "rolldown": "1.0.3", "tsdown": "0.22.0" } } diff --git a/packages/tools/.upstream-versions.json b/packages/tools/.upstream-versions.json index e65745068a..3451da70af 100644 --- a/packages/tools/.upstream-versions.json +++ b/packages/tools/.upstream-versions.json @@ -2,7 +2,7 @@ "rolldown": { "repo": "https://github.com/rolldown/rolldown.git", "branch": "main", - "hash": "f2757ed768477fc9bf198a7d8c370bbd426aa3eb" + "hash": "a287faaa3db70e9e4145b6bc16567f596a3c2e1f" }, "vite": { "repo": "https://github.com/vitejs/vite.git", From b77d88662f050728a47465258da312a3c3e71c44 Mon Sep 17 00:00:00 2001 From: MK Date: Thu, 28 May 2026 10:36:33 +0800 Subject: [PATCH 2/2] chore(binding): regenerate NAPI types for oxc 0.133.0 Adds LegalCommentsMode export, LegalCommentsLinked type, MinifyResult.legalComments, DecoratorOptions.strictNullChecks, and BindingHookTransformOutput.map?: ... | null, which were missing from the committed index.cjs/index.d.cts after bumping oxc and rolldown. CI's "Ensure no unexpected file changes after build" step caught this. --- packages/cli/binding/index.cjs | 1 + packages/cli/binding/index.d.cts | 55 +++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/packages/cli/binding/index.cjs b/packages/cli/binding/index.cjs index e1c463e8d6..bc104852cf 100644 --- a/packages/cli/binding/index.cjs +++ b/packages/cli/binding/index.cjs @@ -765,6 +765,7 @@ if (!nativeBinding) { } module.exports = nativeBinding; +module.exports.LegalCommentsMode = nativeBinding.LegalCommentsMode; module.exports.minify = nativeBinding.minify; module.exports.minifySync = nativeBinding.minifySync; module.exports.Severity = nativeBinding.Severity; diff --git a/packages/cli/binding/index.d.cts b/packages/cli/binding/index.d.cts index d24767a314..4cd0aa6c68 100644 --- a/packages/cli/binding/index.d.cts +++ b/packages/cli/binding/index.d.cts @@ -14,6 +14,18 @@ export interface CodegenOptions { * @default true */ removeWhitespace?: boolean; + /** + * How to handle legal comments (comments containing `@license`, `@preserve`, or starting with `//!`/`/*!`). + * + * * `"none"` - Do not preserve any legal comments. + * * `"inline"` - Preserve all legal comments inline. + * * `"eof"` - Move all legal comments to the end of the file. + * * `"external"` - Extract legal comments without linking. + * * `{ linked: "path/to/legal.txt" }` - Extract legal comments and add a link comment to the given path. + * + * @default "none" (when minifying) + */ + legalComments?: 'none' | 'inline' | 'eof' | 'external' | { linked: string }; } export interface CompressOptions { @@ -100,6 +112,25 @@ export interface CompressOptionsKeepNames { class: boolean; } +export interface LegalCommentsLinked { + /** + * Extract legal comments and write them to the given path, with a link + * comment appended to the generated code. + */ + linked: string; +} + +export declare const enum LegalCommentsMode { + /** Do not preserve any legal comments. */ + None = 'none', + /** Preserve all legal comments inline. */ + Inline = 'inline', + /** Move all legal comments to the end of the file. */ + Eof = 'eof', + /** Extract legal comments without linking. */ + External = 'external', +} + export interface MangleOptions { /** * Pass `true` to mangle names declared in the top level scope. @@ -156,6 +187,11 @@ export interface MinifyResult { code: string; map?: SourceMap; errors: Array; + /** + * Legal comments extracted from the source code. + * Only populated when `codegen.legalComments` is `"linked"` or `"external"`. + */ + legalComments: Array; } /** Minify synchronously. */ @@ -921,6 +957,18 @@ export interface DecoratorOptions { * @default false */ emitDecoratorMetadata?: boolean; + /** + * Aligns nullable-union `design:type` emission with `--strictNullChecks`. + * + * When `true` (default), `T | null` and `T | undefined` emit `Object`, matching tsc strict. + * When `false`, `null` and `undefined` are elided from the union so the underlying + * primitive constructor is emitted, matching tsc with `--strictNullChecks=false` + * and `babel-plugin-transform-typescript-metadata`. + * + * @see https://www.typescriptlang.org/tsconfig/#strictNullChecks + * @default true + */ + strictNullChecks?: boolean; } export interface Es2015Options { @@ -1552,6 +1600,7 @@ export declare class BindingDevEngine { ensureCurrentBuildFinish(): Promise; getBundleState(): Promise; ensureLatestBuildOutput(): Promise; + triggerFullBuild(): void; invalidate( caller: string, firstInvalidatedBy?: string | undefined | null, @@ -2345,7 +2394,11 @@ export type BindingHookSideEffects = boolean | string; export interface BindingHookTransformOutput { code?: string; moduleSideEffects?: BindingHookSideEffects; - map?: BindingSourcemap; + /** + * A sourcemap, or `null` to explicitly signal "no sourcemap" (distinct from + * omitting the field, which mirrors Rollup's "possibly broken" semantics). + */ + map?: BindingSourcemap | null; moduleType?: string; }