Skip to content

Releases: emann/flex-config

v3.0.0 - Upgrade to pydantic v2

26 Jan 15:17
Compare
Choose a tag to compare

Hotfix: Update pyyaml to resolve Cython build errors

20 Jul 15:42
Compare
Choose a tag to compare
v.2.2.1

hotfix: Update pyyaml to 6.0.1

v.2.1.0 - Support for decoding JSON parameter values

10 Jan 14:45
a17ff08
Compare
Choose a tag to compare

What's Changed

  • Fixed some highlighting + a misplaced page by @emann in #13
  • chore(release): Release v.2.1.0 by @sweetb in #17

New Contributors

Full Changelog: v.2.0.0...v.2.1.0

2.0.0 - 2020-12-23

23 Dec 18:52
Compare
Choose a tag to compare

Breaking Changes

  • Complete rework of how FlexConfig works. Pydantic schemas are now used to define
    the shape and data in a config, but loading values from sources works the same way. Config values are now retrieved
    via dot notation (my_config.section.value) instead of the "slash" notation in 1.x (my_config["section/value"]).
    See documentation for more info.

Additions:

  • Thanks to pydantic's built in data validation/conversion, the structure of the config and the types of it values are
    now strictly enforced so you can be sure that if your program starts without any validation errors the config is
    correctly built and all data types match what they are expected to be.
  • Support for using a callable that takes in the compiled dictionary thus far and returns a ConfigSource as a source when
    constructing a config.
  • Added support for TOML files and added explicit JSON support separate from YAMLSource that uses the builtin JSON
    module instead of relying on YAML's support for JSON.
  • Config files that don't contain a top level dict (i.e. the top level structure is a list) will raise an error when being
    loaded.

1.0.0

09 May 16:28
Compare
Choose a tag to compare

Initial public release! 🎉