Pathe (unjs/pathe) is a drop-in replacement for Node.js’s built-in path module that normalizes paths to use forward slashes consistently across operating systems, including environments like browsers. It provides identical exports to Node’s path module and adds extra path-related utilities via a pathe/utils subpath.
Project status
- Actively maintained: Upstream shows a very recent push on 2026-06-07, and the project has shipped multiple updates in early 2025.
- Update cadence: Documented updates clustered in early 2025, v2.0.1 (2025-01-09), v2.0.2 (2025-01-17), v2.0.3 (2025-02-11), after which no further versioned update is listed in the provided history.
AI summary generated Today
Recent updates
v2.0.3
2/11/2025v2.0.3 includes a small build-related fix and a set of CI and dependency/tooling updates. Code changes also modify how the zeptomatch dependency is re-exported during the build, which may affect consumer import paths.
Breakingv2.0.2
1/17/2025v2.0.2 contains a small set of path behavior fixes, focused on allowing `format` to be called with partial argument objects, and improving `extname` handling for inputs ending with a dot. The release also tightens TypeScript checking. Code changes additionally include some typing/export refactors and an extra runtime safety fix not mentioned in the release notes.
v2.0.1
1/9/2025v2.0.1 primarily addresses an issue around mixed posix and win32 namespaces. The fix is implemented by changing how `posix` and `win32` exports are constructed, introducing namespace-specific delimiter behavior and support for nested namespace access (for example, `posix.win32.posix`).
Breakingv2.0.0
1/3/2025v2.0.0 expands pathe's Node.js path compatibility by adding new exports (posix, win32, default, and new utils) and updating Windows/POSIX normalization behaviors. The release notes document several breaking behavioral fixes (delimiter, parse root handling, and UNC/join behavior), but the actual diff also shows additional implementation changes that could affect edge-case behavior and module import shapes.
BreakingFeaturesv1.1.2
1/10/2024v1.1.2 focuses on bug fixes related to filesystem path handling, especially for edge cases on Windows and around relative path calculations. It improves alias and relative path resolution by normalizing inputs such as root paths, trailing slashes, and differing drive letter casing.