Releases: sveltia/sveltia-cms
Releases · sveltia/sveltia-cms
v0.52.0
- The
date
transformation now supports the time zone argument. The only available value isutc
, 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
- Bug fixes and improvements.
Full Changelog: v0.51.0...v0.51.1
v0.51.0
- Added new data output options:
- JSON indent style and size
- YAML indent size
- This effectively solves decaporg/decap-cms#5870.
- 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 toquote: double
for the newyaml
option.
- The
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 therequired
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 expectundefined
. - This solves #241 and effectively solves decaporg/decap-cms#995, decaporg/decap-cms#2017, decaporg/decap-cms#7120 and decaporg/decap-cms#7186.
- Sveltia CMS always saves proper values, such as an empty string, an empty array or
- Improved the Number widget:
- If the
value_type
option isint
(default) orfloat
, therequired
option isfalse
, and the value is not entered, the field will now be saved asnull
(orundefined
if theomit_empty_optional_fields
option istrue
) instead of an empty string. Ifvalue_type
is something else, the data type remains string. - This effectively solves decaporg/decap-cms#2007 and decaporg/decap-cms#2848.
- If the
Full Changelog: v0.50.1...v0.51.0
v0.50.1
- Bug fixes and improvements.
Full Changelog: v0.50.0...v0.50.1
v0.50.0
- 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 writerequired: [en]
. An empty array is equivalent torequired: false
.
Full Changelog: v0.49.9...v0.50.0
v0.49.9
- Bug fixes and improvements.
Full Changelog: v0.49.8...v0.49.9
v0.49.8
- Bug fixes and improvements.
Full Changelog: v0.49.7...v0.49.8
v0.49.7
- Bug fixes and improvements.
Full Changelog: v0.49.6...v0.49.7
v0.49.6
- 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
- Bug fixes and improvements.
Full Changelog: v0.49.4...v0.49.5