@sveltia/cms 0.119.0 → 0.119.2
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 +22 -10
- package/dist/sveltia-cms.js +232 -232
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +220 -220
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +3 -3
- package/schema/sveltia-cms.json +1 -1
- package/types/public.d.ts +16 -12
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sveltia CMS: Netlify/Decap CMS successor
|
|
2
2
|
|
|
3
|
-
Sveltia CMS is a Git-based lightweight headless CMS under active development as a modern, powerful, direct replacement for Netlify CMS (now Decap CMS). We have picked up where they left off and have already solved over
|
|
3
|
+
Sveltia CMS is a Git-based lightweight headless CMS under active development as a modern, powerful, direct replacement for Netlify CMS (now Decap CMS). We have picked up where they left off and have already solved over 270 issues reported in the predecessor’s repository, ranging from critical bugs to top feature requests.
|
|
4
4
|
|
|
5
5
|
Built from the ground up, Sveltia CMS offers excellent UX, DX, performance, security and internationalization (i18n) support. Although some features are still missing, our numerous enhancements across the board ensure smooth daily workflows.
|
|
6
6
|
|
|
@@ -127,7 +127,7 @@ Due to its unfortunate abandonment in early 2022, Netlify CMS spawned 3 successo
|
|
|
127
127
|
- **Sveltia CMS**: not a fork but a **complete rewrite**
|
|
128
128
|
- Started in November 2022, first appeared on GitHub in March 2023
|
|
129
129
|
- ✅ Actively developed with frequent releases and numerous improvements
|
|
130
|
-
- ✅ Solved more than
|
|
130
|
+
- ✅ Solved more than 270 issues reported in the Netlify/Decap CMS repository
|
|
131
131
|
- [Decap CMS](https://github.com/decaporg/decap-cms): a rebranded version
|
|
132
132
|
- [Announced in February 2023](https://www.netlify.com/blog/netlify-cms-to-become-decap-cms/) as an official continuation with a Netlify agency partner taking ownership
|
|
133
133
|
- ⚠️ Mostly low activity with only occasional releases and a few minor improvements
|
|
@@ -165,7 +165,7 @@ While we fix reported bugs as quickly as possible, usually within 24 hours, our
|
|
|
165
165
|
- Some missing features will be implemented before or shortly after GA
|
|
166
166
|
- Providing partial [compatibility with Static CMS](#compatibility-with-static-cms)
|
|
167
167
|
- Tackling as many [Netlify/Decap CMS issues](https://github.com/decaporg/decap-cms/issues) as possible
|
|
168
|
-
- So far, **
|
|
168
|
+
- So far, **270+ issues, or 580+ if including duplicates, have been effectively solved** in Sveltia CMS (Yes, you read it right)
|
|
169
169
|
- Target:
|
|
170
170
|
- 250 issues, or 500 if including duplicates, by GA — We did it! 🎉
|
|
171
171
|
- 400 issues, or 900 if including duplicates, in the future 💪
|
|
@@ -179,7 +179,7 @@ While we fix reported bugs as quickly as possible, usually within 24 hours, our
|
|
|
179
179
|
- Responding to requests from the maintainer’s clients
|
|
180
180
|
- Making the code clean and maintainable
|
|
181
181
|
|
|
182
|
-
<br>
|
|
183
183
|
|
|
184
184
|
## Differentiators
|
|
185
185
|
|
|
@@ -293,6 +293,7 @@ We’ve made various improvements to help you get your work done faster and more
|
|
|
293
293
|
- Common backend misconfigurations, such as an incorrect repository name or a missing OAuth client ID[^303]
|
|
294
294
|
- A mismatch between the `format` and `extension` options for a collection
|
|
295
295
|
- Invalid collection, collection file, field, variable type names (e.g. names containing `.` or `*`)
|
|
296
|
+
- `slug` templates containing slashes
|
|
296
297
|
- Mutually exclusive config options (e.g. `field`, `fields` and `types` on List fields)
|
|
297
298
|
- `collection` and `file` references on Relation fields
|
|
298
299
|
- Duplicate variable type names
|
|
@@ -323,6 +324,7 @@ The [GitHub](https://decapcms.org/docs/github-backend/), [GitLab](https://decapc
|
|
|
323
324
|
- Users won’t get a 404 Not Found error when you sign in to the GitLab backend.[^115]
|
|
324
325
|
- We have implemented a workaround for a [GraphQL complexity limit issue](https://github.com/sveltia/sveltia-cms/issues/525) in GitLab 18.4.2, while Netlify/Decap CMS continues to suffer from the same problem.[^301]
|
|
325
326
|
- Our Gitea/Forgejo backend is high-performing because it retrieves multiple entries at once. It also supports Git LFS ([documentation](https://docs.gitea.com/administration/git-lfs-setup)). Additionally, the backend won’t cause 400 Bad Request errors due to the presence of `DRAFT_MEDIA_FILES` in file paths.[^222]
|
|
327
|
+
- Unlike Netlify/Decap CMS, Sveltia CMS does not have a hardcoded API request timeout of 60 seconds, which can lead to unexpected errors when working with large files or slow networks.[^304] Though users may still experience timeouts due to server-side limitations, at least the client-side won’t impose an arbitrary limit.
|
|
326
328
|
- Features the all-new [local repository workflow](#working-with-a-local-git-repository) for a better DX. See the [productivity section](#better-productivity) above.
|
|
327
329
|
- An indicator is displayed in the account menu when using the local repository workflow.[^302]
|
|
328
330
|
- Developers can select the local and remote backends while working on a local server.
|
|
@@ -377,7 +379,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
377
379
|
- A nested field can be specified using dot notation, e.g. `heroImage.src`.
|
|
378
380
|
- A wildcard in the field name is also supported, e.g. `images.*.src`.
|
|
379
381
|
- Multiple field names can be specified as an array for fallback purpose, e.g. `[thumbnail, cover]`.
|
|
380
|
-
- Occasionally, you may not have suitable images for thumbnails. For example, your images may have subtle differences or varied aspect ratios. In that case, you can disable the thumbnail with `thumbnail:
|
|
382
|
+
- Occasionally, you may not have suitable images for thumbnails. For example, your images may have subtle differences or varied aspect ratios. In that case, you can disable the thumbnail with `thumbnail: false`.
|
|
381
383
|
- If this option is omitted, any non-nested, non-empty Image or File field will be used.[^173] Sveltia CMS doesn’t have [hardcoded inference fields](https://github.com/decaporg/decap-cms/blob/899dba82d1f396260e0f84c6977c1d2aee809b59/packages/decap-cms-core/src/constants/fieldInference.tsx#L64-L72).[^130]
|
|
382
384
|
- `limit`: Specify the maximum number of entries that can be created in a folder collection.[^185]
|
|
383
385
|
- `divider`: [Add dividers to the collection list](#adding-dividers-to-the-collection-list).
|
|
@@ -724,7 +726,7 @@ The following Netlify/Decap CMS features will not be added to Sveltia CMS, prima
|
|
|
724
726
|
- Global: [`search`](https://decapcms.org/docs/configuration-options/#search)
|
|
725
727
|
- Backend: [`use_graphql`](https://decapcms.org/docs/github-backend/#graphql-api)
|
|
726
728
|
- Relation widget: `options_length`
|
|
727
|
-
- Local proxy server: As [mentioned above](#better-productivity), our [local repository workflow](#working-with-a-local-git-repository) eliminates the need for a proxy server. For security and performance reasons, we don’t support `netlify-cms-proxy-server
|
|
729
|
+
- Local proxy server: As [mentioned above](#better-productivity), our [local repository workflow](#working-with-a-local-git-repository) eliminates the need for a proxy server. For security and performance reasons, we don’t support `netlify-cms-proxy-server` or `decap-server`. The `local_backend` option is ignored.
|
|
728
730
|
- The global [`locale`](https://decapcms.org/docs/configuration-options/#locale) option and `CMS.registerLocale()` method: Sveltia CMS automatically detects the user’s preferred language and changes the UI locale as [mentioned above](#better-localization).
|
|
729
731
|
- [Undocumented methods](https://github.com/sveltia/sveltia-cms/blob/c69446da7bb0bab7405be741c0f92850c5dddfa8/src/main.js#L14-L37) exposed on the `CMS` object: This includes custom backends and custom media libraries, if any. We may support these features in the future, but our implementation would likely be incompatible with Netlify/Decap CMS.
|
|
730
732
|
- Any other undocumented features and options. Exceptions apply.
|
|
@@ -739,7 +741,11 @@ There are some differences in behaviour between Sveltia CMS and Netlify/Decap CM
|
|
|
739
741
|
- Sveltia CMS requires a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts), meaning it only works with HTTPS, `localhost` or `127.0.0.1` URLs. If you’re running your own remote server and serving content over HTTP, the CMS will not work. We recommend obtaining a TLS certificate from [Let’s Encrypt](https://letsencrypt.org/).
|
|
740
742
|
- As of [Sveltia CMS 0.105.0](https://github.com/sveltia/sveltia-cms/releases/tag/v0.105.0), the `sanitize_preview` option for the [Markdown](https://decapcms.org/docs/widgets/#Markdown) widget is set to `true` by default to prevent potential XSS attacks via entry previews. We recommend keeping this option enabled unless disabling it fixes a broken preview and you fully trust all users of your CMS.
|
|
741
743
|
|
|
742
|
-
|
|
744
|
+
There may be other minor differences in behaviour that are not listed here.
|
|
745
|
+
|
|
746
|
+
Sveltia CMS is also adding various config validation checks to help users identify potential issues, so you may see errors that were not present in Netlify/Decap CMS before. For example, Sveltia CMS raises an error if the `slug` collection option contains slashes (`/`), which is supposed to be invalid.
|
|
747
|
+
|
|
748
|
+
[Let us know](https://github.com/sveltia/sveltia-cms/issues/new?type=bug) if you have encounter any compatibility issues not mentioned here. We want to make the migration process as smooth as possible for our users.
|
|
743
749
|
|
|
744
750
|
### Framework support
|
|
745
751
|
|
|
@@ -908,6 +914,12 @@ If you use VS Code, you can enable it for the YAML configuration file by install
|
|
|
908
914
|
# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
|
|
909
915
|
```
|
|
910
916
|
|
|
917
|
+
For TOML files, install the [Even Better TOML extension](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) and add the following comment to the top of `config.toml`:
|
|
918
|
+
|
|
919
|
+
```toml
|
|
920
|
+
#:schema https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
|
|
921
|
+
```
|
|
922
|
+
|
|
911
923
|
If your configuration is in JSON format (see the [next section](#providing-a-json-configuration-file)), no extension is needed. Just add the following line to the top of `config.json`, within the curly braces:
|
|
912
924
|
|
|
913
925
|
```json
|
|
@@ -1993,7 +2005,6 @@ Due early 2026
|
|
|
1993
2005
|
- Accessibility audit
|
|
1994
2006
|
- [Localization](https://github.com/sveltia/sveltia-cms/blob/main/src/lib/locales/README.md)
|
|
1995
2007
|
- [Developer documentation](https://github.com/sveltia/sveltia-cms/issues/485) (implementation guide)
|
|
1996
|
-
- Marketing site
|
|
1997
2008
|
- [Live demo site](https://github.com/sveltia/sveltia-cms/issues/1)
|
|
1998
2009
|
|
|
1999
2010
|
See also the [1.0 RC](https://github.com/sveltia/sveltia-cms/milestone/1) and [1.0](https://github.com/sveltia/sveltia-cms/milestone/2) milestones for a list of issues planned for v1.0.
|
|
@@ -2004,11 +2015,10 @@ Due mid-2026
|
|
|
2004
2015
|
|
|
2005
2016
|
- Implementing [a few deferred Netlify/Decap CMS features](#current-limitations), including editorial workflow and nested collections, while addressing a number of bugs in their implementations
|
|
2006
2017
|
- They will probably first be included as beta features in v1.x releases
|
|
2007
|
-
- Tackling even more Netlify/Decap CMS issues:
|
|
2018
|
+
- Tackling even more Netlify/Decap CMS issues, including:
|
|
2008
2019
|
- [Manual entry sorting](https://github.com/sveltia/sveltia-cms/issues/214)[^125]
|
|
2009
2020
|
- [Directory navigation in the Asset Library](https://github.com/sveltia/sveltia-cms/issues/420)[^240]
|
|
2010
2021
|
- [Asset collections](https://github.com/sveltia/sveltia-cms/issues/301)[^271]
|
|
2011
|
-
- and a few more from the TBD list below
|
|
2012
2022
|
|
|
2013
2023
|
See also the [2.0](https://github.com/sveltia/sveltia-cms/milestone/3) milestone.
|
|
2014
2024
|
|
|
@@ -2706,3 +2716,5 @@ This project would not have been possible without the open source Netlify CMS pr
|
|
|
2706
2716
|
[^302]: Netlify/Decap CMS [#3286](https://github.com/decaporg/decap-cms/issues/3286)
|
|
2707
2717
|
|
|
2708
2718
|
[^303]: Netlify/Decap CMS [#3803](https://github.com/decaporg/decap-cms/issues/3803)
|
|
2719
|
+
|
|
2720
|
+
[^304]: Netlify/Decap CMS [#4538](https://github.com/decaporg/decap-cms/issues/4538), [#6371](https://github.com/decaporg/decap-cms/issues/6371)
|