From 1c94adc3acd2133659b1cefa8327f654842890c4 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Fri, 7 Aug 2020 20:28:50 -0500 Subject: Update changelog for v0.11.0 --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b288a1..77e1a55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 As long as the extras (`yaml` and `toml`) are installed, those file types can also be used. +- `ConfigFile` can now be indexed into using an array notation to get, set, and delete keys. + +- `path` property to `ConfigFile` + +- `original_path` property to `ConfigFile` + +- `wild` optional argument to `has` on `ConfigFile` to check if the file has an + occurrence of the key anywhere in the file. + +### Removed + +- `BaseParser` from the public API. + +- `parser` optional argument from the `ConfigFile` constructor. + ### Changed - `path` on the `ConfigFile` is now a property that can only be retrieved. `contents` is now private @@ -21,6 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `restore_original` in `ConfigFile` now raises a `FileNotFoundError` instead of an `OSError` if the original file path does not exist. +- `restore_original`'s optional argument is now called `original_path` rather than `original_file_path`. + ### Fixed - `default` in `ConfigFile`'s `get` method can now be `None`. Previously, it was defaulted to the -- cgit v1.2.3