Skip to content

Releases: sveltia/sveltia-cms

v0.52.0

30 Dec 19:36
9dd4277
Compare
Choose a tag to compare
  • The date transformation now supports the time zone argument. The only available value is utc, which converts a date to UTC. This is useful if the specified DateTime field is local, but you want to force UTC in the entry slug, e.g. {{date | date('YYYYMMDD-HHmm', 'utc')}}. This solves #278 (comment).
  • Bug fixes and improvements.

Full Changelog: v0.51.1...v0.52.0

v0.51.1

30 Dec 07:11
b055b77
Compare
Choose a tag to compare
  • Bug fixes and improvements.

Full Changelog: v0.51.0...v0.51.1

v0.51.0

30 Dec 03:38
ef92d9f
Compare
Choose a tag to compare
  • 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

v0.50.1

28 Dec 20:26
551174d
Compare
Choose a tag to compare
  • Bug fixes and improvements.

Full Changelog: v0.50.0...v0.50.1

v0.50.0

28 Dec 07:58
f94dc70
Compare
Choose a tag to compare
  • The new KeyValue (Dictionary) widget allows users to add arbitrary key-value string pairs to a field. The implementation is compatible with Static CMS, a now-defunct community fork of Netlify CMS. This solves #200 and effectively solves decaporg/decap-cms#5489.
  • The required field option now accepts an array of locale codes in addition to a boolean, making the field required for a subset of locales when i18n support is enabled. For example, if only English is required, you could write required: [en]. An empty array is equivalent to required: false.

Full Changelog: v0.49.9...v0.50.0

v0.49.9

27 Dec 14:02
ed2f832
Compare
Choose a tag to compare
  • Bug fixes and improvements.

Full Changelog: v0.49.8...v0.49.9

v0.49.8

24 Dec 18:26
92ae033
Compare
Choose a tag to compare
  • Bug fixes and improvements.

Full Changelog: v0.49.7...v0.49.8

v0.49.7

24 Dec 03:03
abb0005
Compare
Choose a tag to compare
  • Bug fixes and improvements.

Full Changelog: v0.49.6...v0.49.7

v0.49.6

24 Dec 02:39
6871908
Compare
Choose a tag to compare
  • Code blocks in the Markdown editor are now properly formatted and highlighted, although the code-block component with a language switcher is not yet supported.
  • Bug fixes and improvements.

Full Changelog: v0.49.5...v0.49.6

v0.49.5

20 Dec 22:01
1a883bf
Compare
Choose a tag to compare
  • Bug fixes and improvements.

Full Changelog: v0.49.4...v0.49.5