Bot releases are visible (Hide)
Published by joshuawootonn 9 months ago
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
.
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
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.
Published by github-actions[bot] 9 months ago
getItemLabel
type to a valid definition.Published by github-actions[bot] 10 months ago
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
:
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,
});
}
For users who have never used versioning:
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
})
Published by github-actions[bot] 10 months ago
type
field to the TextArea
controltype
field to the Number
controltype
to Checkbox controlCheckbox
and Color
control to use the locally scoped key variabletype
field to the TextInput
controlPublished by github-actions[bot] 10 months ago
SocialLinkType
.'discord'
to SocialLinkType
.Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
html-react-parser
to v5.0.10.@types/react
and @types/react-dom
to peer dependencies.Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 12 months ago
RichText
normalization that prevents nested paragraph elements from being possible.Published by github-actions[bot] 12 months ago
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.
Published by github-actions[bot] 12 months ago
List
control data's type
field to be optional.Published by github-actions[bot] almost 1 year ago
getPage
method for site with versioning.Published by github-actions[bot] about 1 year ago
/merge-translated-data
. This bug deleted all data within the a Shape
control rather than merging it.Published by github-actions[bot] about 1 year ago
defaultValue
to RichText
control.Published by github-actions[bot] about 1 year ago
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
Published by github-actions[bot] about 1 year ago