Skip to content

update dependency #356

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1,808 changes: 924 additions & 884 deletions Cargo.lock

Large diffs are not rendered by default.

94 changes: 47 additions & 47 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -154,90 +154,90 @@ worker = []

[dependencies]
maybe_path = "0.1.3"
thiserror = "2.0.4"
thiserror = "2.0.12"
serde = "1.0.219"

# Used for NodeJS compatibility and other features
async-trait = "0.1.87"
async-trait = "0.1.88"

# Used to generate identifiers for callbacks
paste = "1.0.15"

# The deno runtime itself, and the webidl extension for the web APIs
deno_core = "0.340.0"
deno_error = "0.5.5"
deno_core = "0.341.0"
deno_error = "0.5.6"

# For transpiling typescript
deno_ast = { version = "=0.46.0", features = ["transpiling", "cjs"] }
deno_media_type = "0.2.6"
deno_ast = { version = "=0.46.2", features = ["transpiling", "cjs"] }
deno_media_type = "0.2.8"

# Runtime for async tasks
tokio = "1.44.1"
tokio-util = "0.7.14"

# For web
hyper-util = {version = "0.1.10", optional = true}
hyper-util = {version = "0.1.11", optional = true}

# For URL imports
# Pinned for now due to upstream issues
reqwest = { version = "=0.12.8", optional = true, default-features = false, features = ["blocking", "rustls-tls"] }
http = { version = "1.0", optional = true }
deno_permissions = { version = "0.53.0", optional = true }
http = { version = "1.3", optional = true }
deno_permissions = { version = "0.56.0", optional = true }


#
# Dependencies for the various extension features
#

deno_broadcast_channel = { version = "0.188.0", optional = true }

deno_cache = { version = "0.126.0", optional = true }
deno_console = { version = "0.194.0", optional = true }
deno_cron = { version = "0.74.0", optional = true }
deno_crypto = { version = "0.208.0", optional = true }
deno_fetch = { version = "0.218.0", optional = true }
deno_ffi = { version = "0.181.0", optional = true }
deno_fs = { version = "0.104.0", optional = true, features = ["sync_fs"] }
deno_http = { version = "0.192.0", optional = true }
deno_kv = { version = "0.102.0", optional = true }
deno_net = { version = "0.186.0", optional = true }
deno_node = { version = "0.132.0", optional = true }
deno_tls = { version = "0.181.0", optional = true }
deno_url = { version = "0.194.0", optional = true }

deno_web = { version = "0.225.0", optional = true }
deno_webidl = { version = "0.194.0", optional = true }
deno_webstorage = { version = "0.189.0", optional = true }
deno_websocket = { version = "0.199.0", optional = true }
deno_webgpu = { version = "0.161.0", optional = true }

deno_io = { version = "0.104.0", optional = true }
deno_telemetry = { version = "0.16.0", optional = true }
deno_broadcast_channel = { version = "0.191.0", optional = true }

deno_cache = { version = "0.129.0", optional = true }
deno_console = { version = "0.197.0", optional = true }
deno_cron = { version = "0.77.0", optional = true }
deno_crypto = { version = "0.211.0", optional = true }
deno_fetch = { version = "0.221.0", optional = true }
deno_ffi = { version = "0.184.0", optional = true }
deno_fs = { version = "0.107.0", optional = true, features = ["sync_fs"] }
deno_http = { version = "0.195.0", optional = true }
deno_kv = { version = "0.105.0", optional = true }
deno_net = { version = "0.189.0", optional = true }
deno_node = { version = "0.135.0", optional = true }
deno_tls = { version = "0.184.0", optional = true }
deno_url = { version = "0.197.0", optional = true }

deno_web = { version = "0.228.0", optional = true }
deno_webidl = { version = "0.197.0", optional = true }
deno_webstorage = { version = "0.192.0", optional = true }
deno_websocket = { version = "0.202.0", optional = true }
deno_webgpu = { version = "0.164.0", optional = true }

deno_io = { version = "0.107.0", optional = true }
deno_telemetry = { version = "0.19.0", optional = true }

# Dependencies for the IO feature
rustyline = {version = "=13.0.0", optional = true}
winapi = {version = "=0.3.9", optional = true, features = [
"commapi", "knownfolders", "mswsock", "objbase", "psapi", "shlobj",
"tlhelp32", "winbase", "winerror", "winuser", "winsock2", "processenv",
"commapi", "knownfolders", "mswsock", "objbase", "psapi", "shlobj",
"tlhelp32", "winbase", "winerror", "winuser", "winsock2", "processenv",
"wincon", "wincontypes", "consoleapi"
]}
nix = {version = "=0.27.1", optional = true, features = ["term"]}
libc = {version = "0.2.167", optional = true}
once_cell = {version = "1.20.2", optional = true}
libc = {version = "0.2.171", optional = true}
once_cell = {version = "1.21.3", optional = true}

# Dependencies for the web stub feature
base64-simd = {version = "0.8.0", optional = true}

