Skip to content

Commit

Permalink
chore(build): deno_kv - remove dep on deno_node (denoland#25158)
Browse files Browse the repository at this point in the history
This will help with build perf a bit.
  • Loading branch information
dsherret authored Aug 22, 2024
1 parent 716ae4d commit 641b52b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion ext/kv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ext/kv/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 641b52b

Please sign in to comment.