Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Dec 15, 2025


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

@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (aca865f) to head (5cd6673).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #846   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           45        45           
  Branches        10        10           
=========================================
  Hits            45        45           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux requested review from Antreesy and artonge December 16, 2025 12:14
@susnux susnux marked this pull request as ready for review December 16, 2025 12:14
@susnux susnux merged commit a57d821 into main Dec 16, 2025
9 checks passed
@susnux susnux deleted the chore/v3 branch December 16, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants