Skip to content

v0.51.0

Compare
Choose a tag to compare
@kyoshino kyoshino released this 30 Dec 03:38
· 49 commits to main since this release
ef92d9f
  • Added new data output options:
    • JSON indent style and size
    • YAML indent size
    • YAML string value quote
      • The yaml_quote collection option added in v0.5.10 is now deprecated and will be removed in v1.0.0. yaml_quote: true is equivalent to quote: double for the new yaml option.
    • omit_empty_optional_fields
      • Sveltia CMS always saves proper values, such as an empty string, an empty array or null, instead of nothing (undefined), regardless of the required field option. The new option allows developers to change the behaviour so that all empty optional fields are omitted from the output. This is useful if you have data type validations that expect undefined.
      • This solves #241 and effectively solves decaporg/decap-cms#995, decaporg/decap-cms#2017, decaporg/decap-cms#7120 and decaporg/decap-cms#7186.
  • Improved the Number widget:
    • If the value_type option is int (default) or float, the required option is false, and the value is not entered, the field will now be saved as null (or undefined if the omit_empty_optional_fields option is true) instead of an empty string. If value_type is something else, the data type remains string.
    • This effectively solves decaporg/decap-cms#2007 and decaporg/decap-cms#2848.

Full Changelog: v0.50.1...v0.51.0