@sveltia/cms 0.19.5 → 0.19.6

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
@@ -48,12 +48,10 @@ We are working hard to create a **much better alternative to Netlify CMS** and D
48
48
  - A list of repository files is cached locally for faster startup and bandwidth savings.
49
49
  - Thumbnails of assets, including PDF files, are generated and cached for faster rendering of the Asset Library and other parts of the CMS[^39].
50
50
  - Using caching and lazy loading techniques to improve performance.
51
- - You can [disable automatic deployments](#disable-automatic-deployments) by default or on demand to save costs and resources associated with CI/CD and to publish multiple changes at once[^24].
52
51
 
53
52
  ### Better productivity
54
53
 
55
54
  - You can [work with a local Git repository](#work-with-a-local-git-repository) without running a proxy server on your machine, bypassing the 30 MB file size limit[^26].
56
- - The Git branch name is automatically set to the repository’s default branch (`main`, `master` or whatever) if not specified in the configuration file, preventing data loading errors due to a hardcoded fallback to `master`[^27].
57
55
  - Never miss out on the latest features and bug fixes by being notified when an update to the CMS is available[^31].
58
56
  - The Entry Editor closes automatically when an entry is saved.
59
57
  - You can delete multiple entries and assets at once.
@@ -77,6 +75,12 @@ We are working hard to create a **much better alternative to Netlify CMS** and D
77
75
  - We have documented how to [set up a Content Security Policy](#set-up-content-security-policy) for the CMS.
78
76
  - The `unsafe-eval` or `unsafe-inline` keywords are not needed in the `script-src` CSP directive[^33].
79
77
 
78
+ ### Better backend support
79
+
80
+ - Uses the GraphQL API where possible for better performance, as mentioned above. You don’t need to set the `use_graphql` option.
81
+ - The Git branch name is automatically set to the repository’s default branch (`main`, `master` or whatever) if not specified in the configuration file, preventing data loading errors due to a hardcoded fallback to `master`[^27].
82
+ - You can [disable automatic deployments](#disable-automatic-deployments) by default or on demand to save costs and resources associated with CI/CD and to publish multiple changes at once[^24].
83
+
80
84
  ### Better i18n support
81
85
 
82
86
  - It’s now easier to switch between locales while editing with just a click on a button instead of a dropdown list.
@@ -107,8 +111,13 @@ We are working hard to create a **much better alternative to Netlify CMS** and D
107
111
 
108
112
  ### Better widgets
109
113
 
114
+ - Boolean
115
+ - A required field with no default value is saved as `false` by default, without raising a validation error[^45].
116
+ - An optional field with no default value is saved as `false` by default, rather than nothing[^46].
110
117
  - List
111
- - Supports previewing variable types without having to register a preview template[^42].
118
+ - A required field with no subfield or value is marked as invalid[^43].
119
+ - An optional field with no subfield or value is saved as an empty array[^44].
120
+ - You can preview variable types without having to register a preview template[^42].
112
121
  - Object
113
122
  - Supports [variable types](https://decapcms.org/docs/variable-type-widgets/) just like the List widget. This allows you to have dependent fields in a collection[^30].
114
123
  - Optional Object fields (`required: false`) can be manually added or removed. If unadded or removed, the required subfields won’t trigger validation errors[^16].
@@ -394,14 +403,14 @@ img-src 'self' blob: data:;
394
403
  media-src blob:;
395
404
  frame-src blob:;
396
405
  script-src 'self' https://unpkg.com;
397
- connect-src 'self' blob: data:;
406
+ connect-src 'self' blob: data: https://unpkg.com;
398
407
  ```
399
408
 
400
409
  And combine the following policies depending on your Git backend and enabled integrations.
401
410
 
402
411
  - GitHub: (If you’re running GitHub Enterprise Server, you’ll also need to add the origin to these directives.)
403
412
  ```csp
404
- img-src https://*.githubusercontent.com
413
+ img-src https://*.githubusercontent.com;
405
414
  connect-src https://api.github.com https://www.githubstatus.com;
406
415
  ```
407
416
  - GitLab: (If you’re running a self-hosted instance, you’ll also need to add the origin to these directives.)
@@ -493,7 +502,7 @@ This software is provided “as is” without any express or implied warranty. W
493
502
  [^8]: Netlify/Decap CMS [#2579](https://github.com/decaporg/decap-cms/issues/2579)
494
503
  [^9]: Netlify/Decap CMS [#3505](https://github.com/decaporg/decap-cms/issues/3505)
495
504
  [^10]: Netlify/Decap CMS [#341](https://github.com/decaporg/decap-cms/issues/341), [#1167](https://github.com/decaporg/decap-cms/issues/1167)
496
- [^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#1424](https://github.com/decaporg/decap-cms/issues/1424), [#2370](https://github.com/decaporg/decap-cms/issues/2370), [#5569](https://github.com/decaporg/decap-cms/issues/5569), [#5596](https://github.com/decaporg/decap-cms/issues/5596), [#5752](https://github.com/decaporg/decap-cms/issues/5752), [#6994](https://github.com/decaporg/decap-cms/issues/6994) and more. We’ll be updating this list after reviewing their issue list.
505
+ [^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#2370](https://github.com/decaporg/decap-cms/issues/2370), [#5569](https://github.com/decaporg/decap-cms/issues/5569), [#5596](https://github.com/decaporg/decap-cms/issues/5596), [#5752](https://github.com/decaporg/decap-cms/issues/5752), [#6994](https://github.com/decaporg/decap-cms/issues/6994) and more. We’ll be updating this list after reviewing their issue list.
497
506
  [^12]: Netlify/Decap CMS [#1975](https://github.com/decaporg/decap-cms/issues/1975)
498
507
  [^13]: Netlify/Decap CMS [#5112](https://github.com/decaporg/decap-cms/issues/5112), [#5653](https://github.com/decaporg/decap-cms/issues/5653)
499
508
  [^14]: Netlify/Decap CMS [#4635](https://github.com/decaporg/decap-cms/issues/4635), [#4738](https://github.com/decaporg/decap-cms/issues/4738), [#5920](https://github.com/decaporg/decap-cms/issues/5920), [#6410](https://github.com/decaporg/decap-cms/issues/6410)
@@ -525,3 +534,7 @@ This software is provided “as is” without any express or implied warranty. W
525
534
  [^40]: Netlify/Decap CMS [#5630](https://github.com/decaporg/decap-cms/issues/5630)
526
535
  [^41]: Netlify/Decap CMS [#7011](https://github.com/decaporg/decap-cms/issues/7011)
527
536
  [^42]: Netlify/Decap CMS [#2307](https://github.com/decaporg/decap-cms/issues/2307)
537
+ [^43]: Netlify/Decap CMS [#5381](https://github.com/decaporg/decap-cms/issues/5381)
538
+ [^44]: Netlify/Decap CMS [#2613](https://github.com/decaporg/decap-cms/issues/2613)
539
+ [^45]: Netlify/Decap CMS [#1424](https://github.com/decaporg/decap-cms/issues/1424)
540
+ [^46]: Netlify/Decap CMS [#4726](https://github.com/decaporg/decap-cms/issues/4726)