Releases: makeswift/makeswift
Releases · makeswift/makeswift
@makeswift/runtime@0.13.1
Patch Changes
- 87717fe: Change the
getItemLabel
type to a valid definition.
@makeswift/runtime@0.13.0
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
to0.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:
- No further actions are required.
-
For users who have used versioning:
a. Remove the
siteVersion
parameter from theMakeswift
constructor.const makeswift = new Makeswift(process.env.MAKESWIFT_SITE_API_KEY, { runtime: runtime, - siteVersion: Makeswift.getSiteVersion(ctx.previewData), });
b. Remove the
siteVersion
parameter from theMakeswiftApiHandler
.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
@makeswift/runtime@0.12.3
@makeswift/runtime@0.12.2
Patch Changes
- 2deee74: Add type and version to the Color control
@makeswift/runtime@0.12.1
Patch Changes
- 61f8896: Fix Preview Mode proxy for localized pages in Next.js v14.
@makeswift/runtime@0.12.0
@makeswift/runtime@0.11.19
Patch Changes
- 603ebd1: Add Next.js v14 to peer dependencies.
@makeswift/runtime@0.11.18
Patch Changes
- e73bb49: In preview mode, pass any original cookies through.
@makeswift/runtime@0.11.17
Patch Changes
- 15fcc61: Add
RichText
normalization that prevents nested paragraph elements from being possible.