Releases: vuestorefront/vue-storefront
Releases · vuestorefront/vue-storefront
@vue-storefront/[email protected]
Minor Changes
- [CHANGED] Middleware extension hooks and the onCreate function can now be asynchronous. Examples:
// 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/[email protected]
Patch Changes
- [FIXED] Next strict configuration error
@vue-storefront/[email protected]
Patch Changes
- [FIXED] - Eslint plugin installation error
@vue-storefront/[email protected]
Patch Changes
Fix typo in coverageReporters
@vue-storefront/[email protected]
Minor Changes
[ADDED] Eslint rules for Next.js v14
@vue-storefront/[email protected]
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/[email protected]
Patch Changes
Don't output coverage results to stdout
@vue-storefront/[email protected]
Patch Changes
Update typescript-eslint to version that supports latest versions of TypeScript (^5.4.0)
@vue-storefront/[email protected]
Major Changes
- [CHANGED] Changed minimum Node version from 16 to 18. The condition that was forcing the Node version to be lower than 19 is also removed.
@vue-storefront/[email protected]
Major Changes
- [CHANGED] Changed minimum Node version from 16 to 18. The condition that was forcing the Node version to be lower than 19 is also removed.