Skip to content

[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Sep 10:49
· 40 commits to main since this release
7c35e9f

Patch Changes

  • 12bed03: Update dependencies

  • ecb682a: Update readme, and package.json naming as well as references to Astro Studio to AstroDB.

  • 585c5e4: Update readmes to reflect new package name

  • ecb682a: [Update readme]: Update Astro Studio references to AstroDB as Studio is closing down.

  • 12bed03: [Refactor]: Update main config schema for renderers.

    • Removed contentRenderer and markedConfig from the main options
    • Added config for MarkDoc
    • Created new rendererConfig section:
    // astro.config.mjs
    // https://astro.build/config
    export default defineConfig({
      // ...Rest of Astro Config
      integrations: [
        studiocms({
          // ...Rest of StudioCMS Config
          // (This is the same if you use the 'studiocms.config.mjs' file)
          rendererConfig: {
            renderer: "marked", // Can also be 'astro', or 'markdoc'
            markedConfig: {
              /* MarkedJS Config */
            },
            markdocConfig: {
              /* MarkDoc Config */
            },
          },
        }),
      ],
    });
  • 12bed03: [Migrate/Deprecation]: customRendererPlugin moved to StudioCMSRendererConfig

    • Deprecation of StudioCMSPluginOptions defined CustomRenderers
    • Add new option to define renderers from StudioCMSOptions config:
    // astro.config.mjs
    function simpleHTMLRenderer(content: string) {
      return {
        name: "simple-html-renderer",
        renderer: async (content: string) => {
          return `<p>${content}</p>`;
        },
      };
    }
    
    // https://astro.build/config
    export default defineConfig({
      // ...Rest of Astro Config
      integrations: [
        studiocms({
          // ...Rest of StudioCMS Config
          // (This is the same if you use the 'studiocms.config.mjs' file)
          rendererConfig: {
            renderer: simpleHTMLRenderer,
          },
        }),
      ],
    });
  • Updated dependencies [12bed03]

  • Updated dependencies [12bed03]

  • Updated dependencies [12bed03]

  • Updated dependencies [1383e80]

  • Updated dependencies [12bed03]

  • Updated dependencies [12bed03]

  • Updated dependencies [4f8e60b]

  • Updated dependencies [12bed03]