Releases: vuestorefront/vue-storefront
@vue-storefront/sdk@3.4.0
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/middleware@5.2.0
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/eslint-config@4.0.1
Patch Changes
[FIXED]: Additional configuration overrides type.
@vue-storefront/eslint-config-integrations@1.0.3
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/middleware@5.1.1
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/eslint-config@4.0.0
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/sdk@3.3.0
Minor Changes
- [CHANGED] Replace the default
console
logger from themiddlewareModule
with the@vue-storefront/logger
package.
@vue-storefront/multistore@4.1.2
Patch Changes
- Updated dependencies:
- @vue-storefront/middleware@5.1.0
@vue-storefront/middleware@5.1.0
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/logger@1.0.0
Major Changes
Initial release of the @vue-storefront/logger
package.