Skip to content

Releases: nextcloud-libraries/nextcloud-paths

v3.0.0

16 Dec 12:50
a57d821

Choose a tag to compare

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 basename and dirname was fixed to behave similar
    to the methods from the Node.js paths module and the PHP methods.
    This mainly affects special cases:
    • trailing slash on basename is ignored
    basename('subdir/')
    - ""
    + "subdir"
    • dirname always respects the root path:
    dirname('/')
    - ""
    + "/"
    dirname('')
    - ""
    + "."
    dirname('/file')
    - ""
    + "/"
    dirname('file')
    - ""
    + "."

Added

  • feat(basename): add support for removing an extension (#843)

Fixed

  • fix!: make dirname and basename behave like PHP and Node (#839)

Changed

  • chore!: drop commonJs entry points
  • chore!: remove deprecated joinPaths in favor of join
  • test: add unit tests for encodePath

v2.4.0

13 Dec 00:44
1ef323a

Choose a tag to compare

2.4.0 - 2025-12-13

Added

  • feat: add extname method

Changed

  • chore: add ESlint so we can enforce consistent code style

v2.3.0

12 Nov 20:24
b339976

Choose a tag to compare

2.3.0 - 2025-11-12

Added

  • feat: add join method that deprecates joinPaths

v2.2.2

06 Nov 21:37
34b866f

Choose a tag to compare

2.2.2 - 2025-11-07

Changed

  • Dependency updates
  • chore: update Node and NPM versions.
    This package now supports to be used with Node 22 and Node 24.
  • ci: update workflows from organization

v2.2.1

25 Jul 11:37
a4a7d45

Choose a tag to compare

2.2.1 - 2024-07-25

Fixed

  • fix: Correctly setup Typescript root to emit declarations

v2.2.0

17 Jul 14:02
a21c1bb

Choose a tag to compare

2.2.0 - 2024-07-17

Fixed

  • fix: Adjust package.json to make build:doc work again and fix incorrect URL
  • fix: Add example of joinPaths to 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