Skip to content

Releases: withstudiocms/studiocms

@studiocms/[email protected]

24 Sep 17:37
a6b780e
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • 880311a: Update URL from astro-studiocms.xyz to studiocms.xyz

[email protected]

14 Sep 10:49
7c35e9f
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

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]

@studiocms/[email protected]

14 Sep 10:50
7c35e9f
Compare
Choose a tag to compare
Pre-release
@studiocms/[email protected]

@studiocms/[email protected]

14 Sep 10:50
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • 12bed03: Update dependencies

  • 12bed03: [MarkDoc] Update MarkDoc support

    • Add advanced config options for MarkDoc
    studioCMS({
        rendererConfig: {
            markdocConfig: {
                /**
                 * The MarkDoc Content Renderer to use for rendering pages and posts
                 *
                 * Can be one of the following: `html`, `react-static`, or a custom renderer
                 */
                renderType: 'html',
                /**
                 * The MarkDoc Arg Parse to use for rendering pages and posts
                 */
                argsParse: {
                    file: 'string',
                    slots: false,
                    location: false,
                },
                /**
                 * The MarkDoc Transform Config to use for rendering pages and posts
                 *
                 * @see https://markdoc.dev/docs/config
                 */
                transformConfig: {
                    nodes: {},
                    tags: {},
                    variables: {},
                    functions: {},
                    partials: {},
                    validation: {};
                },
            }
        }
    })
    • Add support for MarkDoc renderType of html, and react-static, and custom renderers such as the provided markdocReactRenderer from @studiocms/renderers/exports/markdoc/react:
    import { defineConfig } from 'astro/config';
    import react from '@astrojs/react';
    import studioCMS from 'studiocms';
    import markDocRenderReact from '@studiocms/renderers/exports/markdoc/react';
    
    // https://astro.build/config
    export default defineConfig({
    	//...Rest of Config
    	integrations: [
            //...Rest of Config
    		react(),
    		studioCMS({
                //...Rest of Config
                rendererConfig: {
                    markdocConfig: {
                        renderType: markDocRenderReact(components: {}), // Also applies to users with a `studiocms.config.mjs` file.
                    }
                }
            }),
    	],
    });
  • 1383e80: [Update] Add MDX Renderer:

    • Add mdxConfig schema and renderer option for new MDX renderer
    • Add renderer to StudioCMSRenderer
  • 12bed03: [Refactor]: Update virtual module generation

    • Move virtual:studiocms/astromdremarkConfig and rename to studiocms:renderer/astroMarkdownConfig from the @studiocms/core to @studiocms/renderers
    • New virtual module for the rendererConfig studiocms:renderer/config
  • 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 [1383e80]

  • Updated dependencies [12bed03]

  • Updated dependencies [12bed03]

  • Updated dependencies [12bed03]

@studiocms/[email protected]

14 Sep 10:49
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes

@studiocms/[email protected]

14 Sep 10:50
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes

@studiocms/[email protected]

14 Sep 10:49
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes

@studiocms/[email protected]

14 Sep 10:49
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • 12bed03: Update dependencies

  • 12bed03: [Code Scanning Fix] Polynomial regular expression used on uncontrolled data

    • Replace function used for leading and trailing slashes (Non-Breaking)
  • 1383e80: [Update] Add MDX Renderer:

    • Add mdxConfig schema and renderer option for new MDX renderer
    • Add renderer to StudioCMSRenderer
  • 12bed03: [Refactor]: Update virtual module generation

    • Move virtual:studiocms/astromdremarkConfig and rename to studiocms:renderer/astroMarkdownConfig from the @studiocms/core to @studiocms/renderers
    • New virtual module for the rendererConfig studiocms:renderer/config
  • 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,
          },
        }),
      ],
    });

@studiocms/[email protected]

14 Sep 10:49
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes

@studiocms/[email protected]

14 Sep 10:49
7c35e9f
Compare
Choose a tag to compare
Pre-release

Patch Changes