makeswift

The official Makeswift CLI

MIT License

Downloads
1.6K
Stars
103
Committers
16

Bot releases are visible (Hide)

makeswift - [email protected]

Published by joshuawootonn 9 months ago

Patch Changes

  • e30675e: Update the CLI to support Bun.

    Opening the CLI with bunx makeswift init now uses Bun for all commands.
    The --use-bun flag was also added to force the CLI to use Bun regardless of which package manager it was opened with.

  • 461698e: Update the CLI to support the --use-yarn flag. This flag makes the CLI use yarn regardless of which package manager it was opened with.

  • 0edd60e: Update the CLI to use the package manager it was opened with.

    For npx makeswift init, the CLI will use pnpm.
    For pnpm dlx makeswift init, the CLI will use pnpm.
    For yarn exec makeswift init, the CLI will use yarn.

makeswift - [email protected]

Published by github-actions[bot] 9 months ago

Minor Changes

  • 0c31138: Update the CLI for @makeswift/runtime v0.14.0.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 9 months ago

Minor Changes

  • 1d58edb: BREAKING: Replace Vite with tsup. The build script now transpiles source files instead of bundling them to preserve 'use client' directives for Next.js App Router support.

  • 32f9a1f: BREAKING: Move MakeswiftApiHandler from @makeswift/runtime/next to @makeswift/runtime/next/server.

    This change was necessary because there are server-only dependencies for the API handler and if these dependencies are bundled and run in the browser it can cause various issues. In our case, a transitive dependency of http-proxy (follow-redirects) was being included in browser bundles resulting in client-side exceptions in Safari and Firefox due to an Error.captureStackTrace call that was intended to run only on Node.js.

    To migrate change your pages/api/makeswift/[...makeswift].ts file:

    -import { MakeswiftApiHandler } from '@makeswift/runtime/next'
    +import { MakeswiftApiHandler } from '@makeswift/runtime/next/server'
    
    export default MakeswiftApiHandler(process.env.MAKESWIFT_SITE_API_KEY)
    
  • 9021859: Fix circular dependency with nextDynamicForwardRef.

  • f7968da: BREAKING: Remove deprecated functions from v0.2.0.

    See more info on the GitHub release.

Patch Changes

  • 7e3fa8d: Reaaranged files inside the react runtime folder.
  • 662985c: Remove Vitest in-source tests.
  • 73fecda: Replace SVG files with React components and remove SVGR development dependency.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • 87717fe: Change the getItemLabel type to a valid definition.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 10 months ago

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 - @makeswift/[email protected]

Published by github-actions[bot] 10 months ago

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 - @makeswift/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

  • 6b9de46: Fix SocialLinks component options.
  • 583679b: Remove X and Slack from SocialLinkType.
  • 690d001: Add 'discord' to SocialLinkType.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

  • 2deee74: Add type and version to the Color control
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

  • 61f8896: Fix Preview Mode proxy for localized pages in Next.js v14.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 10 months ago

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 - @makeswift/[email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

  • 603ebd1: Add Next.js v14 to peer dependencies.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

  • e73bb49: In preview mode, pass any original cookies through.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 12 months ago

Patch Changes

  • 15fcc61: Add RichText normalization that prevents nested paragraph elements from being possible.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] 12 months ago

Patch Changes

  • 8fed463: Prevent default click behavior in RichText when content is being edited.

    This enables you to edit Inline RichText embedded within links without triggering navigation.

makeswift - @makeswift/[email protected]

Published by github-actions[bot] 12 months ago

Patch Changes

  • 3f107f7: Correct the List control data's type field to be optional.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] almost 1 year ago

Patch Changes

  • cda6b51: Fix getPage method for site with versioning.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • a5719a1: Fix a bug /merge-translated-data. This bug deleted all data within the a Shape control rather than merging it.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 305a0ba: Add defaultValue to RichText control.
makeswift - @makeswift/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • e143b02: Update /merge-translatable-data to handle partially undefined composable controls.

  • 998b924: Optimize richtext used in /translatable-data and /merge-translatable-data for a simpler html output.

    This will make our Smartling integration Smartmatch for more situations.

  • 4bfb4ca: Add Slack & X icons to Social Links

makeswift - @makeswift/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • b8dd8fd: Added priority to Image and BackgroundImage