@sveltia/cms 0.45.2 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -122,7 +122,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
122
122
  ### Better UX
123
123
 
124
124
  - Created and maintained by an [experienced UX engineer](https://github.com/kyoshino) who loves code, design and marketing. You can expect constant improvements to the user experience (UX) and developer experience (DX) across the platform.
125
- - The maintainer tries to be as responsive as possible. Reported bugs are usually fixed within 24 hours.
125
+ - The maintainer tries to be as responsive as possible, and while there are no guarantees, reported bugs are usually fixed within 24 hours.
126
126
  - Offers a modern, intuitive user interface, including an immersive dark mode[^2], inspired in part by the Netlify CMS v3 prototype[^1].
127
127
  - We develop [our own UI library](https://github.com/sveltia/sveltia-ui) to ensure optimal usability without compromising accessibility.
128
128
  - Comes with touch device support, such as larger buttons for easier tapping. While the UI is not yet optimized for small screens, it should work well with large tablets like iPad Pro or Pixel Tablet. Mobile support and other optimizations such as swipe navigation are planned shortly after the 1.0 release.
@@ -252,6 +252,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
252
252
  - Hugo’s special `_index.md` files are ignored in folder collections unless the `path` option is configured to end with `_index` and the `extension` is `md`[^120]. You can still manage these files as part of a file collection if necessary.
253
253
  - If there was an error while parsing an entry file, such as duplicate front matter keys, it won’t show up as a blank entry, and a clear error message will be displayed in the browser console[^121].
254
254
  - Sorting entries by a DateTime field works as expected[^110].
255
+ - The entry list supports basic Markdown formatting syntax in the titles: bold, italic and code are allowed. HTML character references (entities) are also parsed properly[^69].
255
256
  - If you update an entry field that appears in the collection’s `summary`, such as `title`, the entry list displays an updated summary after you save the entry.
256
257
  - If entries don’t have an Image field for thumbnails, the entry list will only be displayed in list view, because it doesn’t make sense to show grid view[^143].
257
258
  - Assets stored in a [collection media folder](#using-a-custom-media-folder-for-a-collection) can be displayed next to the entries.
@@ -278,9 +279,11 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
278
279
  ### Better data output
279
280
 
280
281
  - Keys in generated JSON/TOML/YAML content are always sorted by the order of configured fields, making Git commits clean and consistent[^86].
281
- - For data consistency, Boolean, List (see below) and other fields are always saved as a proper value, such as an empty string or an empty array, rather than nothing, even if it’s optional or empty[^45][^46][^44].
282
+ - Netlify/Decap CMS often, but not always, omits optional and empty fields from the output. Sveltia CMS aims at complete and consistent data output — it always saves proper values, such as an empty string or an empty array, instead of nothing (`undefined`), regardless of the `required` option[^45][^46][^44].
283
+ - In other words, in Sveltia CMS, `required: false` makes data input optional, but doesn’t make data output optional.
284
+ - Note: If you have any data validation (type definition) that expects `undefined` values, you may need to revise it or the output from Sveitia CMS may break it.
285
+ - JSON/TOML/YAML data is saved with a new line at the end of the file to prevent unnecessary changes being made to the file[^11].
282
286
  - Leading and trailing spaces in text-type field values are automatically removed when you save an entry[^37].
283
- - JSON/TOML/YAML data is saved with a new line at the end of the file to prevent unnecessary changes being made to the file[^11][^69].
284
287
  - String values in YAML files can be quoted with the new `yaml_quote: true` option for a collection, mainly for framework compatibility[^9].
285
288
  - YAML string folding (maximum line width) is disabled, mainly for framework compatibility[^119].
286
289
  - DateTime field values in ISO 8601 format are stored in native date/time format instead of quoted strings when the data output is TOML[^147].
@@ -297,9 +300,9 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
297
300
  - A DateTime field doesn’t trigger a change in the content draft status when you’ve just started editing a new entry[^90].
298
301
  - Hidden
299
302
  - The `default` value supports the following template tags:
300
- - `{{locale}}`: Replaced by the current locale code[^101].
301
- - `{{datetime}}` Replaced by the current date/time in [ISO 8601 format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format)[^102].
302
- - `{{uuid}}`, `{{uuid_short}}` and `{{uuid_shorter}}`: Replaced by a random UUID or its shorter version, just like the [slug template tags](#using-a-random-id-for-an-entry-slug)[^12].
303
+ - `{{locale}}`: The current locale code[^101].
304
+ - `{{datetime}}`: The current date/time in [ISO 8601 format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format)[^102].
305
+ - `{{uuid}}`, `{{uuid_short}}` and `{{uuid_shorter}}`: A random UUID or its shorter version, just like the [slug template tags](#using-a-random-id-for-an-entry-slug)[^12].
303
306
  - The `default` value is saved when you create a file collection item, not just a folder collection item[^78].
304
307
  - List
305
308
  - It’s possible to [edit data files with a top-level list](#editing-data-files-with-a-top-level-list) using the new `root` option[^148].
@@ -392,6 +395,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
392
395
 
393
396
  - The application renders within the dimensions of a [custom mount element](https://decapcms.org/docs/custom-mounting/), if exists[^109].
394
397
  - A custom logo defined with the `logo_url` property is displayed on the global application header and the browser tab (favicon)[^134]. A smaller logo is also correctly positioned on the authentication page[^135].
398
+ - `CMS.registerCustomFormat()` supports async parser/formatter functions.
395
399
 
396
400
  ### Better localization
397
401
 
@@ -968,7 +972,7 @@ This software is provided “as is” without any express or implied warranty. W
968
972
 
969
973
  [^10]: Netlify/Decap CMS [#341](https://github.com/decaporg/decap-cms/issues/341), [#1167](https://github.com/decaporg/decap-cms/issues/1167)
970
974
 
971
- [^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382)
975
+ [^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#6994](https://github.com/decaporg/decap-cms/issues/6994)
972
976
 
973
977
  [^12]: Netlify/Decap CMS [#1975](https://github.com/decaporg/decap-cms/issues/1975), [#3712](https://github.com/decaporg/decap-cms/issues/3712)
974
978
 
@@ -1084,7 +1088,7 @@ This software is provided “as is” without any express or implied warranty. W
1084
1088
 
1085
1089
  [^68]: Netlify/Decap CMS [#6978](https://github.com/decaporg/decap-cms/issues/6978)
1086
1090
 
1087
- [^69]: Netlify/Decap CMS [#6994](https://github.com/decaporg/decap-cms/issues/6994)
1091
+ [^69]: Netlify/Decap CMS [#4350](https://github.com/decaporg/decap-cms/issues/4350)
1088
1092
 
1089
1093
  [^70]: Netlify/Decap CMS [#6482](https://github.com/decaporg/decap-cms/issues/6482)
1090
1094