@vue-storefront/middleware@4.2.0
github-actions
released this
02 Jul 12:14
·
114 commits
to main
since this release
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();
}
}
}