Skip to content

Releases: vuestorefront/vue-storefront

@vue-storefront/eslint-config@3.1.3

12 Jun 11:15
8700ddc
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] Filename casing lint rule in @vue-storefront/eslint-config/next. From now kebab-case is preferred for filenames.

@vue-storefront/multistore@4.1.0

11 Jun 09:15
9b728bc
Compare
Choose a tag to compare

Minor Changes

  • [ADDED] Support for asynchronous fetchConfiguration() and cacheManagerFactory's get() / set() methods.
import { createMultistoreExtension } from "@vue-storefront/multistore";

export const multistoreExtension = createMultistoreExtension({
- fetchConfiguration: () => ({
+ fetchConfiguration: async () => ({ ... }),
  mergeConfigurations: () => ({ ... }),
  cacheManagerFactory: () => ({
-   get(key) { ... },
+   async get(key) { ... },
-   set(key, value) { ... },
+   async set(key, value) { ... },
  }),
});

@vue-storefront/nuxt@3.1.1

10 Jun 10:43
e9add75
Compare
Choose a tag to compare

Patch Changes

  • [FIXED] Using the runtime config is now working properly. You can use NUXT_PUBLIC_VSF_MIDDLEWARE_API_URL, NUXT_PUBLIC_VSF_MIDDLEWARE_SSR_API_URL and NUXT_PUBLIC_VSF_MULTISTORE_ENABLED environments variables to define config in the runtime.

@vue-storefront/middleware@4.1.0

06 Jun 14:18
2a3a774
Compare
Choose a tag to compare

Minor Changes

// middleware.config.ts
const middlewareExtension = {
  name: "example-extension",
  hooks: () => ({
    beforeCreate: async ({ configuration }) => Promise.resolve(configuration),
    afterCreate: async ({ configuration }) => Promise.resolve(configuration),
    beforeCall: async ({ args }) => Promise.resolve(args),
    afterCall: async ({ response }) => Promise.resolve(response),
  }),
};
// index.server.ts
import { apiClientFactory } from "@vue-storefront/middleware";

const { createApiClient } = apiClientFactory({
  onCreate: async (config) =>
    Promise.resolve({
      config,
      client: {},
    }),
  api: {},
});

export { createApiClient };

@vue-storefront/eslint-config@3.1.2

06 Jun 14:18
2a3a774
Compare
Choose a tag to compare

Patch Changes

  • [FIXED] Next strict configuration error

@vue-storefront/eslint-config@3.1.1

06 Jun 06:42
48f8ad2
Compare
Choose a tag to compare

Patch Changes

  • [FIXED] - Eslint plugin installation error

@vue-storefront/jest-config@1.0.2

05 Jun 15:54
660f0df
Compare
Choose a tag to compare

Patch Changes

Fix typo in coverageReporters

@vue-storefront/eslint-config@3.1.0

05 Jun 12:36
5acbfae
Compare
Choose a tag to compare

Minor Changes

[ADDED] Eslint rules for Next.js v14

@vue-storefront/middleware@4.0.1

22 May 12:46
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] Fix typo in default error handler
    Now the default error message for error responses bearing a 4xx status code will be
    "Request failed with status code ${status}" instead of "Request faileds [...]".

@vue-storefront/jest-config@1.0.1

22 May 12:46
Compare
Choose a tag to compare

Patch Changes

Don't output coverage results to stdout