Skip to content

Releases: vuestorefront/vue-storefront

@vue-storefront/sdk@3.4.0

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/middleware@5.2.0

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/eslint-config@4.0.1

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

Patch Changes

[FIXED]: Additional configuration overrides type.

@vue-storefront/eslint-config-integrations@1.0.3

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

@vue-storefront/middleware@5.1.1

14 Nov 11:58
86c3ad5
Compare
Choose a tag to compare

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 to verbosity in the LoggerConfig interface.

@vue-storefront/eslint-config@4.0.0

12 Nov 06:54
01524a1
Compare
Choose a tag to compare

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

08 Nov 07:27
c1ed26c
Compare
Choose a tag to compare

Minor Changes

  • [CHANGED] Replace the default console logger from the middlewareModule with the @vue-storefront/logger package.

@vue-storefront/multistore@4.1.2

08 Nov 07:27
c1ed26c
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies:
    • @vue-storefront/middleware@5.1.0

@vue-storefront/middleware@5.1.0

08 Nov 07:26
c1ed26c
Compare
Choose a tag to compare

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

08 Nov 07:26
c1ed26c
Compare
Choose a tag to compare

Major Changes

Initial release of the @vue-storefront/logger package.