Sourced from platformdirs's releases.
4.10.1
What's Changed
- 🐛 fix(windows): stop leaking memory on repeated folder lookups by
@gaborbernatin tox-dev/platformdirs#507- 🚀 ci(release): towncrier changelog + publish on tag push by
@gaborbernatin tox-dev/platformdirs#509- 📝 docs(changelog): rebuild against release history by
@gaborbernatin tox-dev/platformdirs#510Full Changelog: https://github.com/tox-dev/platformdirs/compare/4.10.0...4.10.1
Sourced from platformdirs's changelog.
########### Changelog ###########
.. towncrier-draft-entries:: Unreleased
.. towncrier release notes start
4.10.1 (2026-07-18)
- Stop leaking memory on repeated Windows folder lookups.
get_win_folder_via_ctypesdefined a freshctypesstructure on every call, and each one registered a pointer type that was never released; the resolver is now built once and reused. :pr:507
4.10.0 (2026-05-28)
- Add :func:
~platformdirs.user_publicshare_dir, :func:~platformdirs.user_templates_dir, :func:~platformdirs.user_fonts_dir, and :func:~platformdirs.user_preference_dir:pr:491- Add :func:
~platformdirs.user_projects_dirbacked by$XDG_PROJECTS_DIR:pr:490- Return only the first path from :func:
~platformdirs.site_config_pathon macOS whenmultipathis set :pr:488- by :user:lphuc2250gma
4.9.6 (2026-04-09)
- Fix macOS XDG variables leaking across :func:
~platformdirs.user_config_dir, :func:~platformdirs.user_data_dir, and :func:~platformdirs.user_state_dirwhen only some are set :pr:473- by :user:Goddesen- Avoid duplicate site directories in Unix :meth:
~platformdirs.PlatformDirs.iter_config_dirsand :meth:~platformdirs.PlatformDirs.iter_data_dirswhenuse_site_for_rootis active :pr:469- by :user:viccie30
4.9.4 (2026-03-05)
- Respect
XDG_CONFIG_HOMEwhen reading the user-dirs configuration :pr:453- by :user:bysiber- Create the directory in Android :func:
~platformdirs.user_log_dirand :func:~platformdirs.user_runtime_dirwhenensure_existsis set :pr:452- by :user:bysiber
4.9.2 (2026-02-16)
- No user-facing changes
... (truncated)
2e74013
Release 4.10.13076722
📝 docs(changelog): rebuild against release history (#510)42751ce
🚀 ci(release): towncrier changelog + publish on tag push (#509)d2e5756
fix(windows): stop leaking ctypes pointer types on repeated calls (#507)4f52c4f
build(deps): bump astral-sh/setup-uv from 8.3.1 to 8.3.2 in the all
group (#506)f68e56f
build(deps): bump astral-sh/setup-uv from 8.3.0 to 8.3.1 in the all
group (#504)806560b
build(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.0 in the all
group (#502)795aac4
[pre-commit.ci] pre-commit autoupdate (#503)99977a9
[pre-commit.ci] pre-commit autoupdate (#500)4bd7bb3
:moneybag: Surface GitHub Sponsors + thanks.dev