@sveltia/cms 0.61.2 → 0.62.1
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 +10 -9
- package/dist/sveltia-cms.js +159 -159
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +161 -161
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,8 +118,8 @@ While we fix reported bugs as quickly as possible, usually within 24 hours, our
|
|
|
118
118
|
- We even proactively adopt changes suggested in their [pull requests](https://github.com/decaporg/decap-cms/pulls) that may sit in the review queue for a long time
|
|
119
119
|
- Providing partial [compatibility with Static CMS](#compatibility-with-static-cms)
|
|
120
120
|
- Tackling as many [Netlify/Decap CMS issues](https://github.com/decaporg/decap-cms/issues) as possible
|
|
121
|
-
- So far, 175+ of them, or
|
|
122
|
-
- Target: 200 by GA; 300, or
|
|
121
|
+
- So far, 175+ of them, or 360+ including duplicates, have been effectively solved in Sveltia CMS
|
|
122
|
+
- Target: 200 by GA; 300, or 600 including duplicates, in the future (yes, you read that right)
|
|
123
123
|
- Issues include everything from feature requests to bug reports and [issues closed as stale](https://github.com/decaporg/decap-cms/issues?q=is%3Aissue+%22Closing+as+stale%22) or without an effective solution, as well as [discussions](https://github.com/decaporg/decap-cms/discussions)
|
|
124
124
|
- Most of the bugs, including annoying crashes, are already solved
|
|
125
125
|
- Many of their [top-voted features](https://github.com/decaporg/decap-cms/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc) are on our table or already implemented in Sveltia CMS
|
|
@@ -151,7 +151,7 @@ We hope Netlify/Decap CMS users will be pleased and surprised by the numerous im
|
|
|
151
151
|
### Better performance
|
|
152
152
|
|
|
153
153
|
- Built completely from scratch with [Svelte](https://svelte.dev/) instead of forking React-based Netlify/Decap CMS. The app starts fast and stays fast. The compiled code is vanilla JavaScript — you can use it with any framework or static site generator (SSG) that can load static data files during the build process.
|
|
154
|
-
- Small footprint: The bundle size is less than 500 KB when minified and [brotlied](https://en.wikipedia.org/wiki/Brotli), which is much lighter than Netlify CMS (1.5 MB), Decap CMS (1.9 MB) and Static CMS (2.6 MB).[^57][^64] This number is remarkable because even though we haven’t implemented some features yet, we have added a lot of new features. That’s the power of Svelte + [Vite](https://vite.dev/).
|
|
154
|
+
- Small footprint: The bundle size is less than 500 KB when minified and [brotlied](https://en.wikipedia.org/wiki/Brotli), which is much lighter than Netlify CMS (1.5 MB), Decap CMS (1.9 MB) and Static CMS (2.6 MB).[^57][^64] This number is remarkable because even though we haven’t implemented [some features](#current-limitations) yet, we have added a lot of new features. That’s the power of Svelte + [Vite](https://vite.dev/).
|
|
155
155
|
- We have upgraded from Svelte 4 to [Svelte 5](https://svelte.dev/blog/svelte-5-is-alive) to further improve performance, including an even smaller bundle size.
|
|
156
156
|
- [No virtual DOM overhead](https://svelte.dev/blog/virtual-dom-is-pure-overhead).
|
|
157
157
|
- Uses the GraphQL API for GitHub and GitLab to quickly fetch content at once, so that entries and assets can be listed and searched instantly[^32][^65] (the useless `search` configuration option is therefore ignored). It also avoids the slowness and potential API rate limit violations caused by hundreds of requests with Relation widgets.[^14]
|
|
@@ -276,11 +276,12 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
276
276
|
- `pattern` can be used instead of `value` to provide a regular expression, just like the `view_filters` collection option.[^153]
|
|
277
277
|
- Enhancements to [summary string transformations](https://decapcms.org/docs/summary-strings/):
|
|
278
278
|
- Transformations can be used in more places than just the collection `summary`:
|
|
279
|
-
- The `slug` collection
|
|
279
|
+
- The `slug` and `preview_path` collection options[^29]
|
|
280
280
|
- The `summary` field option for the List and Object widgets
|
|
281
|
-
-
|
|
281
|
+
- The `default` transformation accepts a template tag like `{{fields.slug | default('{{fields.title}}')}}`, making it possible to fall back to a different field value. ([Discussion](https://github.com/sveltia/sveltia-cms/issues/345))
|
|
282
282
|
- The `date` transformation 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')}}`. ([Discussion](https://github.com/sveltia/sveltia-cms/issues/278#issuecomment-2565313420))
|
|
283
283
|
- The `date` transformation returns an empty string if an invalid date is given.[^176]
|
|
284
|
+
- Multiple transformations can be chained like `{{title | upper | truncate(20)}}`.
|
|
284
285
|
- Nested fields (dot notation) can be used in the `path` option for a folder collection, e.g. `{{fields.state.name}}/{{slug}}`.[^62]
|
|
285
286
|
- Markdown is supported in the `description` collection option.[^79] Bold, italic, strikethrough, code and links are allowed.
|
|
286
287
|
- The collection `folder` can be an empty string (or `.` or `/`) if you want to store entries in the root folder. This supports a typical VitePress setup.
|
|
@@ -913,7 +914,7 @@ Note: The `root` option is ignored if the collection or collection file contains
|
|
|
913
914
|
|
|
914
915
|
It may be worth mentioning this topic here because the current [Decap CMS doc about the DateTime widget](https://decapcms.org/docs/widgets/#datetime) is unclear. By default, a DateTime field lets users pick both [date and time](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local), but developers can change the input type if needed.
|
|
915
916
|
|
|
916
|
-
Use `time_format: false` to hide the time picker and make
|
|
917
|
+
Use `time_format: false` to hide the time picker and make the input [date only](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date):
|
|
917
918
|
|
|
918
919
|
```yaml
|
|
919
920
|
- label: Start Date
|
|
@@ -922,7 +923,7 @@ Use `time_format: false` to hide the time picker and make it [date only](https:/
|
|
|
922
923
|
time_format: false
|
|
923
924
|
```
|
|
924
925
|
|
|
925
|
-
Use `date_format: false` to hide the date picker and make
|
|
926
|
+
Use `date_format: false` to hide the date picker and make the input [time only](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time):
|
|
926
927
|
|
|
927
928
|
```yaml
|
|
928
929
|
- label: Start Time
|
|
@@ -1515,7 +1516,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1515
1516
|
|
|
1516
1517
|
[^181]: Netlify/Decap CMS [#6254](https://github.com/decaporg/decap-cms/issues/6254)
|
|
1517
1518
|
|
|
1518
|
-
[^182]: Netlify/Decap CMS [#4416](https://github.com/decaporg/decap-cms/issues/4416)
|
|
1519
|
+
[^182]: Netlify/Decap CMS [#4416](https://github.com/decaporg/decap-cms/issues/4416), [#7400](https://github.com/decaporg/decap-cms/pull/7400)
|
|
1519
1520
|
|
|
1520
1521
|
[^183]: Netlify/Decap CMS [#1275](https://github.com/decaporg/decap-cms/issues/1275)
|
|
1521
1522
|
|
|
@@ -1523,6 +1524,6 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1523
1524
|
|
|
1524
1525
|
[^185]: Netlify/Decap CMS [#6203](https://github.com/decaporg/decap-cms/issues/6203), [#7417](https://github.com/decaporg/decap-cms/issues/7417)
|
|
1525
1526
|
|
|
1526
|
-
[^186]: Netlify/Decap CMS [#7379](https://github.com/decaporg/decap-cms/issues/7379)
|
|
1527
|
+
[^186]: Netlify/Decap CMS [#3454](https://github.com/decaporg/decap-cms/issues/3454), [#3585](https://github.com/decaporg/decap-cms/issues/3585), [#3651](https://github.com/decaporg/decap-cms/issues/3651), [#3885](https://github.com/decaporg/decap-cms/issues/3885), [#3962](https://github.com/decaporg/decap-cms/issues/3962), [#4037](https://github.com/decaporg/decap-cms/issues/4037), [#4143](https://github.com/decaporg/decap-cms/issues/4143), [#6585](https://github.com/decaporg/decap-cms/issues/6585), [#6664](https://github.com/decaporg/decap-cms/issues/6664), [#6665](https://github.com/decaporg/decap-cms/issues/6665), [#6739](https://github.com/decaporg/decap-cms/issues/6739), [#7243](https://github.com/decaporg/decap-cms/issues/7243), [#7379](https://github.com/decaporg/decap-cms/issues/7379)
|
|
1527
1528
|
|
|
1528
1529
|
[^187]: Netlify/Decap CMS [#1244](https://github.com/decaporg/decap-cms/issues/1244)
|