# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!--
# Guiding Principles

* Changelogs are for _humans_, not machines.
* There should be an entry for every single version.
* The same types of changes should be grouped.
* Versions and sections should be linkable.
* The latest version comes first.
* The release date of each version is displayed.
* Mention whether you follow Semantic Versioning.

# Types of changes

* `Added` for new features.
* `Changed` for changes in existing functionality.
* `Deprecated` for soon-to-be removed features.
* `Removed` for now removed features.
* `Fixed` for any bug fixes.
* `Security` in case of vulnerabilities.
 -->

<!-- next-header -->
## [Unreleased] - ReleaseDate

## [2.0.0] - 2020-10-22
### Breaking changed
* Behavior of `config_dir` on macOS of `ProjectDirs` and `BaseDirs` is changed.
  According to [Apple guideline][appple-configdir], configuration files should be placed
  in subdirectory of `Library/Application Support`. The old behavior of `config_dir`
  returns `Library/Preferences`, which is incorrect. As users should use `CFPreferences`
  API to get and set preference values for their app instead.

[appple-configdir]: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1

## [1.0.3] - 2020-10-21
### Fixed
* Fix compilation bug on wasm

## [1.0.2] - 2020-10-13
### Changed
* Bump cfg-if version to v1

## [1.0.1]
### Fixed
* Relax pinning `cfg-if` at `0.1.9`. Previously we inherited that from upstream repository when forking.
  The original author wanted to keep minimum Rust version at 1.13 which we don't anymore.

## [1.0.0] - 2020-05-17

This is the re-publish of `directories` crate as is.

<!-- next-url -->
[Unreleased]: https://github.com/xdg-rs/dirs/compare/directories-v2.0.0...HEAD
[2.0.0]: https://github.com/xdg-rs/dirs/compare/directories-v1.0.3...directories-v2.0.0
[1.0.3]: https://github.com/xdg-rs/dirs/compare/directories-v1.0.2...directories-v1.0.3
[1.0.2]: https://github.com/xdg-rs/dirs/compare/directories-v1.0.1...directories-v1.0.2
[1.0.1]: https://github.com/xdg-rs/dirs/compare/directories-v1.0.0...directories-v1.0.1
[1.0.0]: https://github.com/xdg-rs/dirs/releases/tag/directories-v1.0.0
