Skip to content

Releases: vuestorefront/vue-storefront

@vue-storefront/[email protected]

02 Dec 12:38
2c34cdf
Compare
Choose a tag to compare

Patch Changes

  • [FIXED] Now parameters are properly sanitized and validated before being used in the middleware.

@vue-storefront/[email protected]

29 Nov 22:46
6b4ec92
Compare
Choose a tag to compare

Minor Changes

[CHANGED] some rules to loose up linting a bit (non-breaking). Changes include:

  • import/no-anonymous-default-export: got turned off, as it brings no real value, more about the rule here,
  • @typescript-eslint/no-use-before-define: functions option has been set as false to allow usage of hoisted functions. More details in the documentation.

@vue-storefront/[email protected]

26 Nov 10:46
9b8d334
Compare
Choose a tag to compare

Patch Changes

  • [FIX] Fixed type inference for function-based configurations when using the extend method. Now the methods object is correctly typed.
  • [FIXED] Fixed multiple files upload, now it works as expected.

@vue-storefront/[email protected]

26 Nov 12:03
d6d7bb6
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] Added /public directory to ignored destinations in config for nextjs.

@vue-storefront/[email protected]

25 Nov 20:37
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] Update typescript-eslint to version that supports the new TypeScript 5.7

@vue-storefront/[email protected]

25 Nov 20:38
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] Update typescript-eslint to version that supports the new TypeScript 5.7

@vue-storefront/[email protected]

23 Nov 16:35
f9fab52
Compare
Choose a tag to compare

Minor Changes

[ADDED] Add support for multipart/form-data requests in SDK

  • Added handling for multipart/form-data content type in the default HTTP client
  • Automatically handles File and Blob objects in request parameters
// Upload a file using multipart/form-data
await sdk.commerce.uploadFile(
  { file: new File(["content"], "test.txt", { type: "text/plain" }) },
  prepareConfig({
    headers: {
      "Content-Type": "multipart/form-data",
    },
  })
);

@vue-storefront/[email protected]

23 Nov 16:35
f9fab52
Compare
Choose a tag to compare

Minor Changes

[ADDED] Support for file uploads
Now you can upload files to the server with a multipart/form-data content type. Files are available in the req.files object.

// Example of an endpoint that handles file uploads
export const upload = (context) => {
  // Files are available in the `req.files` object
  const { files } = context.req;

  // Do something with files

  return Promise.resolve({
    status: 200,
    message: "ok",
  });
};

Please, read the Getting Started guide for more information about file uploads.

@vue-storefront/[email protected]

19 Nov 12:15
cfdfcb2
Compare
Choose a tag to compare

Patch Changes

[FIXED]: Additional configuration overrides type.

@vue-storefront/[email protected]

19 Nov 19:17
c787eb9
Compare
Choose a tag to compare

Patch Changes

Update to a typescript-eslint 8.10, which supports parsing Typescript 5.6, see https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.10.0