@sveltia/cms 0.106.4 → 0.107.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 -7
- package/dist/sveltia-cms.js +241 -249
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +240 -248
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +790 -441
- package/types/public.d.ts +269 -160
package/README.md
CHANGED
|
@@ -119,15 +119,15 @@ Due to its unfortunate abandonment in early 2022, Netlify CMS spawned 3 successo
|
|
|
119
119
|
|
|
120
120
|
- [Static CMS](https://github.com/StaticJsCMS/static-cms): a community fork
|
|
121
121
|
- Initial commit made in September 2022
|
|
122
|
-
- Discontinued in September 2024 after making meaningful improvements
|
|
122
|
+
- ❌ Discontinued in September 2024 after making meaningful improvements
|
|
123
123
|
- **Sveltia CMS**: not a fork but a **complete rewrite**
|
|
124
124
|
- Started in November 2022, first appeared on GitHub in March 2023
|
|
125
|
-
- Actively developed with frequent releases and numerous improvements
|
|
126
|
-
- Solved more than 250 issues reported in the Netlify/Decap CMS repository
|
|
125
|
+
- ✅ Actively developed with frequent releases and numerous improvements
|
|
126
|
+
- ✅ Solved more than 250 issues reported in the Netlify/Decap CMS repository
|
|
127
127
|
- [Decap CMS](https://github.com/decaporg/decap-cms): a rebranded version
|
|
128
128
|
- [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
|
|
129
|
-
- Mostly low activity with occasional releases and a few minor improvements
|
|
130
|
-
- A [XSS vulnerability](https://github.com/advisories/GHSA-xp8g-32qh-mv28), high severity dependency vulnerabilities, fatal crashes and many other bugs remain unaddressed
|
|
129
|
+
- ⚠️ Mostly low activity with occasional releases and a few minor improvements
|
|
130
|
+
- ❌ A moderate severity [XSS vulnerability](https://github.com/advisories/GHSA-xp8g-32qh-mv28), high severity dependency vulnerabilities, fatal crashes and many other bugs remain unaddressed
|
|
131
131
|
|
|
132
132
|
Sveltia CMS is the only project that doesn’t inherit the complexity, technical debt, and numerous bugs of Netlify CMS, which was launched in 2015. Our product is better by design:
|
|
133
133
|
|
|
@@ -239,9 +239,9 @@ We’ve made various improvements to help you get your work done faster and more
|
|
|
239
239
|
- We also use the [`cooldown`](https://github.com/raineorshine/npm-check-updates#cooldown) option for `ncu` and the [`minimumReleaseAge`](https://pnpm.io/settings#minimumreleaseage) option for `pnpm` to avoid upgrading to a version that was just released. These options help protect against npm supply chain attacks.
|
|
240
240
|
- The **unpatched** [XSS vulnerability](https://github.com/advisories/GHSA-xp8g-32qh-mv28) in Decap CMS does not affect Sveltia CMS, as our entry preview implementation is completely different.
|
|
241
241
|
- However, the Markdown widget was potentially vulnerable to XSS attacks because the `sanitize_preview` option was set to `false` by default for compatibility with Netlify/Decap CMS. This behaviour is [documented](https://decapcms.org/docs/widgets/#markdown) and is not a bug, but it’s definitely not secure. In [Sveltia CMS 0.105.0](https://github.com/sveltia/sveltia-cms/releases/tag/v0.105.0), we changed the default value to `true`, assuming that most users would prefer security over compatibility.
|
|
242
|
-
- If you cannot migrate from Decap CMS to Sveltia CMS at this time, it’s advisable to disable open authoring and set `sanitize_preview: true` in your Markdown fields to mitigate the risk of XSS attacks.
|
|
243
242
|
- Our [local repository workflow](#working-with-a-local-git-repository) does not require a proxy server. This reduces attack surfaces by eliminating the possibility of compromised dependencies[^158] and unauthorized API access.[^282]
|
|
244
243
|
- Thanks to pnpm, Vite, GitHub Actions and [npm package provenance](https://github.blog/security/supply-chain-security/introducing-npm-package-provenance/), our release process is fast, reliable and transparent. This setup makes it easy to verify the integrity of published code and assets. It also helps us avoid errors that can occur with manual build steps.[^264]
|
|
244
|
+
- We have enabled [trusted publishing](https://docs.npmjs.com/trusted-publishers) and [2FA for package publishing](https://docs.npmjs.com/requiring-2fa-for-package-publishing-and-settings-modification).
|
|
245
245
|
- We have created a [security policy](https://github.com/sveltia/sveltia-cms/blob/main/SECURITY.md).
|
|
246
246
|
- We have documented how to [set up a Content Security Policy](#setting-up-content-security-policy) for the CMS to prevent any unexpected errors or otherwise insecure configuration.[^108]
|
|
247
247
|
- The `unsafe-eval` and `unsafe-inline` keywords are not needed in the `script-src` CSP directive.[^34]
|
|
@@ -319,6 +319,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
319
319
|
- The `{{locale}}` template tag can be used in the [`preview_path`](https://decapcms.org/docs/configuration-options/#preview_path) collection option to provide site preview links for each language.[^63]
|
|
320
320
|
- It’s possible to embed the locale code in an entry by using `widget: hidden` along with `default: '{{locale}}'`.[^101]
|
|
321
321
|
- The `value_field` Relation field option can contain a locale prefix like `{{locale}}/{{slug}}`, which will be replaced with the current locale. It’s intended to support i18n in Astro. ([Discussion](https://github.com/sveltia/sveltia-cms/discussions/302))
|
|
322
|
+
- A collection filter is applied correctly when using the `single_file` i18n structure.[^291]
|
|
322
323
|
- User interface
|
|
323
324
|
- Eliminates UI confusion: The Preview Pane can be displayed without toggling i18n in the Content Editor. Both panes are scrollable. There is no condition where both panes are edited in the same language at the same time.
|
|
324
325
|
- Users can easily switch between locales while editing by clicking a button instead of a dropdown list when there are less than 5 locales.
|
|
@@ -647,7 +648,7 @@ These Netlify/Decap CMS features are not yet implemented in Sveltia CMS. We are
|
|
|
647
648
|
- [Custom preview templates](https://decapcms.org/docs/customization/#registerpreviewtemplate) ([#51](https://github.com/sveltia/sveltia-cms/issues/51))
|
|
648
649
|
- [Event hooks](https://decapcms.org/docs/registering-events/) ([#167](https://github.com/sveltia/sveltia-cms/issues/167))
|
|
649
650
|
|
|
650
|
-
[Localization](https://github.com/sveltia/sveltia-cms/blob/main/src/lib/locales/README.md), [documentation](https://github.com/sveltia/sveltia-cms/issues/485) and [demo site](https://github.com/sveltia/sveltia-cms/issues/1) will all be prepared once the 1.0 Release Candidate is ready.
|
|
651
|
+
[Localization](https://github.com/sveltia/sveltia-cms/blob/main/src/lib/locales/README.md), [documentation](https://github.com/sveltia/sveltia-cms/issues/485) and a [demo site](https://github.com/sveltia/sveltia-cms/issues/1) will all be prepared once the 1.0 Release Candidate is ready.
|
|
651
652
|
|
|
652
653
|
Due to the complexity, we have decided to defer the following features to the 2.0 release due early/mid 2026. Netlify/Decap CMS has dozens of open issues with these collaboration and beta features — we want to implement them the right way.
|
|
653
654
|
|
|
@@ -2585,3 +2586,5 @@ This project would not have been possible without the open source Netlify CMS pr
|
|
|
2585
2586
|
[^289]: Netlify/Decap CMS [#2183](https://github.com/decaporg/decap-cms/issues/2183)
|
|
2586
2587
|
|
|
2587
2588
|
[^290]: Netlify/Decap CMS [#7611](https://github.com/decaporg/decap-cms/issues/7611)
|
|
2589
|
+
|
|
2590
|
+
[^291]: Netlify/Decap CMS [#7612](https://github.com/decaporg/decap-cms/pull/7612)
|