unstale

pypi / platformdirs

platformdirs

What changed in platformdirs 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

2 breaking3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

platformdirs 45 changes

Breaking changes 2

  • Raises RuntimeError when the home directory cannot be resolved instead of returning paths rooted at a literal ~.

    4.13.4release notes

  • Raises RuntimeError when the home directory cannot be resolved instead of returning a path rooted at a literal ~.

    4.13.4release notes

Fixes and other changes 3

  • Android app directories are located from sys.path only when it contains a complete files path segment.

    4.13.4release notes

  • Keeps user directory strings, paths, and iterators consistent when Unix root enables use_site_for_root, and restores root redirection when the context exits.

    4.13.4release notes

  • Normalizes user_fonts_dir when XDG_DATA_HOME ends with a separator.

    4.13.2release notes