Skip to content

Releases: vuestorefront/vue-storefront

@vue-storefront/jest-config@0.0.5

24 Apr 13:35
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] Do not run TS compilation in tests to improve test suite run times

@vue-storefront/rollup-config@0.0.8

Patch Changes

  • [CHANGED] Always clear rollup-plugin-typescript2 cache when building. If you built once with an error, you'd always get an error even if you fixed the underlying code issue that caused the build to fail. This could be fixed by removing node_modules/.cache, but it's better to never create the cache at all.

@vue-storefront/middleware@3.10.0

11 Apr 08:44
de0eed0
Compare
Choose a tag to compare

Minor Changes

  • [ADDED] Options as a second parameter of createServer. This allows you to pass additional options to cors, body-parser and cookie-parser express middlewares.
import { createServer } from "@vue-storefront/middleware";
import config from "../middleware.config";

createServer(config, {
  cors: {
    origin: "http://localhost:3000",
    credentials: true,
  },
  bodyParser: {
    limit: "50mb",
  },
  cookieParser: {
    secret: "secret",
  },
});
  • [ADDED] http://localhost:4000 to the default cors origin.

@vue-storefront/eslint-config@2.0.0

11 Apr 08:44
de0eed0
Compare
Choose a tag to compare

Patch Changes

  • [REMOVED] Plugin "eslint-plugin-no-unsanitized" was removed due to a license that was noncompliant with our Open Source Guidelines

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

11 Apr 08:44
de0eed0
Compare
Choose a tag to compare

Patch Changes

Turn off @typescript-eslint/no-empty-interface rule

@vue-storefront/sdk@1.4.4

22 Mar 10:02
79c2bc0
Compare
Choose a tag to compare

Patch Changes

  • [FIXED] type issue with obligatory generic type argument for Extension interface. Now, it can be used without any type arg.
  • [FIXED] BaseConfig extensibility. Now, it allows to add additional custom properties.

@vue-storefront/sdk@1.4.3

19 Mar 10:57
d873f33
Compare
Choose a tag to compare

Releases

@vue-storefront/sdk@1.4.3

Patch Changes

  • [FIXED] issue with type inference. Previously, types were not infered properly when there were no extension declared. Now it has been fixed.

@vue-storefront/sdk@1.4.2

19 Mar 10:57
4bd0c13
Compare
Choose a tag to compare

Releases

@vue-storefront/sdk@1.4.2

Patch Changes

  • [FIXED] handling void response in middlewareModule. Previously an invalid-json error was thrown, now undefined will be returned.

@vue-storefront/sdk@1.4.1

15 Mar 14:43
eb87255
Compare
Choose a tag to compare

Releases

@vue-storefront/sdk@1.4.1

Patch Changes

  • [FIXED] error handling for default HTTP client. Default HTTP Client was not throwing an error on each failed request, now it does.

@vue-storefront/next@1.1.0, @vue-storefront/nuxt@3.1.0

12 Mar 11:03
27826fc
Compare
Choose a tag to compare

Releases

@vue-storefront/next@1.1.0

Minor changes

  • [ADDED] middlewareModule to createSdk params.
- import { UnifiedApiExtension } from "storefront-middleware/types"
+ import { UnifiedEndpoints } from "storefront-middleware/types"

export const { getSdk } = createSdk(
  options,
-  ({ buildModule, middlewareUrl, getRequestHeaders }) => ({
-    commerce: buildModule(unifiedModule<UnifiedApiExtension>, {
-      apiUrl: `${middlewareUrl}/commerce`,
-      requestOptions: {
-        headers: getRequestHeaders,
+  ({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
+    commerce: buildModule(middlewareModule<UnifiedEndpoints>, {
+      apiUrl: `${middlewareUrl}/commerce`,
+      defaultRequestConfig: {
+        headers: getRequestHeaders(),
      },
    }),
  })
);

@vue-storefront/nuxt@3.1.0

Minor changes

  • [ADDED] middlewareModule to defineSdkConfig params.
- import { UnifiedApiExtension } from "storefront-middleware/types"
+ import { UnifiedEndpoints } from "storefront-middleware/types"

export default defineSdkConfig(
-  ({ buildModule, middlewareUrl, getRequestHeaders }) => ({
-    commerce: buildModule(unifiedModule<UnifiedApiExtension>, {
-      apiUrl: `${middlewareUrl}/commerce`,
-      requestOptions: { headers: getRequestHeaders },
+  ({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
+      commerce: buildModule(middlewareModule<UnifiedEndpoints>, {
+        apiUrl: `${middlewareUrl}/commerce`,
+        defaultRequestConfig: { headers: getRequestHeaders() },
      }),
  })
);
  • [CHANGED] deprecate getCookieHeader, use getRequestHeaders instead
export default defineSdkConfig(
-  ({ buildModule, middlewareModule, middlewareUrl, getCookieHeader }) => ({
+  ({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
      commerce: buildModule(middlewareModule<UnifiedEndpoints>, {
        apiUrl: `${middlewareUrl}/commerce`,
-        defaultRequestConfig: { headers: getCookieHeader() }, // Only cookie header is included.
+        defaultRequestConfig: { headers: getRequestHeaders() }, // All headers are included.
      }),
  })
);