From 386a75aebcdda88ea5b145c0159df14861ce0c41 Mon Sep 17 00:00:00 2001 From: Sebastian Jeltsch Date: Tue, 7 Oct 2025 14:40:53 +0200 Subject: [PATCH] Add an explicit log warning where V8 is still in use. --- crates/core/src/js/runtime.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/core/src/js/runtime.rs b/crates/core/src/js/runtime.rs index e4ced461..adcc4626 100644 --- a/crates/core/src/js/runtime.rs +++ b/crates/core/src/js/runtime.rs @@ -341,6 +341,14 @@ pub(crate) async fn load_routes_and_jobs_from_js_modules( } }; + if !modules.is_empty() { + warn!( + "Found JS/TS scripts. The V8 runtime is deprecated and will likely be \ + removed in the next major release. Please migrate to WASM. If you have \ + concerns or encounter any issues, don't hesitate to reach out." + ); + } + let mut js_router = Router::new(); for module in modules { let fname = module.filename().to_owned();