chore(build): deno_kv - remove dep on deno_node (#25158)

This will help with build perf a bit.
This commit is contained in:
David Sherret 2024-08-22 14:45:20 -04:00 committed by Luca Casonato
parent de11ff8c55
commit 58a4cde39d
No known key found for this signature in database
GPG Key ID: 01A83EB62563811F
3 changed files with 2 additions and 4 deletions

1
Cargo.lock generated
View File

@ -1684,7 +1684,6 @@ dependencies = [
"chrono",
"deno_core",
"deno_fetch",
"deno_node",
"deno_permissions",
"deno_tls",
"denokv_proto",

View File

@ -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

View File

@ -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 {