diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-22 14:45:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 14:45:20 -0400 |
commit | 641b52bac740528087e171064c58e3ea40179859 (patch) | |
tree | 4dfcb04756fb30e7960e922bec7428661e1928ae /ext/kv | |
parent | 716ae4d8cba23e0730a57c6f71db1f823f7d4f5b (diff) |
chore(build): deno_kv - remove dep on deno_node (#25158)
This will help with build perf a bit.
Diffstat (limited to 'ext/kv')
-rw-r--r-- | ext/kv/Cargo.toml | 1 | ||||
-rw-r--r-- | ext/kv/sqlite.rs | 4 |
2 files changed, 2 insertions, 3 deletions
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<P: SqliteDbHandlerPermissions> DatabaseHandler for SqliteDbHandler<P> { /// Same as Path::canonicalize, but also handles non-existing paths. fn canonicalize_path(path: &Path) -> Result<PathBuf, AnyError> { - let path = path.to_path_buf().clean(); + let path = normalize_path(path); let mut path = path; let mut names_stack = Vec::new(); loop { |