Major Changes
-
#871
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965 -
#1056
c729e70
Thanks @patzick! - Removed deprecations from the composables:createShopwareContext
is no longer accptingapiInstance
option. UseapiClient
instead.useCart
-getProductItemsSeoUrlsData
is removed. Use product related methods to fetch an item's URL instead.useCartItem
-getProductItemSeoUrlData
is removedapiInstance
is not exposingapiInstance
anymore. UseapiClient
instead.
-
#452
e2c225f
Thanks @patzick! - Created Nuxt layer forcomposables
andcms-base
. This way overriding any part of that is now possible. -
#978
479357c
Thanks @patzick! -useCustomerPassword
andloadCustomerAddresses
insideuseAddress
are now throwing api errors on invocation. Theerrors
object has been removed from the composable to make consistent error handling across the composables. This change is breaking and requires you to update your implementation of the composables.Example of error handling for resseting password:
const { resetPassword, // errors --> removed from the API } = useCustomerPassword(); const errors = ref([]); const invokeRecover = async (): Promise<void> => { try { errors.value = []; const emailSent = await resetPassword(formData.value); if (emailSent.success) { // here we know that email was sent } } catch (error) { console.error("[AccountRecoverPassword]", error); if (error instanceof ApiClientError) { errors.value = error.details?.errors || []; } } };
Minor Changes
-
#991
38a3853
Thanks @patzick! - Few changes in composables API to access data returned from the backend:useAddress
-loadCustomerAddresses
returns addresses nowuseCart
-removeItem
returns updated cartuseCartItem
-removeItem
returns updated cart, similar touseCart
fetchCountries
- returns countries with the responseuseNewsletter
-getNewsletterStatus
returns full response from the APIuseOrderDetails
-loadOrderDetails
returns order details now,cancel
returns order state,changePaymentMethod
returns success response infochangePaymentMethod
-changePaymentMethod
returns success response info nowuseProductReviews
-loadProductReviews
returns reviews response nowuseSalutations
-fetchSalutations
returns salutations response nowuseUser
-refreshUser
returns customer data.logout
,loadCountry
andloadSalutation
returns data from the API
-
#840
823aa9b
Thanks @mdanilowicz! - ReturncomponentNameToResolve
in resolveCmsComponent function -
#529
4dce006
Thanks @mdanilowicz! - BREAKING: Use product ID instead of whole product object inuseProductWishlist
composable -
#535
bebae42
Thanks @mdanilowicz! - Fix country ID in session context
AddsalesChannelCountryId
that represent sales channel default city ID -
#986
013a1d6
Thanks @mdanilowicz! - Added tests to achieve coverage > 80% -
#933
04ac2ad
Thanks @mdanilowicz! - - AddedcheckPromotion
attribute to theorderAssociations
- Added
statusTechnicalName
property to theuseOrderDetails
composable - Added
getPaymentMethods
method that allows change payment for existed order - Added
stateMachineState
association for loading orders
- Added
-
#1027
05ca5b6
Thanks @mdanilowicz! - AddeduseCategorySearch
anduseCmsElementProductBox
tests -
#703
7a3a92c
Thanks @mdanilowicz! - Add B2b quote management composable
Patch Changes
-
#569
f1b2a30
Thanks @itscark! - Fix only available shipping methods -
#880
2ade07a
Thanks @mdanilowicz! - Adjust types inuseProductSearch
composable -
#915
fc262dd
Thanks @mdanilowicz! - Handle using categoryId as a alternative for category context -
#1042
53e7177
Thanks @patzick! - Completely removed dependency to the deprecated@shopware-pwa/types
package -
#873
99ad5e9
Thanks @mkucmus! - Add isStackable and isDigital computed properties -
#705
8f0b468
Thanks @mdanilowicz! - Add missing addressId to theupdateCustomerAddress
method -
#524
6b54268
Thanks @BrocksiNet! - Added new composables (previously internal helpers of thecms-base
package):useCmsTranslations
,useUrlResolver
,useUrlResolver
-
Updated dependencies [
2343012
,1566f7a
,782ef4d
,9643e56
,1583a7a
,97d2859
,864616f
,d60d062
,a92941e
,487d991
,c729e70
,89a97a4
,c729e70
,864616f
,97b5949
,6664aa2
,6b54268
]:- @shopware/[email protected]
- @shopware-pwa/[email protected]