Skip to content

@vue-storefront/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 13 May 11:37
· 127 commits to main since this release
f3d7272

Major Changes

  • [ADDED] CDN support for the middlewareModule.
    Now, the module's configuration includes cdnCacheBustingId property, which allows you to set a unique identifier for the CDN cache busting.
    The property is obligatory and must be a string.
export const { getSdk } = createSdk(
  options,
  ({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
    example: buildModule(middlewareModule<Endpoints>, {
      apiUrl: `${middlewareUrl}/test_integration`,
+      cdnCacheBustingId: process.env.CDN_CACHE_BUSTING_ID,
      defaultRequestConfig: {
        headers: getRequestHeaders(),
      },
    }),
  })
);

Patch Changes

  • [FIXED] support for GET requests in default HTTP client, which was throwing an error "SDKError: Request with GET/HEAD method cannot have body". Now, the client can handle GET requests properly.