Skip to content

Releases: makeswift/makeswift

@makeswift/runtime@0.13.1

12 Jan 21:34
Compare
Choose a tag to compare

Patch Changes

  • 87717fe: Change the getItemLabel type to a valid definition.

@makeswift/runtime@0.13.0

11 Jan 21:36
Compare
Choose a tag to compare

Minor Changes

  • 2e59c52: Starting from version 0.13.0, versioning is now enabled by default. With versioning, users can easily publish all changes to their website with just a few clicks. Published changes are saved so you can revert to previous versions if needed.

    Upgrade guide from version 0.12.x to 0.13.x:

    1. Update getPageSnapshot Parameters:

      a. Remove the preview parameter.

      b. Add the new siteVersion parameter.

        export async function getStaticProps(ctx) {
         const makeswift = new Makeswift(process.env.MAKESWIFT_SITE_API_KEY, { runtime })
      
         const snapshot = await makeswift.getPageSnapshot(path, {
      -    preview: ctx.preview,
      +    siteVersion: Makeswift.getSiteVersion(ctx.previewData),
           locale: ctx.locale,
         });
        }
    2. For users who have never used versioning:

      • No further actions are required.
    3. For users who have used versioning:

      a. Remove the siteVersion parameter from the Makeswift constructor.

        const makeswift = new Makeswift(process.env.MAKESWIFT_SITE_API_KEY, {
          runtime: runtime,
      -   siteVersion: Makeswift.getSiteVersion(ctx.previewData),
        });

      b. Remove the siteVersion parameter from the MakeswiftApiHandler.

         export default MakeswiftApiHandler(process.env.MAKESWIFT_SITE_API_KEY, {
      -    siteVersions: true,
         });

      c. If you use client.getPage, you need to also update the parameters:

         const page = await client.getPage(path, {
      -    preview,
      +    siteVersion: Makeswift.getSiteVersion(ctx.previewData),
           locale
         })

@makeswift/runtime@0.12.4

09 Jan 20:25
Compare
Choose a tag to compare

Patch Changes

  • 9c1941f: Added type field to the TextArea control
  • 37f16af: Added type field to the Number control
  • 8896a9b: Add type to Checkbox control
  • 8da8717: Refeactored the Checkbox and Color control to use the locally scoped key variable
  • dd7c1d1: Added type field to the TextInput control

@makeswift/runtime@0.12.3

04 Jan 23:52
Compare
Choose a tag to compare

Patch Changes

  • 6b9de46: Fix SocialLinks component options.
  • 583679b: Remove X and Slack from SocialLinkType.
  • 690d001: Add 'discord' to SocialLinkType.

@makeswift/runtime@0.12.2

04 Jan 21:52
Compare
Choose a tag to compare

Patch Changes

  • 2deee74: Add type and version to the Color control

@makeswift/runtime@0.12.1

20 Dec 14:49
Compare
Choose a tag to compare

Patch Changes

  • 61f8896: Fix Preview Mode proxy for localized pages in Next.js v14.

@makeswift/runtime@0.12.0

20 Dec 01:32
Compare
Choose a tag to compare

Minor Changes

  • cbcb4d6: Upgrade html-react-parser to v5.0.10.
  • e657aa9: Upgrade Framer Motion to v10.16.16.
  • 8f87717: Move @types/react and @types/react-dom to peer dependencies.

@makeswift/runtime@0.11.19

12 Dec 16:23
Compare
Choose a tag to compare

Patch Changes

  • 603ebd1: Add Next.js v14 to peer dependencies.

@makeswift/runtime@0.11.18

21 Nov 17:30
Compare
Choose a tag to compare

Patch Changes

  • e73bb49: In preview mode, pass any original cookies through.

@makeswift/runtime@0.11.17

10 Nov 21:38
Compare
Choose a tag to compare

Patch Changes

  • 15fcc61: Add RichText normalization that prevents nested paragraph elements from being possible.