> ## Documentation Index
> Fetch the complete documentation index at: https://makeswift-docs-branch.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrading to 0.13.0

If you haven't upgraded to `0.9.0` please read the [upgrading guide](/developer/upgrading/0.9.0).

### Update getPageSnapshot Parameters

```js theme={null}
  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 are using versioning

<Steps>
  <Step title="Remove the siteVersion parameter from the Makeswift constructor">
    ```js theme={null}
      const makeswift = new Makeswift(process.env.MAKESWIFT_SITE_API_KEY, {
        runtime: runtime,
    --  siteVersion: Makeswift.getSiteVersion(ctx.previewData),
      });
    ```
  </Step>

  <Step title="Remove the siteVersion parameter from the MakeswiftApiHandler">
    ```js theme={null}
    export default MakeswiftApiHandler(process.env.MAKESWIFT_SITE_API_KEY, {
    --  siteVersions: true,
    });
    ```
  </Step>
</Steps>

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

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

Here is the link to the [official release notes](https://github.com/makeswift/makeswift/releases/tag/%40makeswift%2Fruntime%400.13.0).
