Change Log
4.4.0
Minor Changes
FIXED: To resolve images coming from the Amplience API and display unpublished from the Amplience Hub, it's necessary to use the defaultHost
value instead of the standard CDN host.
4.3.0
Minor Changes
- CHANGED
getPage
will now try to first find the page by exact path. It will use the resolving logic specified inresolvePages
only when exact page doesn't exist.
4.2.0
Minor Changes
- CHANGED Upgraded the path-to-regexp package to version
8.0.0
. Note that page path patterns must now follow a different convention. For more details, please refer to the Release Notes forpath-to-regexp@8.0.0
.
4.1.4
Patch Changes
- Updated dependencies:
- @vsf-enterprise/cms-components-utils@2.0.0
4.1.3
Patch Changes
- REMOVED
normalizeMetadata
normalizer. Metadata can be added by overriding thenormalizeContentItem
normalizer.
4.1.2
Patch Changes
- FIXED Fetching content in unified extension for Amplience Visualization.
4.1.1
Patch Changes
- CHANGED
getPage
method requires aunified
configuration withresolvePages
andresolveFallbackPage
defined. - FIXED RegExp path matching in
resolvePages
.
4.1.0
Minor Changes
- ADDED Unified extension which allows fetching data from Amplience and extracting components. The extension is available at the
/unified
namespace and adds two methods: getPage
- Fetches the page data from Amplience.normalizePage
- Normalizes the raw page data coming from Amplience.
To use the extension on the Storefront side:
- Export extension types in the
storefront-middleware/types.ts
file:
+ export type { UnifiedEndpoints as UnifiedCmsEndpoints } from '@vsf-enterprise/amplience-api';
- In the SDK config, add a new
middlewareModule
:
+ import type { UnifiedCmsEndpoints } from 'storefront-middleware/types';
+ unifiedCms: buildModule(middlewareModule<UnifiedCmsEndpoints>, {
+ apiUrl: `${config.middlewareUrl}/amplience/unified`,
+ defaultRequestConfig: {
+ headers: getRequestHeaders(),
+ },
+ }),
// ...
- In your page component, use the
getPage
method to fetch the page data:
const page = await sdk.unifiedCms.getPage({
path: "/",
locale: "en-GB",
});
All components are extracted, so you don't need to use the extractComponent
utility from amplienceModule
anymore.
4.0.0
Major Changes
- CHANGED Improved methods documentation present in the
Endpoints
interface. - REMOVED The package no longer exports the
AmplienceMethods
interface. Use theEndpoints
interface instead. - REMOVED The package no longer exports the
ProxiedEndpoints
interface. Use theApiMethods
interface instead. - REMOVED The package no longer exports the
ContextualizedEndpoints
interface. Use theApiMethods
interface instead.
3.0.0
Major Changes
- BREAKING Updated
@vue-storefront/middleware
version to4.1.0
. Make sure this version is used in your project.
{
...
"dependencies": {
- "@vue-storefront/middleware": "3.x.x",
+ "@vue-storefront/middleware": "4.1.0"
}
}
2.0.1
Patch Changes
Update axios to ^0.28.0 to mitigate security vulnerability CVE-2023-45857
2.0.0
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.
1.0.0
Major Changes
- Initial release
1.0.0-beta.0
Major Changes
- Initial release