Releases: CloudCannon/bookshop
v3.6.4
- Fixed
ENV_BOOKSHOP_LIVE
flag being undefined when live editing Astro components
v3.6.3
- Improved memory performance when live editing
v3.6.2
- (Temporarily) Pin an exact
sass
version to workaround sass/dart-sass#1995
v3.6.1
- Improved error handling for Astro Bookshop sites.
- Fixed a bug which could cause incorrect component data-bindings for Astro sites.
- Fixed Bookshop metadata not being correctly removed from Astro components in some cases.
v3.6.0
Astro Bookshop 🚀
This release introduces experimental support for Astro Bookshop sites 🙌
We're also transitioning away from the current (intimidating) reference guides in this repository, so all of the details on Astro Bookshop can be found in the new Bookshop Astro Guide on the CloudCannon documentation.
Other changes
- Improved live editing performance for Eleventy and Jekyll sites
v3.5.1
- Fixes a performance regression when live editing Hugo with many literal assignments
- Since 3.4.0 literal assignments such as
{{ $var := "string" }}
caused a significant performance hit. This has now been resolved
- Since 3.4.0 literal assignments such as
v3.5.0
This release adds component error boundaries to the Hugo, Jekyll, and Eleventy live editing engines.
Now when syntax errors or unsupported SSG features are used, the individual component should render an error on the page,
and the surrounding components will continue to render correctly. This only applies to the CloudCannon live editing environment,
and does not impact your production website build.
An example of triggering an error in a component without breaking the visual editor:
v3.4.1
Fixed an error where nested object arrays in a component blueprint would error out.
blueprint:
title: Hello World
nested:
# `nested` would be made into an array structure with a value matching the below object
- title: "Nested Object #1"
double_nested:
# This would not work and `double_nested` would default to a string array
- title: "Nested Object #2"
This release fixes this behaviour, and deeply nested object arrays will behave as expected.
v3.4.0
New Hugo renderer
The main aspect of this release is a new and improved Hugo renderer when live editing on CloudCannon. Alongside being more reliable, this unlocks many templating functions that were previously unavailable, such as:
newScratch
absURL
highlight
humanize
Additionally, functions that would previously cause a full error (such as resources.Get
) will now return nil
, and as such can be handled gracefully inside a component.
Looking forward, this release also paves the path for supporting site actions like site.GetPage
in the visual editor, as well as using custom non-Bookshop Hugo partials in the visual editor.
As with all releases, your repository can be upgraded to the latest Bookshop by running:
npx @bookshop/up@latest
Other changes
- Hugo WebAssembly files are now preloaded in CloudCannon, so loading the visual editor should be significantly faster
- Improved data binding support for Hugo template files, and generally fixed many issues with complex templating
- Reduced noise in the developer console when live editing Hugo Bookshop sites
v3.3.3
- Added a
markdownify
filter to Eleventy Bookshop