Skip to content
Merged
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

All notable changes to this project will be documented in this file.

## 3.1.0 - 2026-02-18
### Added
- feat(normalize): add `normalize` method compatible with the version from `node:path` [\#861](https://github.com/nextcloud-libraries/nextcloud-paths/pull/861)

### Changed
- Updated development dependencies

## 3.0.0 - 2025-12-16
### Breaking changes
- This package now does only provide an ES module, the CJS entry point is removed.
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm i -S @nextcloud/paths
## Usage

```js
import { basename, dirname, extname, encodePath, isSamePath, join } from '@nextcloud/paths'
import { basename, dirname, extname, encodePath, isSamePath, join, normalize } from '@nextcloud/paths'

basename('/my/file.txt')
// -> 'file.txt'
Expand All @@ -41,5 +41,8 @@ isSamePath('/my/file.txt', 'my/file.txt')

join('/my', 'folder', 'file.txt')
// -> '/my/folder/file.txt'

normalize('a//b//../b')
// -> 'a/b'
```

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextcloud/paths",
"version": "3.0.0",
"version": "3.1.0",
"description": "Helper functions for working with paths in Nextcloud apps",
"keywords": [
"nextcloud",
Expand Down