v7.0.0b0
Pre-release
Pre-release
π¨ THIS VERSION COULD INCLUDE BREAKING CHANGES π¨
π IMPROVEMENTS
- Instead of always returning a string, this version now returns the native type. This means that a numeric value will already be a number (no need to a
floatconversion), a datetime value will be a datetime object, etc. So this means that:as_datetimenot longer needs to be applied in case the value is a datetime object (like formode='startormode='end')- the
boolfunction or filter no longer needs to be applied in casemode='is_now'is used - a
floatorintconversion is no longer needed for numeric output, like formode='min'ormode='max' from_jsonis no longer needed to convert a json string to a list or dictionary, when egmode='list'ormode='all'is used
especially this last one could be breaking, for the others is doesn't matter if the input is already the desired native type, butfrom_jsonwill error if the input is already a list or dictionary.
time_format='isoformat'can be used to let the macro return isoformat datetime strings instead of datetime objects. This is added becasue the template parser returns datetime objects in the Python datetime format if they are part of a dictionary.
You can find the updated documentation here
What's Changed
Full Changelog: v6.0.2...v7.0.0b0