From 641b52bac740528087e171064c58e3ea40179859 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 22 Aug 2024 14:45:20 -0400 Subject: chore(build): deno_kv - remove dep on deno_node (#25158) This will help with build perf a bit. --- ext/kv/Cargo.toml | 1 - ext/kv/sqlite.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/kv/Cargo.toml b/ext/kv/Cargo.toml index 9114c929b..7bd46ca71 100644 --- a/ext/kv/Cargo.toml +++ b/ext/kv/Cargo.toml @@ -21,7 +21,6 @@ bytes.workspace = true chrono = { workspace = true, features = ["now"] } deno_core.workspace = true deno_fetch.workspace = true -deno_node.workspace = true deno_permissions.workspace = true deno_tls.workspace = true denokv_proto.workspace = true diff --git a/ext/kv/sqlite.rs b/ext/kv/sqlite.rs index 37f5aa685..b31fd1736 100644 --- a/ext/kv/sqlite.rs +++ b/ext/kv/sqlite.rs @@ -15,9 +15,9 @@ use std::sync::OnceLock; use async_trait::async_trait; use deno_core::error::type_error; use deno_core::error::AnyError; +use deno_core::normalize_path; use deno_core::unsync::spawn_blocking; use deno_core::OpState; -use deno_node::PathClean; pub use denokv_sqlite::SqliteBackendError; use denokv_sqlite::SqliteConfig; use denokv_sqlite::SqliteNotifier; @@ -176,7 +176,7 @@ impl DatabaseHandler for SqliteDbHandler

{ /// Same as Path::canonicalize, but also handles non-existing paths. fn canonicalize_path(path: &Path) -> Result { - let path = path.to_path_buf().clean(); + let path = normalize_path(path); let mut path = path; let mut names_stack = Vec::new(); loop { -- cgit v1.2.3