Releases: aphp/confit
Releases · aphp/confit
v0.7.4
Changelog
- Allow larger than 4096 bytes config files
- Escape tabs and newline when serializing to a config file
- Fix an infinite loop that occured when resolving a reference to a field with a null value
Pull Requests
- Fix/issue 26 : YAML Parsing for Large Config Files by @LucasDedieu in #28
- Fix: escape tabs and newline when serializing to a config file by @percevalw in #29
- Support reference to fields with null values by @percevalw in #30
- chore: bump version to 0.7.4 by @percevalw in #31
New Contributors
- @LucasDedieu made their first contribution in #28
Full Changelog: v0.7.3...v0.7.4
v0.7.3
Changelog
- Support interpolated seed in the config file (as a reminder, the seed is treated specifically by confit to initialize random generators before any object is resolved)
- Support if/else expressions in interpolation, and only resolve the relevant branch
Pull Requests
- Better interpolation by @percevalw in #25
- Bump version to 0.7.3 by @percevalw in #27
Full Changelog: v0.7.2...v0.7.3
v0.7.2
Changelog
- Seed the program BEFORE the config file is resolved and components have been instantiated, to ensure reproducibility.
Pull Request
- Seeded CLI by @percevalw in #24
Full Changelog: v0.7.1...v0.7.2
v0.7.1
Changelog
- Force utf-8 encoding when writing a config file (ini or yaml)
Pull Requests
- Fix encoding by @percevalw in #22
- chore: bump version to 0.7.1 by @percevalw in #23
Full Changelog: v0.7.0...v0.7.1
v0.7.0
Changelog
Changed
- Aborting a script will now show the traceback
Fixed
- Confit should no longer cause pydantic v1 deprecation warnings
Pull Requests
- v0.7.0 by @percevalw in #21
Full Changelog: v0.6.0...v0.7.0
v0.6.0
Changelog
Fixed
- Support IPython autoreload on confit wrapped functions
- Support using config files with scripts without a dedicated section header
- Disable configparser interpolation (% symbol)
- Better support for escaped strings in config files
- Various registry-related fixes
Added
- Non-relevant fields (outside the script dedicated section) are no longer instantiated when running a script with a config file
- We now support loading and serializing configs in yaml syntax (
Confit.from_yaml_str
,Confit.to_yaml_str
,Confit.from_disk("___.yaml")
andConfit.to_disk("___.yaml")
)
Pull Requests
- Improvements by @percevalw in #19
- feat: support yaml syntax by @percevalw in #20
Full Changelog: v0.5.6...v0.6.0
v0.5.6
No change from v0.5.5.
Package is now distributed as source and wheel.
Full Changelog: v0.5.5...v0.5.6
v0.5.5
Changelog
Added
- Support fixing the path of validation errors raised inside a "validate" function (see the
AsList
meta type in the tests)
Pull Requests
- Support fixing path of nested validation errors inside a method by @percevalw in #16
Full Changelog: v0.5.4...v0.5.5
v0.5.4
Changelog
Fixed
- We now forward function signature when accessing a callable via a deprecated registry name.
This is useful whenregistry.get("deprecated-name")
is inspected.
Pull Requests
- Forward deprecated fn signature by @percevalw in #15
Full Changelog: v0.5.3...v0.5.4
v0.5.3
Changelog
Changed
- We now raise an error if a value in the config cannot be deserialized as a JSON object but contains characters that hint at a JSON object (e.g. quotes, brackets, etc.). This changes the old behavior where we would silently ignore the value and keep the string as is.
Fixed
- Allow complex interpolations like
${[*section."key.with.dot", "baz"]}
Pull Requests
- v0.5.3 by @percevalw in #14
Full Changelog: v0.5.2...v0.5.3