Releases: vuestorefront/vue-storefront
Releases · vuestorefront/vue-storefront
@vue-storefront/[email protected]
Patch Changes
- Updated dependencies:
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
Major Changes
- [CHANGED][BREAKING] Changed return type of
createServer()
fromExpress
toServer
(from built-innode:http
package). Both of those types' interfaces have the.listen()
method with the same shape. In some older templates for starting the middleware (middleware.js
in your repo) you come across:
async function runMiddleware(app: Express) {
If you're using that older template, please change the Express
type to Server
:
+ import { Server } from "node:http"
+ async function runMiddleware(app: Server) {
- async function runMiddleware(app: Express) {
- [ADDED] New GET /readyz endpoint for middleware for using with Kubernetes readiness probes. Please see https://docs.alokai.com/middleware/guides/readiness-probes for more information
@vue-storefront/[email protected]
Patch Changes
- [CHANGED] the package
@vue-storefront/sdk
is now a peer dependency instead of dependency
@vue-storefront/[email protected]
Patch Changes
- [CHANGED] the package
@vue-storefront/sdk
is now a peer dependency instead of dependency
@vue-storefront/[email protected]
Patch Changes
[FIXED] Removed backquote from defineSdkConfig.template
@vue-storefront/[email protected]
Major Changes
- [BREAKING]: Added functionality that automatically configures the proper URLs for SSR & SPA modes when mutlistore mode is enabled. Left your environment variables like in normal mode, just set
NUXT_PUBLIC_ALOKAI_MULTISTORE_ENABLED
totrue
.
@vue-storefront/[email protected]
Minor Changes
- [CHANGE]: Added the
resolveSdkOptions
helper that automatically setup proper SSR & SPA URLs for middleware when multistore option is enabled. To use it, change your SDK configuration:
-import type { CreateSdkOptions } from '@vue-storefront/next';
+import { resolveSdkOptions } from '@vue-storefront/next';
-const options: CreateSdkOptions = {
+const options = resolveSdkOptions({
middleware: {
apiUrl,
cdnCacheBustingId,
ssrApiUrl,
},
multistore: {
enabled: isMultiStoreEnabled,
},
});
@vue-storefront/[email protected]
Patch Changes
- [CHANGED] response type of HTTPClient to
Promise<any>
. Previously it wasPromise<true> | SdkHttpError
, which was making it impossible the use of anaxios
with themiddlewareModule
. Now, it more flexible and can be used with any HTTP client.
@vue-storefront/[email protected]
Patch Changes
[FIXED] Content-Length
header will no longer be appended to requests if its value is "0" - such situation caused Next.js server to crash
@vue-storefront/[email protected]
Patch Changes
- Updated dependencies:
- @vue-storefront/[email protected]