Skip to content

Releases ​

This document provides information about Sveltia CMS releases, including how to find release notes, versioning practices and update instructions.

Release Frequency ​

Sveltia CMS ships new versions quite frequently, usually several times a week or even multiple times a day. Instead of following a strict release schedule, we prioritize releasing updates as soon as they are ready. This approach allows us to deliver new features, improvements and bug fixes to users more rapidly.

And this approach works because our product is a CDN-served SPA. As long as you use the CDN script without pinning to a specific version, there is no maintenance overhead for users to update their installations. End users can always access the latest version of Sveltia CMS without needing to manually update their software.

Release Information ​

Here are some ways to stay informed about new releases:

  • Our release notes are available on GitHub. There are a couple of ways to receive notifications about new releases:
  • Major, minor and security releases are also announced on our Bluesky account. Follow us there for the latest updates!
  • Interested in what’s coming next? Check out our roadmap. We have a lot of exciting ideas to make Sveltia CMS the best Git-based CMS out there.
  • Deprecated features and breaking changes are documented in the migration guide.

Versioning Policy ​

We follow semantic versioning for our releases. We don’t typically maintain multiple release lines, but we may do so for critical security fixes if necessary. We don’t offer long-term support (LTS) versions.

Breaking changes are only introduced in major version updates (e.g. from 1.x.x to 2.0.0). Minor and patch releases (e.g. from 1.0.0 to 1.1.0 or 1.0.1) are backward-compatible, though unintended issues may occasionally arise.

CDN or npm Package ​

Sveltia CMS is published as the @sveltia/cms package, which contains three builds of the app. See the API documentation for how to load each one.

CDN scriptCDN modulenpm package
Filedist/sveltia-cms.jsdist/sveltia-cms.mjsnpm/index.js
How to loadscript tagscript tag with type="module"import from @sveltia/cms
FormatClassic script, single fileJavaScript module, single fileJavaScript modules, split into files
Build toolNot neededNot neededRequired
UpdatesAutomaticAutomaticWith your package manager
Files loaded from CDNsYesYesNo

The CDN builds are self-contained scripts that work on any site. To keep them small, they load some files from public CDNs as needed: fonts from jsDelivr, and admin interface translations, additional libraries, image decoders and syntax highlighting definitions from UNPKG. This is still the case if you copy the script to your own site. Parts of the app that only some sites need, such as the GitLab and Gitea/Forgejo backends and the Map field, are loaded from the chunks folder next to the script, so copy dist/chunks along with it, or they’re loaded from UNPKG as well. See the privacy notes and the Content Security Policy guide for details.

The npm package includes all of these files instead, so the CMS contacts no CDN. Your build tool processes them along with the rest of your site and loads each one only when it’s needed. This requires a build tool that supports JavaScript modules, workers and assets referenced with new URL(), such as Vite and webpack 5.

Some of those files, including libraries like Leaflet for the Map field and the syntax highlighting definitions, come with packages that your package manager installs as dependencies of Sveltia CMS. If your site uses one of them too, both can share a single copy.

Security Risk

Using the npm version means that you will not receive any updates, including important bug fixes and security patches, until you manually update the package. This can lead to potential security risks and increased maintenance costs.

Sveltia CMS is designed to update automatically, and our security practices include mitigating supply chain attacks. Use the CDN version unless you require advanced framework integration or a strictly privacy-compliant setup.

No Support for npm Package Setup

The npm package is aimed at advanced users who are familiar with build tools and JavaScript modules. We do not provide support for using it. If you are not comfortable with build tools, we recommend using the CDN builds instead.

PDF Thumbnails in the npm Package

The npm package generates thumbnails for PDF files with PDF.js, like the CDN builds. However, it doesn’t include the hundreds of character maps, standard fonts and color profiles that come with the library. As a result, text in fonts that are not embedded in a PDF file is drawn with a font installed on the user’s system instead. Some text in Chinese, Japanese or Korean may also be left out of the thumbnail. The image decoders for JPEG 2000 and JBIG2 images are included.

Checking Your Current Version ​

The current version of Sveltia CMS can be viewed by enabling Developer Mode in the application:

  1. Click on the avatar in the top right corner of the application to open the Account menu.
  2. Click Settings.
  3. Click the Developer tab.
  4. Enable Developer Mode.
  5. Close the Settings dialog.

A Release Notes link will now appear under the Help menu with the ? icon, displaying the current application version.

Updating Your Installation ​

CDN Usage ​

Updating Sveltia CMS when using the CDN is automatic, unless you have pinned to a specific version. The CDN always serves the latest version, so you don’t need to take any action to receive updates.

To use the latest version of Sveltia CMS via the CDN, include the following script tag in your HTML, as the start guide suggests:

html
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>

Module Version

Earlier versions of Sveltia CMS were bundled as a JavaScript module, so you needed type="module" in the script. The current version is a classic IIFE script, so the type attribute is no longer necessary. If you still need to use the module version for some reason, you can use this tag instead, which loads the .mjs file:

html
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.mjs" type="module"></script>

You can also explicitly import the script to use the JavaScript API:

html
<script type="module">
  import CMS from 'https://unpkg.com/@sveltia/cms/dist/sveltia-cms.mjs';
</script>

The CMS also periodically checks for updates and notifies users when a new version is available. When the notification appears, simply click the “Update Now” button to refresh the application and load the latest version. This works with both the classic sveltia-cms.js script and the sveltia-cms.mjs module.

To avoid major version updates that may include breaking changes, you can pin to a specific major version using the caret symbol (^) followed by the major version number:

html
<script src="https://unpkg.com/@sveltia/cms@^1/dist/sveltia-cms.js"></script>

With such a version range, the notification appears for a new version within the range, which a reload picks up. A release outside the range, or any release when you pin to an exact version, only logs a warning in the browser console, because reloading wouldn’t load it.

Stable Version Not Yet Available

Sveltia CMS has yet not reached 1.0.0. Pinning to a specific major version is more relevant once we start releasing stable versions (1.0.0 and above).

You can also pin to an exact version, but this is not recommended unless you have a specific reason, like debugging or temporarily avoiding a problematic release:

html
<script src="https://unpkg.com/@sveltia/[email protected]/dist/sveltia-cms.js"></script>

Please report any regressions you encounter to us. Keep in mind that pinning is only a temporary solution and that unreported bugs may be overlooked forever. Reported bugs are usually solved within 8 hours.

Security Risk

If you pin to an exact version, you will not receive any updates, including important bug fixes and security patches, until you manually update the version number in your script tag. This can lead to potential security risks and increased maintenance costs.

Sveltia CMS is designed to update automatically, and our security practices include mitigating supply chain attacks. It is discouraged to pin to an exact version for long-term use, as the disadvantages outweigh the advantages.

npm Package Usage ​

If you’ve chosen to install the CMS using a package manager, updating the package is your responsibility. The CMS doesn’t notify users of new versions in this case, as updating requires a new build of your site. We strongly recommend using ncu or a service like Dependabot to keep dependencies up to date. Otherwise, you’ll miss important bug fixes and new features.

ProTip

We update our dependencies using ncu -u && pnpm up at least once a week.

The pinning methods described in the CDN section above also apply to npm package versions. For example, to pin to a specific major version, you can run:

bash
npm install @sveltia/cms@^1
bash
yarn add @sveltia/cms@^1
bash
pnpm add @sveltia/cms@^1
bash
bun add @sveltia/cms@^1

See the npm semantic versioning documentation for more details on version ranges.