@sveltia/cms 0.117.0 → 0.117.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 +5 -3
- package/dist/sveltia-cms.js +136 -136
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +135 -135
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +1 -5259
- package/types/public.d.ts +77 -14
package/README.md
CHANGED
|
@@ -285,9 +285,8 @@ We’ve made various improvements to help you get your work done faster and more
|
|
|
285
285
|
- Also supports [multiple configuration files](#providing-multiple-configuration-files) to allow developers to modularize the configuration.[^197]
|
|
286
286
|
- We provide an [up-to-date JSON schema](#enabling-autocomplete-and-validation-for-the-configuration-file) for YAML/JSON configuration files, which enables autocomplete and validation in VS Code and other editors.[^253] If you use [deprecated options](#deprecations) in a supported code editor, you should receive a warning.
|
|
287
287
|
- We provide only one package, `@sveltia/cms`, instead of many (`decap-cms`, `decap-cms-app`, `decap-cms-core` and so on), which is simpler and less confusing.
|
|
288
|
-
- Improved TypeScript support
|
|
288
|
+
- Improved TypeScript support:
|
|
289
289
|
- We keep our type definitions for `CMS.init()` and other methods complete, accurate, up-to-date and annotated.[^190][^191][^192][^193][^227] This makes it easier to provide a site config object when [manually initializing](https://decapcms.org/docs/manual-initialization/) the CMS.
|
|
290
|
-
- The `SiteConfig` type is exported from the main package, so you can import it directly to construct your configuration object with proper type checking outside of the `CMS.init()` method.
|
|
291
290
|
- Config validation enhancements:
|
|
292
291
|
- Sveltia CMS has additional validation rules designed to prevent common misconfigurations that could lead to runtime errors:
|
|
293
292
|
- Common backend misconfigurations, such as an incorrect repository name or a missing OAuth client ID[^303]
|
|
@@ -1612,7 +1611,10 @@ singletons:
|
|
|
1612
1611
|
label: GitHub account
|
|
1613
1612
|
```
|
|
1614
1613
|
|
|
1615
|
-
Note: The `root` option is ignored
|
|
1614
|
+
Note: The `root` option is ignored in the following cases:
|
|
1615
|
+
|
|
1616
|
+
- The file or singleton contains multiple fields. You can still have subfields under the List field.
|
|
1617
|
+
- The file format is TOML, because TOML doesn’t support top-level arrays.
|
|
1616
1618
|
|
|
1617
1619
|
### Changing the input type of a DateTime field
|
|
1618
1620
|
|