Releases: vuestorefront/vue-storefront
Releases · vuestorefront/vue-storefront
@vue-storefront/[email protected]
Patch Changes
- [FIXED] Now parameters are properly sanitized and validated before being used in the middleware.
@vue-storefront/[email protected]
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 asfalse
to allow usage of hoisted functions. More details in the documentation.
@vue-storefront/[email protected]
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]
Patch Changes
- [CHANGED] Added
/public
directory to ignored destinations in config for nextjs.
@vue-storefront/[email protected]
Patch Changes
- [CHANGED] Update typescript-eslint to version that supports the new TypeScript 5.7
@vue-storefront/[email protected]
Patch Changes
- [CHANGED] Update typescript-eslint to version that supports the new TypeScript 5.7
@vue-storefront/[email protected]
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]
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]
Patch Changes
[FIXED]: Additional configuration overrides type.
@vue-storefront/[email protected]
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