Skip to content

Releases: vuestorefront/vue-storefront

@vue-storefront/[email protected]

16 Jul 11:40
468047a
Compare
Choose a tag to compare

Minor Changes

  • [ADDED] Added factory function for the extension API. Previously the extension API was an object with a set of methods. Now it can be created using a factory function the same way as the base API.

Previously only object was allowed:

export const extension: ApiClientExtension = {
  name: "extension",
  extendApiMethods: {
    ...extendedMethods, //methods as an object
  },
};

Now you can either use an object or a factory function:

export const extension: ApiClientExtension = {
  name: "extension",
  // methods as a factory function with injected config object
  extendApiMethods: ({ config }) => {
    return createMyMethods(config);
  },
};

@vue-storefront/[email protected]

09 Jul 14:45
804b3c2
Compare
Choose a tag to compare

Patch Changes

  • [CHANGED] handle error for not available middleware

@vue-storefront/[email protected]

09 Jul 11:38
7cafcd4
Compare
Choose a tag to compare

Patch Changes

[FIXED]: Added getCurrencies unified endpoint to be fetch by HTTP GET. This change enable caching this endpoint on CDN.

@vue-storefront/[email protected]

09 Jul 11:38
7cafcd4
Compare
Choose a tag to compare

Patch Changes

[FIXED]: Added getCurrencies unified endpoint to be fetch by HTTP GET. This change enable caching this endpoint on CDN.

@vue-storefront/[email protected]

02 Jul 12:14
c5068dd
Compare
Choose a tag to compare

Minor Changes

  • [ADDED] Provided easy access to methods added by middleware extensions via the context.extendedApi property.
const extensionA = {
  name: 'extensionA',
  extendApiMethods: {
    methodA: async () => { ... }
  }
}

const extensionB = {
  name: 'extensionB',
  extendApiMethods: {
    methodB: async () => { ... }
  }
}

const extensionC = {
  name: 'extensionC',
  extendApiMethods: {
    methodC: async (context) => {
      context.extendedApi.methodA();
      context.extendedApi.extensionB.methodB();
    }
  }
}

@vue-storefront/[email protected]

21 Jun 10:26
e150079
Compare
Choose a tag to compare

Minor Changes

[ADDED]: Using the GIT_SHA environment variable as secondary input for cdnCacheBustingId option. You can still override this value through NUXT_PUBLIC_ALOKAI_MIDDLEWARE_CDN_CACHE_BUSTING_ID.
[ADDED] Value of Busting ID for CDN Cache. You can access it via config.cdnCacheBustingId.
[CHANGED] Deprecated middlewareUrl in defineSdkConfig context. Use config.middlewareUrl instead.
[CHANGED] Deprecated defaults in defineSdkConfig context. Use config.defaultMethodsRequestConfig instead.
[CHANGED] Depreacted vsf key in RuntimeConfig. Use alokai instead. You should change you environment variables. Example: Change from NUXT_PUBLIC_VSF_MIDDLEWARE_API_URL to NUXT_PUBLIC_ALOKAI_MIDDLEWARE_API_URL.
[CHANGED] Internal naming changed from VSF to Alokai. For e.g. we inject the SDK into the $alokai key in Nuxt App instead of $vsf as in previous versions.

@vue-storefront/[email protected]

21 Jun 10:26
e150079
Compare
Choose a tag to compare

Major Changes

[BREAKING CHANGE]: Now the SDK is separately initialized on the server and client. We recommend splitting configuration files for SDK Options and Configuration to re-use them between instances. Introduce the defineSdkConfig helper function. Changed the SdkProvider interface, taking only type and no arguments. The SDK instance is passed to the Provider in the place where it's used.

Minor Changes

[ADDED] Value of Busting ID for CDN Cache. You can access it via config.cdnCacheBustingId.
[CHANGED] Deprecated middlewareUrl in defineSdkConfig context. Use config.middlewareUrl instead.
[CHANGED] Deprecated defaults in defineSdkConfig context. Use config.defaultMethodsRequestConfig instead.

@vue-storefront/[email protected]

21 Jun 06:59
Compare
Choose a tag to compare
Pre-release

Minor Changes

[ADDED]: Using the GIT_SHA environment variable as secondary input for cdnCacheBustingId option. You can still override this value through NUXT_PUBLIC_ALOKAI_MIDDLEWARE_CDN_CACHE_BUSTING_ID.
[ADDED] Value of Busting ID for CDN Cache. You can access it via config.cdnCacheBustingId.
[CHANGED] Deprecated middlewareUrl in defineSdkConfig context. Use config.middlewareUrl instead.
[CHANGED] Deprecated defaults in defineSdkConfig context. Use config.defaultMethodsRequestConfig instead.
[CHANGED] Depreacted vsf key in RuntimeConfig. Use alokai instead. You should change you environment variables. Example: Change from NUXT_PUBLIC_VSF_MIDDLEWARE_API_URL to NUXT_PUBLIC_ALOKAI_MIDDLEWARE_API_URL.
[CHANGED] Internal naming changed from VSF to Alokai. For e.g. we inject the SDK into the $alokai key in Nuxt App instead of $vsf as in previous versions.

@vue-storefront/[email protected]

21 Jun 06:59
Compare
Choose a tag to compare
Pre-release

Major Changes

[BREAKING CHANGE]: Now the SDK is separately initialized on the server and client. We recommend splitting configuration files for SDK Options and Configuration to re-use them between instances. Introduce the defineSdkConfig helper function. Changed the SdkProvider interface, taking only type and no arguments. The SDK instance is passed to the Provider in the place where it's used.

Minor Changes

[ADDED] Value of Busting ID for CDN Cache. You can access it via config.cdnCacheBustingId.
[CHANGED] Deprecated middlewareUrl in defineSdkConfig context. Use config.middlewareUrl instead.
[CHANGED] Deprecated defaults in defineSdkConfig context. Use config.defaultMethodsRequestConfig instead.

@vue-storefront/[email protected]

17 Jun 08:20
cbf8202
Compare
Choose a tag to compare

Minor Changes

  • [CHANGED] cdnCacheBustingId is now optional