Skip to content

Releases: CloudCannon/bookshop

v3.6.4

18 Jul 22:32
4f0e344
Compare
Choose a tag to compare
  • Fixed ENV_BOOKSHOP_LIVE flag being undefined when live editing Astro components

v3.6.3

28 Jun 01:36
Compare
Choose a tag to compare
  • Improved memory performance when live editing

v3.6.2

08 Jun 00:13
Compare
Choose a tag to compare

v3.6.1

06 Jun 03:39
677d0b9
Compare
Choose a tag to compare
  • 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

01 Jun 01:57
Compare
Choose a tag to compare

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

12 May 09:26
Compare
Choose a tag to compare
  • 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

v3.5.0

10 May 23:17
b073b72
Compare
Choose a tag to compare

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:
An example of triggering an error in a component without breaking the visual editor

v3.4.1

23 Mar 05:53
Compare
Choose a tag to compare

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

09 Mar 01:01
Compare
Choose a tag to compare

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

02 Dec 02:47
Compare
Choose a tag to compare
  • Added a markdownify filter to Eleventy Bookshop