What's Coming in the next release

Posted on 8/22/2023 to release/v1

In our pursuit to provide you with the best tools for creating resilient static HTML documents and websites, the next release of fusion.ssg will feature numerous enhancements (please see below for details).

We are so thrilled to see fusion.ssg being adopted by creators from all over the world ❤️.

Sincerely,

The Team

This page has been amended on 9/2/2023 to include the notice that the feature "cache busting" will be included in the next release.

This page has been amended on 9/5/2023 to include the notice that the implementation for the feature "conditional includes" has changed and will now be using fusion.json for its configuration and not front matter.

Cache Busting

image

The next release of fusion.ssg will make cache busting your websites a snap 🫰🏼. When building for release, fusion.ssg will now optionally cache bust your site's assets (e.g. css, media, scripts, .etc), allowing your site's visitors to immediately experience its latest changes. Specifically, to opt in to cache busting your release builds, you will need to append --cache-bust to the release:fusion script located in your project's package.json file. Once appended, the release:fusion script should look exactly like the following:

"release:fusion": "fusion release --cache-bust",

fusion.ssg handles all the details, so no additional configuration or changes to your projects other than the above change to your package.json file's release:fusion script is required to enhance your sites with cache busting.

fusion.ssg relies on Buster, which is a very capable and resilient cache busting tool developed by the same team that brings you fusion.ssg, to implement its cache busting.

Conditional Includes

Conditional includes will allow you to designate that an include's content is relevant only for release builds or is relevant only for development builds.

Why would you might use this? For example, suppose your site includes some content that is only relevant in a release build, such as Google analytics for example, you will now be able to exclude this content when building your site for development.

To support this feature, fusion.json will now support the following property:

"conditionalIncludes": {
    "developmentOnly": ["path/to/include/relative/to/src/includes", ...],
    "releaseOnly": ["path/to/include/relative/to/src/includes", ...],
}

If an include's path matches one of these conditions, its content will not be included in the target HTML document.

WIPS Reporting During Release Builds

fusion.ssg will now report all WIPS for each release build cycle. These warnings will serve to prevent the unintended updating of websites with missing HTML documents that should have been included but aren't because they are still marked as WIPS.

imgage

Exposing More Post Metadata As Simple Token Values

When tokenizing a post, fusion.ssg will now expose a post's post date, categories, and tags as simple token values, allowing them to be used as simple tokens in your templates, pages and includes. This will serve to mitigate the need of having to use a component just to include these in your HTML documents.

Tokenization Metric Reporting

fusion.ssg will now include metrics for tokenization.