# Dependencies for the node feature
deno_resolver = { version = "0.25.0", optional = true }
node_resolver = { version = "0.32.0", optional = true, features = ["sync"] }
deno_runtime = { version = "0.202.0", optional = true, features = ["exclude_runtime_main_js"] }
deno_terminal = { version = "0.2.0", optional = true }
deno_semver = { version = "0.7.0", optional = true }
deno_napi = { version = "0.125.0", optional = true }
deno_npm = { version = "0.26.0", optional = true }
deno_process = { version = "0.9.0", optional = true }
deno_package_json = { version = "0.5.0", optional = true }
deno_resolver = { version = "0.28.0", optional = true }
node_resolver = { version = "0.35.0", optional = true, features = ["sync"] }
deno_runtime = { version = "0.205.0", optional = true, features = ["exclude_runtime_main_js"] }
deno_terminal = { version = "0.2.2", optional = true }
deno_semver = { version = "0.7.1", optional = true }
deno_napi = { version = "0.128.0", optional = true }
deno_npm = { version = "0.30.1", optional = true }
deno_process = { version = "0.12.0", optional = true }
deno_package_json = { version = "0.6.0", optional = true }
checksum = { version = "0.2.1", optional = true }
sys_traits = { version = "0.1.8", optional = true }

Expand Down Expand Up @@ -291,4 +291,4 @@ required-features = ["web"]

[[bench]]
name = "runtime"
harness = false
harness = false
1 change: 1 addition & 0 deletions src/ext/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl ExtensionTrait<()> for deno_http::deno_http {
deno_http::deno_http::init_ops_and_esm(deno_http::Options {
http2_builder_hook: None,
http1_builder_hook: None,
no_legacy_abort: false,
})
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/ext/node/cjs_translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use deno_resolver::npm::DenoInNpmPackageChecker;
use deno_runtime::deno_fs;
use node_resolver::analyze::CjsAnalysis as ExtNodeCjsAnalysis;
use node_resolver::analyze::CjsAnalysisExports;
use node_resolver::analyze::EsmAnalysisMode;
use node_resolver::DenoIsBuiltInNodeModuleChecker;
use serde::Deserialize;
use serde::Serialize;
Expand Down Expand Up @@ -41,7 +42,7 @@ pub enum CjsAnalysis {
impl From<ExtNodeCjsAnalysis<'_>> for CjsAnalysis {
fn from(analysis: ExtNodeCjsAnalysis) -> Self {
match analysis {
ExtNodeCjsAnalysis::Esm(_) => CjsAnalysis::Esm,
ExtNodeCjsAnalysis::Esm(..) => CjsAnalysis::Esm,
ExtNodeCjsAnalysis::Cjs(analysis) => CjsAnalysis::Cjs {
exports: analysis.exports,
reexports: analysis.reexports,
Expand Down Expand Up @@ -123,7 +124,7 @@ impl RustyCjsCodeAnalyzer {
) -> Result<ExtNodeCjsAnalysis<'a>, JsErrorBox> {
let analysis = self.inner_cjs_analysis(specifier, &source)?;
match analysis {
CjsAnalysis::Esm => Ok(ExtNodeCjsAnalysis::Esm(source)),
CjsAnalysis::Esm { .. } => Ok(ExtNodeCjsAnalysis::Esm(source, None)),
CjsAnalysis::Cjs { exports, reexports } => {
Ok(ExtNodeCjsAnalysis::Cjs(CjsAnalysisExports {
exports,
Expand All @@ -140,6 +141,7 @@ impl node_resolver::analyze::CjsCodeAnalyzer for RustyCjsCodeAnalyzer {
&self,
specifier: &ModuleSpecifier,
source: Option<Cow<'a, str>>,
_esm_analysis_mode: EsmAnalysisMode,
) -> Result<ExtNodeCjsAnalysis<'a>, JsErrorBox> {
let source = match source {
Some(source) => source,
Expand Down
4 changes: 3 additions & 1 deletion src/ext/node/resolvers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ impl RustyResolver {
| MediaType::Json
| MediaType::Mts
| MediaType::Mjs
| MediaType::Dmts => false,
| MediaType::Dmts
| MediaType::Sql
| MediaType::Html => false,

MediaType::Cjs | MediaType::Cts | MediaType::Dcts => true,

Expand Down
5 changes: 1 addition & 4 deletions src/ext/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ extension!(
esm = [ dir "src/ext/runtime", "init_runtime.js" ],
state = |state| {
let options = BootstrapOptions {
no_color: false,
args: vec![
"--colors".to_string(),
],
Expand Down Expand Up @@ -218,10 +217,8 @@ fn create_web_worker_callback(options: WebWorkerCallbackOptions) -> Arc<CreateWe
enable_testing_features: false,
locale: deno_core::v8::icu::get_language_tag(),
location: Some(args.main_module),
no_color: !colors::use_color(),
color_level: colors::get_color_level(),
is_stdout_tty: false,
is_stderr_tty: false,
no_legacy_abort: false,
unstable_features: vec![],
user_agent: concat!("rustyscript_", env!("CARGO_PKG_VERSION")).to_string(),
inspect: false,
Expand Down
2 changes: 1 addition & 1 deletion src/js_value/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl String {
let u8_len = local.utf8_length(scope);
let mut buffer = vec![0; u8_len];

local.write_utf8_v2(scope, &mut buffer, WriteFlags::empty());
local.write_utf8_v2(scope, &mut buffer, WriteFlags::empty(), None);
buffer
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/op_whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const whitelist = {
"op_leak_tracing_enable": "Harmless",
"op_add": "Harmless",
"op_add_async": "Harmless",
"op_get_ext_import_meta_proto": "Harmless",

"op_close": "ResourceTable; Requires rust-side additions to be breaking",
"op_try_close": "ResourceTable; Requires rust-side additions to be breaking",
Expand Down Expand Up @@ -318,4 +319,4 @@ export const whitelist = {
"op_webstorage_remove": "deno_webstorage: exempt",
"op_webstorage_clear": "deno_webstorage: exempt",
"op_webstorage_iterate_keys": "deno_webstorage: exempt",
}
}
Loading