Skip to content
Closed
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [11.8.3](https://github.com/oxc-project/oxc-resolver/compare/v11.8.2...v11.8.3) - 2025-09-20

### <!-- 2 -->🚜 Refactor

- split src/cache.rs into logical modules (by @Boshen)

### Contributors

* @Boshen
* @renovate[bot]

## [11.8.2](https://github.com/oxc-project/oxc-resolver/compare/v11.8.1...v11.8.2) - 2025-09-18

### <!-- 4 -->⚡ Performance
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ rust-version = "1.85.0"
description = "ESM / CJS module resolution"

[workspace.dependencies]
oxc_resolver = { version = "11.8.2", path = "." }
oxc_resolver = { version = "11.8.3", path = "." }

[package]
name = "oxc_resolver"
version = "11.8.2"
version = "11.8.3"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion napi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxc_resolver_napi"
version = "11.8.2"
version = "11.8.3"
authors.workspace = true
categories.workspace = true
edition.workspace = true
Expand Down
31 changes: 31 additions & 0 deletions src/cache/borrowed_path.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
use std::{
hash::{Hash, Hasher},
path::Path,
};

use papaya::Equivalent;

use super::cached_path::CachedPath;

pub struct BorrowedCachedPath<'a> {
pub hash: u64,
pub path: &'a Path,
}

impl Equivalent<CachedPath> for BorrowedCachedPath<'_> {
fn equivalent(&self, other: &CachedPath) -> bool {
self.path.as_os_str() == other.path.as_os_str()
}
}

impl Hash for BorrowedCachedPath<'_> {
fn hash<H: Hasher>(&self, state: &mut H) {
self.hash.hash(state);
}
}

impl PartialEq for BorrowedCachedPath<'_> {
fn eq(&self, other: &Self) -> bool {
self.path.as_os_str() == other.path.as_os_str()
}
}
Loading
Loading