Releases: nextcloud-libraries/nextcloud-paths
Releases · nextcloud-libraries/nextcloud-paths
v3.0.0
3.0.0 - 2025-12-16
Breaking changes
- This package now does only provide an ES module, the CJS entry point is removed.
- The behavior of
basenameanddirnamewas fixed to behave similar
to the methods from the Node.jspathsmodule and the PHP methods.
This mainly affects special cases:- trailing slash on
basenameis ignored
basename('subdir/') - "" + "subdir"dirnamealways respects the root path:
dirname('/') - "" + "/"dirname('') - "" + "."dirname('/file') - "" + "/"dirname('file') - "" + "." - trailing slash on
Added
- feat(basename): add support for removing an extension (#843)
Fixed
- fix!: make
dirnameandbasenamebehave like PHP and Node (#839)
Changed
- chore!: drop commonJs entry points
- chore!: remove deprecated
joinPathsin favor ofjoin - test: add unit tests for
encodePath
v2.4.0
v2.3.0
v2.2.2
v2.2.1
v2.2.0
2.2.0 - 2024-07-17
Fixed
- fix: Adjust package.json to make
build:docwork again and fix incorrect URL - fix: Add example of
joinPathsto README, remove non existing travis
Changed
- Dependency updates
- Update npm and node engines versions to current LTS
- chore: Migrate to use Vite - drop Babel and Jest
- ci: Update workflows from organization