Skip to content

Commit 57957b2

Browse files
authored
Merge pull request #862 from nextcloud-libraries/chore/prepare-3-1-0
chore: prepare v3.1.0
2 parents 9b58942 + a207d65 commit 57957b2

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

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

9+
## 3.1.0 - 2026-02-18
10+
### Added
11+
- feat(normalize): add `normalize` method compatible with the version from `node:path` [\#861](https://github.com/nextcloud-libraries/nextcloud-paths/pull/861)
12+
13+
### Changed
14+
- Updated development dependencies
15+
916
## 3.0.0 - 2025-12-16
1017
### Breaking changes
1118
- This package now does only provide an ES module, the CJS entry point is removed.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ npm i -S @nextcloud/paths
1919
## Usage
2020

2121
```js
22-
import { basename, dirname, extname, encodePath, isSamePath, join } from '@nextcloud/paths'
22+
import { basename, dirname, extname, encodePath, isSamePath, join, normalize } from '@nextcloud/paths'
2323

2424
basename('/my/file.txt')
2525
// -> 'file.txt'
@@ -41,5 +41,8 @@ isSamePath('/my/file.txt', 'my/file.txt')
4141

4242
join('/my', 'folder', 'file.txt')
4343
// -> '/my/folder/file.txt'
44+
45+
normalize('a//b//../b')
46+
// -> 'a/b'
4447
```
4548

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextcloud/paths",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "Helper functions for working with paths in Nextcloud apps",
55
"keywords": [
66
"nextcloud",

0 commit comments

Comments
 (0)