Releases: vuestorefront/vue-storefront
@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
@vue-storefront/[email protected]
Patch Changes
** [CHANGED] **
- added more verbose message with a troubleshooting guide in case that the
getLogger
method was not able to retrieve the logger instance.
** [FIXED] **
- changed
level
property toverbosity
in theLoggerConfig
interface.
@vue-storefront/[email protected]
Major Changes
[BREAKING]: The @vue-storefront/eslint-config
is migrated to support ESLint v9 and FlatConfig. Please upgrade following way:
Step 1: Update Dependencies
First, update your project dependencies to use the latest versions of ESLint and Prettier.
yarn add -D eslint@^9 prettier@^3 @vue-storefront/eslint-config@^4
Step 2: Update ESLint Configuration
Replace your existing ESLint configuration with the new configuration format. Below is a basic example from the README.md
:
import { ecma, typescript, style, concat } from "@vue-storefront/eslint-config";
export default concat(
ecma(),
typescript(),
style()
// Here it's a place for you custom configuration
);
Read more about FlatConfig in ESLint docs.
@vue-storefront/[email protected]
Minor Changes
- [CHANGED] Replace the default
console
logger from themiddlewareModule
with the@vue-storefront/logger
package.
@vue-storefront/[email protected]
Patch Changes
- Updated dependencies:
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
Minor Changes
- [ADDED] The middleware application now offers a robust logger instance accessible across various parts of the system, including extensions, integrations, hooks, and API methods. This provides greater flexibility for logging critical events and errors throughout the application lifecycle. For more information, see the Logger guide.
@vue-storefront/[email protected]
Major Changes
Initial release of the @vue-storefront/logger
package.