Releases: shopware/frontends
@shopware-pwa/[email protected]
Patch Changes
- Updated dependencies [
19f2800
,1954022
,19f2800
]:- @shopware/[email protected]
- @shopware-pwa/[email protected]
@shopware-pwa/[email protected]
Patch Changes
- Updated dependencies []:
- @shopware-pwa/[email protected]
@shopware/[email protected]
Major Changes
- #871
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965
Minor Changes
-
#534
6170dca
Thanks @patzick! -loadSchema
command added by splittinggenerate
command -
#534
6170dca
Thanks @patzick! - Sortingpaths
in the same order by api patchs -
#1017
12c8153
Thanks @patzick! - New commandvalidateJson
to check correctness of your OpenAPI json file. -
#534
6170dca
Thanks @patzick! - Commandgenerate
has been splitted and doing only transformation from json to d.ts file -
#564
93a6048
Thanks @patzick! - AddedapiType
option inloadSchema
command. WithSHOPWARE_ADMIN_USERNAME
andSHOPWARE_ADMIN_PASSWORD
env variables we can now authorize Admin API schema.example:
# load schema from store API pnpx @shopware/api-gen loadSchema --apiType=store --filename=storeApiSchema.json # load schema from admin API pnpx @shopware/api-gen loadSchema --apiType=admin --filename=adminApiSchema.json
-
#1032
0b6133e
Thanks @patzick! - Possibility to add partial patches to the JSON schema. -
#903
18d8528
Thanks @mdanilowicz! - Add Blob type support -
#534
6170dca
Thanks @patzick! - Schemaoperations
is now a generic type to help with overriding types -
#1032
0b6133e
Thanks @patzick! - Added support for JSON5 config files. Now you can use comments in your config files and JSON schema.
Patch Changes
-
#534
6170dca
Thanks @patzick! - GeneratedGenericRecord
is more open to avoid type problems -
#1032
0b6133e
Thanks @patzick! - Fixed optional body parameters, now it's processed correctly. The body is required by default (if defined). -
#928
bada1cd
Thanks @mdanilowicz! - Skip GenericRecord for the object with additionalProperties -
Updated dependencies [
2343012
,1566f7a
,782ef4d
,9643e56
,1583a7a
,97d2859
,d60d062
,c729e70
,89a97a4
,864616f
]:- @shopware/[email protected]
@shopware/[email protected]
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 code:onContextChanged
function insidecreateAPIClient
method. UseapiClient.hook("onContextChanged", ...)
instead.apiType
flag from thecreateAPIClient
. Use separate methods to create store and admin api clientsonAuthChange
from thecreateAdminAPIClient
. UseadminApiClient.hook('onAuthChange',...)
instead
Minor Changes
-
#1039
2343012
Thanks @patzick! - We're exposingfetchOptions
inside params ofinvoke
method. You can now useofetch
features liketimeout
orsignal
with AbortControllerExample for the AbortController:
const controller = new AbortController(); const request = client.invoke("readContext get /context", { fetchOptions: { signal: controller.signal, }, }); controller.abort(); // At this point client will throw an error with the information, that the request has been cancelled
-
#560
9643e56
Thanks @patzick! - [createAdminAPIClient] ability to pass optional fieldcredentials
to be used as authentication method before invoking any Admin API endpoint. -
#639
d60d062
Thanks @patzick! - Management of defaultHeaders. You can now set them on apiClient init or runtime.const apiClient = createApiClient({ ..., defaultHeaders: { 'sw-language-id': 'my-id', }, }); console.log('Debug default headers:', apiClient.defaultHeaders); // Change header runtime apiClient.defaultHeaders['sw-language-id'] = 'my-new-id'; // Remove header runtime apiClient.defaultHeaders['sw-language-id'] = ""; // Change multiple headers runtime apiClient.defaultHeaders.apply({ 'sw-language-id': 'another-id', 'sw-currency-id': 'currency-id', })
-
#857
864616f
Thanks @mdanilowicz! - Add error and success callbacks
Patch Changes
-
#787
782ef4d
Thanks @mkucmus! - Adjust test snapshot for Shopware v6.6 response -
#567
1583a7a
Thanks @patzick! - Export default API types to be compatible with thebundler
mode resolution intsconfig
-
#557
97d2859
Thanks @patzick! - AddedAccept: application/json
default header to get only JSON responses.
@shopware-pwa/[email protected]
Major Changes
- #871
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965
Minor Changes
- #463
543a8e1
Thanks @mdanilowicz! - Add Meta type for the global Error type
Patch Changes
@shopware-pwa/[email protected]
Major Changes
-
#871
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965 -
#452
e2c225f
Thanks @patzick! - Created Nuxt layer forcomposables
andcms-base
. This way overriding any part of that is now possible.
Patch Changes
-
#478
df96fd0
Thanks @patzick! - Dependency changes:- Changed dependency @nuxt/kit from ^3.8.1 to ^3.8.2
-
#742
aa97efe
Thanks @mkucmus! - Use new format of module config & deprecation warning for old config format -
#664
af2bc19
Thanks @rebewp! - Changed usage of env variables to be able to adjust their naming to only include shopware once.
After merging, ENV Variables with names including SHOPWARE_SHOPWARE still work. -
Updated dependencies [
38a3853
,2343012
,f1b2a30
,2ade07a
,fc262dd
,1566f7a
,823aa9b
,4dce006
,c729e70
,bebae42
,782ef4d
,9643e56
,1583a7a
,97d2859
,864616f
,d60d062
,a92941e
,487d991
,013a1d6
,53e7177
,99ad5e9
,c729e70
,04ac2ad
,e2c225f
,89a97a4
,c729e70
,864616f
,8f0b468
,97b5949
,05ca5b6
,7a3a92c
,6664aa2
,479357c
,6b54268
,6b54268
]:- @shopware-pwa/[email protected]
- @shopware/[email protected]
- @shopware-pwa/[email protected]
@shopware-pwa/[email protected]
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 package:getProductThumbnailUrl
is removed. UsegetSmallestThumbnailUrl
instead.- internal method
_debounce
is removed. - internal method
_parseUrlQuery
is removed.
Minor Changes
-
#857
864616f
Thanks @mdanilowicz! - Add isMaintenanceMode to check if backend is available -
#508
a92941e
Thanks @mdanilowicz! - AddaccessGranted
property for the getMedia helper -
#477
487d991
Thanks @mdanilowicz! - Remove "@shopware-pwa/types" dependency and replace it with generic types -
#582
97b5949
Thanks @mdanilowicz! - Export css classes as a separate file
Patch Changes
- #524
6b54268
Thanks @BrocksiNet! - addedbuildUrlPrefix
, which perviously was internal helper of the@shopware/cms-base
package
@shopware-pwa/[email protected]
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]
@shopware-pwa/[email protected]
Major Changes
-
#871
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965 -
#452
e2c225f
Thanks @patzick! - Created Nuxt layer forcomposables
andcms-base
. This way overriding any part of that is now possible.
Minor Changes
-
#524
6b54268
Thanks @BrocksiNet! - Moved cms internal helper functions:buildUrlPrefix
- moved to helpers package, seepackages/helpers/src/cms/buildUrlPrefix.ts
.getCmsTranslations
- move to composables asuseCmsTranslations
getUrlPrefix
- move to composables as method inuseUrlResolver
resolveUrl
- move to composables as method inuseUrlResolver
-
#517
f7797e8
Thanks @BrocksiNet! - Change tailwindcss colors definition. Allows easy overwrite in demo-store template. -
#1067
da77b65
Thanks @mdanilowicz! - Changed slider element to use a static value -
#794
ead7415
Thanks @mdanilowicz! - Add media 3D models support
Patch Changes
-
#478
df96fd0
Thanks @patzick! - Dependency changes:- Changed dependency @nuxt/kit from ^3.8.1 to ^3.8.2
- Changed dependency vue from ^3.3.8 to ^3.3.9
-
#798
801420a
Thanks @mdanilowicz! - Blocking double click on the wishlist button -
#897
033867b
Thanks @mdanilowicz! - Make injected translations the most significant priority source -
#609
3c40741
Thanks @mkucmus! - Use setTimeout in SwSlider once component is mounted -
#1042
53e7177
Thanks @patzick! - Completely removed dependency to the deprecated@shopware-pwa/types
package -
#805
815acda
Thanks @BrocksiNet! - Remove ProductStatic and all related components, fix ReviewForm in demo-store -
#542
f8266a0
Thanks @patzick! - Potential problems with CmsElementText rendering, when Node object is incorrect -
#924
f6b194e
Thanks @mdanilowicz! - Moved the svg 3d media placeholder to the vue component -
Updated dependencies [
38a3853
,2343012
,f1b2a30
,2ade07a
,fc262dd
,1566f7a
,823aa9b
,4dce006
,c729e70
,bebae42
,782ef4d
,9643e56
,1583a7a
,97d2859
,864616f
,d60d062
,a92941e
,487d991
,013a1d6
,53e7177
,99ad5e9
,c729e70
,04ac2ad
,e2c225f
,89a97a4
,c729e70
,864616f
,8f0b468
,97b5949
,05ca5b6
,7a3a92c
,6664aa2
,479357c
,6b54268
,6b54268
]:- @shopware-pwa/[email protected]
- @shopware/[email protected]
- @shopware-pwa/[email protected]
@shopware-pwa/[email protected]
Major Changes
- #871
1566f7a
Thanks @patzick! - Read more about new major release: https://github.com/shopware/frontends/discussions/965
Patch Changes
-
#931
3cc3d5e
Thanks @mdanilowicz! - Adjust formsService types -
Updated dependencies [
1566f7a
,543a8e1
]:- @shopware-pwa/[email protected]