Skip to content

Releases: CloudCannon/bookshop

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

v3.3.2

30 Nov 00:14
Compare
Choose a tag to compare
  • Fixes a v3.1.1 error when running the @bookshop/browser command for Hugo

v3.3.1

29 Nov 04:23
Compare
Choose a tag to compare
  • Fix nested component keys in SvelteKit websites (@NJKode — #125)
  • Stopped loading Hugo WebAssembly files from cdn.bookshop.build
    • These are instead compressed and served from the site alongside Bookshop assets
  • General repository tidyups and release automation, in preparation for a larger Hugo Bookshop release

v3.3.0 — SvelteKit Beta

03 Aug 09:53
Compare
Choose a tag to compare

Features & Improvements

  • Component Initialization
    • Component blueprints referencing nested components can now initialize those components on creation with the ! operator. See Initializing Nested Components in the relevant guide.
  • SvelteKit Beta Support
    • Bookshop now supports SvelteKit, with live editing provided by the existing CloudCannon Svelte Connector.
    • See the newly created SvelteKit Guide to get started.

Fixes & Tweaks

  • Fixed some console errors when live editing in Hugo
  • Improved the initialization speed of Hugo live editing

v3.1.3

17 Jun 01:14
Compare
Choose a tag to compare

Bug Fixes

  • eleventy collection loops no longer crash (84a64c4)
    • The forloop.name feature implemented in liquidjs has now made it to Eleventy, so the Bookshop workaround has been removed. This workaround was previously causing a crash when nested inside a collection loop.

Features

  • default @bookshop/init to new component if a bookshop dir was found (12ad117)
    • Previously, running @bookshop/init would prompt you for the decision between creating a new component or a new Bookshop every time. Now, if it finds a Bookshop directory it will default to the new component decision.

v3.1.2

10 May 05:32
Compare
Choose a tag to compare

Bug Fixes

  • set input configuration on generated structures within blueprints (ed0d6b3)
    • Previously, an array of objects within a component would not use a field configured in the _inputs block of the component. Any _ cascade fields are now set on all generated sub-structures in a component.

v3.1.1

04 May 23:52
Compare
Choose a tag to compare

Bug Fixes

  • move the Hugo live environment flag to site.Params (0d6b0c8)
    • Flag has been moved to site.Params.env_bookshop_live: Hugo docs

v3.1.0 — Live Editing Flag

04 May 08:10
Compare
Choose a tag to compare

Features