All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.19.1 (2024-04-03)
Note: Version bump only for package @farfetch/blackout-client
2.19.0 (2024-02-14)
- client: add packaging options client (51658d6)
2.18.0 (2024-01-16)
- expose missing address endpoints (7c37f1b)
2.17.1 (2024-01-15)
- fix
productsListschema (c9e0f50)
2.17.0 (2024-01-09)
- client: draft orders endpoints (3a50465)
2.16.1 (2023-12-15)
- client|redux: account settings type and reducer export (685f64e)
2.16.0 (2023-12-12)
- client|redux: add settings endpoints (043c9a9)
2.15.1 (2023-12-05)
- fix
getProductListingFacetGroupsselector (6f19eca)
2.15.0 (2023-11-21)
- save exchanges filters by id (e1959ba)
-
- Exchange filters are now stored under entities by orderItemUuid (shippingOrderLineId). Previously the user wasn't able to fetch multiple filters because each request cleared the previous data, which this PR aims to fix.
- useCreateExchangeFilter hook renamed to useExchangeFilters.
- isCreating selector from the hook, renamed to isLoading.
2.14.3 (2023-11-15)
- add segments and benefits targets to commerce pages fetch (3616f28)
- fix
productsListschema handling offilterSegments(14e1652)
2.14.2 (2023-11-08)
Note: Version bump only for package @farfetch/blackout-client
2.14.1 (2023-11-08)
Note: Version bump only for package @farfetch/blackout-client
2.14.0 (2023-09-19)
- client: add checkout session tags endpoints (92c08f9)
- client: put checkoutSessions promocodes (6a85c0b)
- client: update payment installments types (7f99817)
2.13.0 (2023-09-13)
- fix social login and account link endpoint paths (5149c44)
2.12.1 (2023-09-07)
2.12.0 (2023-08-28)
- add delete promocode endpoint (5ccde47)
2.11.0 (2023-08-17)
- client: add checkout session patch (c21feed)
2.10.0 (2023-08-08)
- checkout session types (9e93ecc)
- add bagId property to postCheckoutSession body (50dfe83)
2.9.0 (2023-08-03)
- add postApplePaySession client (156483b)
2.8.0 (2023-08-02)
- client: add social login endpoints (03283de)
2.7.1 (2023-07-25)
Note: Version bump only for package @farfetch/blackout-client
2.7.0 (2023-07-25)
- setup product listing facets redux structure (3d759ce)
2.6.1 (2023-07-17)
- fix recommended product sets slice name (7003e4f)
2.6.0 (2023-07-13)
- fix types (8ee62ae)
- add postPaymentSession client (178789f)
2.5.1 (2023-07-06)
- client: add isExchangeAvailable to orderItem property (77f2b93)
2.5.0 (2023-06-21)
- add promocodes prop in bag types (b8eb870)
- client: add new themes endpoint (acc3e69)
- react: add exchanges hooks (15db4fc)
- redux: add redux for themes (ab0f5b7)
2.4.0 (2023-06-14)
- checkout payment capture upon shipment (4647dad)
- client: add filters property to exchange filters (bce3089)
2.3.1 (2023-06-06)
Note: Version bump only for package @farfetch/blackout-client
2.3.0 (2023-06-06)
2.2.1 (2023-05-30)
Note: Version bump only for package @farfetch/blackout-client
2.2.0 (2023-05-23)
- client: add backorder types to order item (009cda6)
2.1.0 (2023-05-19)
- add checkoutOrder context endpoint (3e77b7c)
2.0.0 (2023-05-18)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.259 (2023-05-17)
- add consistency fixes (67724fc)
- client|redux: type fixes (4d9e537)
- fix useWishlistSets hook (9251d66)
- more consistency fixes (622a6c0)
- change fetchCollectPoints action (7025cdd)
- change put checkout promocode client to support multiple promocodes (16abc6a)
- more consistency changes (5df13f3)
- more renames (08f08c0)
- product selectors rename and more changes (823298e)
- rename
getProductRecommendedSetclient and its dependents (7c0b74d) - rename contents exports (16695ba)
- rename token actions and selectors (12237b3)
- The following public exports were renamed:
DeliveryWindowType -> CheckoutOrderDeliveryWindowType
getOrderItemProductQuantity -> getOrderProductQuantity
- Actions that add/remove/update both bag items, wishlist items and
wishlist sets now require that the bagId and wishlistId parameters
respectively be passed explicitly.
useBag,useWishlistanduseWishlistSetsactions now assume the user's bagId and wishlistId as the parameter to perform an operation on so it is not necessary to pass that parameter anymore. - Check the message body of this commit to know the changes.
-
- The following exports were renamed:
buildSubscriptionPackagesHash->generateSubscriptionPackagesHashgenerateProductsListHash->generateProductListingHashgetProductsListActiveFilters->getProductListingActiveFiltersgetProductsListBreadcrumbs->getProductListingBreadcrumbsgetProductsListError->getProductListingErrorgetProductsListFacetGroups->getProductListingFacetGroupsgetProductsListFacetsByFacetGroupType->getProductListingFacetsByFacetGroupTypegetProductsListFacetsGroupsByType->getProductListingFacetsGroupsByTypegetProductsListHash->getProductListingHashgetProductsListPagination->getProductListingPaginationgetProductsListProducts->getProductListingProductsgetProductsListProductsFromAllPages->getProductListingProductsFromAllPagesgetProductsListProductsIds->getProductListingProductsIdsgetProductsListResult->getProductListingResultgetProductsListSelectedFiltersCount->getProductListingSelectedFiltersCountgetProductsListSort->getProductListingSortisProductsListCached->isProductListingCachedisProductsListFetched->isProductListingFetchedisProductsListHydrated->isProductListingHydratedisProductsListLoading->isProductListingLoading
- The following exports were renamed:
-
The following exports were removed:
getBrandsHash-> No need since the brands selectors now use the query as their parameter instead of a hash.getSearchDidYouMeanQuery,getSearchIntentsQueryandgetSearchSuggestionsQuery-> removed as they are redundant since their selectors already specify the query now instead of a hash. -
The selectors from the following areas now receive a query parameter instead of a hash:
searchSuggestions
productGrouping
productGroupingProperties
searchDidYouMean
searchIntents
subscriptionPackages
brands
-
fetchBrandsaction now does not clear the brands that are in store when theuseCacheparameter is set tofalse. Also thesetBrandsHashparameter was removed since that functionality does not exist anymore. -
The hooks
useSearchIntents,useSearchSuggestionsanduseSearchDidYouMeannow expose the data directly on thedataproperty instead of being wrapped in another object.
- The following exports were renamed:
ENVIRONMENT_CODES -> ContentEnvironmentCode
getRankedCommercePage -> applyCommercePagesRankingStrategy
CommercePagesStrategy -> CommercePagesRankingStrategy
- The following exports were renamed:
putCheckoutOrderPromocode->putCheckoutOrderPromocodessetCheckoutOrderPromocode->setCheckoutOrderPromocodessetCheckoutOrderPromocodeFactory->setCheckoutOrderPromocodesFactoryisCheckoutOrderPromocodeLoading->areCheckoutOrderPromocodesLoadinggetCheckoutOrderPromocodeError->getCheckoutOrderPromocodesErrorresetCheckoutOrderPromocodeState->resetCheckoutOrderPromocodesState - The
fetchCollectPointsaction now does not require thequeryparameter. The following selectors to obtain state of collect points requests now requires the query parameter to match the query of the request:
-
getCollectPoints
-
areCollectPointsLoading
-
getCollectPointsError
-
areCollectPointsFetched
-
The checkoutOrder returned by
getCheckoutOrderselector now does not contain the collectPoints property.
- The following exports were renamed:
getUserTokenError -> getTokenError
getUserTokenResult -> getTokenResult
isUserTokenLoading -> isTokenLoading
removeUserToken -> removeToken
removeUserTokenFactory -> removeTokenFactory
- The following exports were renamed:
getProductRecommendedSettogetRecommendedProductSetfetchRecommendedSettofetchRecommendedProductSetfetchRecommendedSetFactorytofetchRecommendedProductSetFactorygetRecommendedSettogetRecommendedProductSetgetRecommendedSetErrortogetRecommendedProductSetErrorisRecommendedSetFetchedtoisRecommendedProductSetFetchedisRecommendedSetLoadingtoisRecommendedProductSetLoadingFETCH_RECOMMENDED_SET_FAILUREtoFETCH_RECOMMENDED_PRODUCT_SET_FAILUREFETCH_RECOMMENDED_SET_REQUESTtoFETCH_RECOMMENDED_PRODUCT_SET_REQUESTFETCH_RECOMMENDED_SET_SUCCESStoFETCH_RECOMMENDED_PRODUCT_SET_SUCCESS bagMiddlewareexport was renamed tobagsMiddleware. Also all redux modules related toreturnPickupRequestswere removed. You will need to use theuseReturnPickupRescheduleRequestsanduseReturnPickupRescheduleRequesthooks instead.-
useOrdersanduseReturnswere renamed touseUserOrdersanduseUserReturnsrespectively.
useBag,useBagItem,useWishlist,useWishlistItem,useUser,useWishlistSet,useWishlistSetsuseReturnPickupCapability,useReturnPickupRescheduleRequest,useReturnPickupRescheduleRequests,useReturn,useOrder,useOrderReturnOptionsanduseOrderReturnshave some changes in its public properties/actions. Check the description for more information.putUserDefaultShippingAddressandputUserDefaultBillingAddresssignatures changed. Now, instead of receiving an object containing the userId and id properties, there is a specific parameter for both of those properties.fetchContentPageaction anduseContentPagehook now discard the query string from thecodesin query when generating the hash.- Type
BreadCrumbused in product listings was renamed toProductsBreadcrumb. Do not confuse with the typeBreadcrumb(with lowercase c) which is to be used with contents modules. - Type
PasswordValidationErrorsConstantswas replaced withPasswordValidationErrorstype which is now an enum.
2.0.0-next.258 (2023-05-12)
- remove
contentTypeCodeas required parameter (f32f7c0)
useContentTypehook is now calleduseContentsand thecontentTypeCodeparameter was removed. You will need to pass thecontentTypeCodeproperty in the options parameter now.
2.0.0-next.257 (2023-05-12)
- implement and review both orders and returns area to integrate the order split and multiple returns flow (22cd9f2)
-
- Removed the entities mapper specific fetch order logic to merge information since we no longer have merging issues.
- getOrder was reviewed
- getOrderReturns was migrated and reviewed on the returns area.
- getOrderMerchants was deleted and a new selector was born to replace it called
getOrderSummariesthat returns all the order summaries of a certain order id. - getOrderItemsByMerchant was renamed to getOrderItemsBySummary and it now returns the order items of an order summary instead of splitting them by merchant.
- getOrderItemQuantity was reviewed to remove an unnecessary restriction
- getUserOrder is now normalising the date
- getOrderItems is now normalising the result
- getOrderItem is now normalising the result
- Tests were adapted and added to test the mentioned changes
- Removed the reset of the return options since they are already resetted when a new user is fetches or when a user logins. There is no use case to manually reset this data for a user.
- Revamped the returnOption schema to wrap around the entire object that contains
sub returnOptions per type. The older schematisation implied that there was a
need to reference each of the sub returnOption and there is none. Also the
identifier of the this entity has been changed to be the
merchantOrderIdproperty so we can link it to the order items if needed. - Removed the artificial merchant normalization.
- getOrderReturnOptions selector now returns a list of return options denormalized
organised by
merchantOrderIdthis id can be linked to order items. - getReturnOption is now normalising the result. You now need to provide a
merchantOrderIdto fetch it. - fetchOrderReturnOptions now saves the array with the merchantOrderIds identifying the returnOptions entities in the Orders area of the redux store.
- Removed getGuestOrder clienta nd fetchGuestOrder action since it works the same way as getOrder and fetchOrder.
2.0.0-next.256 (2023-05-12)
- client: add package to unsubcribe action (7a4211c)
2.0.0-next.255 (2023-05-11)
- client|redux|react: add post guest orders endpoint (21c0fec)
- client|redux|react: The fetchGuestOrdersLegacy is now a POST to prevent from leaking query data to google analytics. Now it accepts an object as data with the user email instead of passing the email as query.
2.0.0-next.254 (2023-05-05)
- client|redux: add exchanges endpoints (ea34545)
2.0.0-next.253 (2023-04-27)
- fix Variation type mispelling (b5a7620)
2.0.0-next.252 (2023-04-21)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.251 (2023-04-20)
- fix unit tests failing (f729a61)
2.0.0-next.250 (2023-04-14)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.249 (2023-04-11)
- fix
patchCheckoutOrderItemstypes (8237eca)
2.0.0-next.248 (2023-03-28)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.247 (2023-03-27)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.246 (2023-03-16)
- add support for esm module resolution algorithm in node (9c9e32b)
- Now the package is fully ESM-compliant which means
it is not necessary anymore to run in node with
--experimental-specifier-resolution=nodeto make it work. For web projects, it might be necessary to tweak some bundler settings to make it work, depending on the bundler/framework used.lodash-esandcrypto-espackages replacedlodashandcrypto-jsrespectively, so you might need to install these peer dependencies if your project does not use them. axios peer dependency version is now1.3.1which should be installed as well. In our tests, no breaking changes were found by using this version of axios. Node version was bumped to 14 so if you need to use an older version you will need to transpile the code. React 18 is now the peer dependency of@farfetch/blackout-reactpackage but if you are transpiling the code you can use the package safely in previous 16 and 17 versions.
2.0.0-next.245 (2023-03-14)
- client: add get return workflow endpoint (dce3535)
2.0.0-next.244 (2023-03-03)
- client: add metadata in post checkout order request and types (88b956f)
2.0.0-next.243 (2023-03-01)
- client: add metadata to bag item and requests types (d2959c9)
2.0.0-next.242 (2023-02-23)
- add "type": "module" to all packages (71a07d9)
2.0.0-next.241 (2023-02-23)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.240 (2023-02-17)
- added raffles endpoints (d28e48e)
2.0.0-next.239 (2023-02-17)
- add set bag promocodes in bag (ecd490d)
- Bag middleware
fetchBagOperationsOnBagRequestSuccessmust now be imported frombagMiddlewaresexport instead of directly from the root of the package.
2.0.0-next.238 (2023-02-17)
- remove deprecated params from translations (447a989)
- 'client_id' and 'tenant_id' parameters were removed from 'Translation' type. They are now inferred from the token.
2.0.0-next.237 (2023-02-10)
- client: add crypto-js to client's dependencies (bc7e27e)
2.0.0-next.236 (2023-02-09)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.235 (2023-02-07)
- client: add product outfits endpoints (20efbdd)
2.0.0-next.234 (2023-02-02)
- redux: fix product attributes server render (88b650f)
2.0.0-next.233 (2023-02-02)
- add segment at targets on searchContents (d81a96a)
2.0.0-next.232 (2023-01-30)
- client: add bag operations endpoints (c630500)
2.0.0-next.231 (2023-01-27)
- add baseUrl to seo metadata (6e663dc)
2.0.0-next.230 (2023-01-23)
- fix error handling (0a2128d)
2.0.0-next.229 (2023-01-11)
- client: add new get user returns endpoints (1042b4c)
2.0.0-next.228 (2023-01-09)
- redux|react: fix createSelector types (883a337)
2.0.0-next.227 (2022-12-21)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.226 (2022-12-15)
- redux|react|client: fix product listing hook and filters related types (baced32)
2.0.0-next.225 (2022-12-14)
- client: add share wishlist endpoints (60b3b8a)
2.0.0-next.224 (2022-12-13)
- client|redux|react: add support to metadata on bag and wishlist hooks (ab9def2)
2.0.0-next.223 (2022-12-09)
- fix unit tests typings (8046bbd)
- react|redux: add checkout hooks (ca0f846)
- react|redux: The following modules were renamed:
ItemStatustoCheckoutOrderItemStatusarePaymentInstrumentsLoadingtoarePaymentIntentInstrumentsLoadinggetCheckoutDeliveryBundletogetCheckoutOrderDeliveryBundle.getCheckoutDeliveryBundleUpgradetogetCheckoutOrderDeliveryBundleUpgradegetCheckoutDeliveryBundleUpgradestogetCheckoutOrderDeliveryBundleUpgradesgetCheckoutDeliveryBundleWindowtogetCheckoutOrderDeliveryBundleWindowgetCheckoutDeliveryBundlestogetCheckoutOrderDeliveryBundlesgetCheckoutDeliveryBundlesIdstogetCheckoutOrderDeliveryBundlesIdsgetCheckoutErrortogetCheckoutOrderErrorgetCheckoutIdtogetCheckoutOrderIdgetCheckouttogetCheckoutOrderResultgetCheckoutOrderCollectPointstogetCollectPoints(renamed back to getgetCollectPointsas it does not depend on the order).getCheckoutSelectedDeliveryBundleIdtogetCheckoutOrderSelectedDeliveryBundleIdgetCheckoutShippingOptionstogetCheckoutOrderShippingOptionsgetPaymentInstrumenttogetPaymentIntentInstrumentgetPaymentInstrumentstogetPaymentIntentInstrumentsgetPaymentInstrumentsErrortogetPaymentIntentInstrumentsErrorgetPaymentInstrumentsResulttogetPaymentIntentInstrumentsResultisCheckoutLoadingtoisCheckoutOrderLoadingresetPaymentInstrumentsStatetoresetPaymentIntentInstrumentsState
The following checkout selectors were removed as they can be easily replaced by looking at the checkout order (returned by the getCheckoutOrder selector) directly:
- getCheckoutOrderItems
- getCheckoutOrderItemsIds
Removed getCheckoutOrderCharge selector as it
can be derived by the isCheckoutOrderChargeLoading,
getCheckoutOrderChargeError
and getCheckoutOrderChargeResult selectors.
2.0.0-next.222 (2022-12-06)
- react|redux: improve order and returns hooks (28b1aaf)
- react: add returns hooks (cd7738e)
- redux|react: add pickup reschedule hooks (b0087e8)
- react: The following modules were renamed:
getReturnPickupCapabilities->getReturnPickupCapability(client)areReturnPickupCapabilitiesLoading->isReturnPickupCapabilityLoadingfetchReturnPickupCapabilities->fetchReturnPickupCapabilityfetchReturnPickupCapabilitiesFactory->fetchReturnPickupCapabilityFactorygetReturnItemsEntity->getReturnItemsEntitiesgetReturnPickupCapabilitiesError->getReturnPickupCapabilityErrorgetReturnsEntity->getReturnsEntities
The following modules were removed as they are not necessary anymore:
areReturnsLoading
getReturnId
getReturnItems
getReturnItemsIds
getReturnsError
getTimeSlots (use now getReturnPickupCapability to get all data
instead of only getting the time slots)
2.0.0-next.221 (2022-12-02)
- react: add base components contents (7a75bd4)
2.0.0-next.220 (2022-11-29)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.219 (2022-11-11)
- react|redux: remove checkout hooks (36702bf)
- react|redux: -
useCheckouthook was removed from @farfetch/blackout-react package.
getCheckoutOrderOperationandfetchCheckoutOrderOperationsignatures have changed to accept separate parameters for the checkoutOrderId and operationId values instead of using an object.getPaymentMethodsclient was renamed togetCheckoutOrderPaymentMethods.fetchPaymentMethodsaction was renamed tofetchCheckoutOrderPaymentMethods.
2.0.0-next.218 (2022-11-10)
- client|redux: create new client fetch Content Page (41834cd)
2.0.0-next.217 (2022-11-08)
- react|redux|client: add content hooks (5c398a4)
- react|redux|client: commerce pages client endpoint updated and content hooks refactored
2.0.0-next.216 (2022-10-25)
- react|redux|client: refactor and add seo metadata hooks and utils (95864db)
2.0.0-next.215 (2022-10-24)
- ts errors on redux selectors (52ea54b)
2.0.0-next.214 (2022-10-20)
- redux: configurations actions (4f5d89b)
2.0.0-next.213 (2022-10-13)
- client|redux: fix content redux exports (690ec18)
2.0.0-next.212 (2022-10-07)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.211 (2022-10-06)
- client|react|redux: add useProductGrouping and useProductGroupingProperties hooks (d21352e)
2.0.0-next.210 (2022-10-04)
2.0.0-next.209 (2022-09-28)
- fix locale types (f7441c7)
- redux|client|react: add categories hooks (e708dc4)
2.0.0-next.208 (2022-09-22)
- react|redux|client: add subscriptions hooks (f03d4f2)
- react|redux|client: Subscriptions reducer refactor
2.0.0-next.207 (2022-09-21)
- redux: fix TS erros on redux reducers unit tests (d6acf84)
2.0.0-next.206 (2022-09-09)
- redux: fix TS errors on redux actions unit tests (2005870)
2.0.0-next.205 (2022-09-09)
- redux|client|react: add search hooks (828a0b4)
- redux|client|react: Search reducers refactor
2.0.0-next.204 (2022-09-08)
- react: add orders hooks (06d39e7)
- react: The selectors
isOrdersListLoadingandgetOrdersListErrorwere removed and replaced with the selectorsareOrdersLoadingandgetOrdersError. The orders reducer was now changed as well and not it will only change its root sliceisLoadinganderrorvalues only when the fetchUserOrders and fetchGuestOrders actions are used.
2.0.0-next.203 (2022-09-07)
- redux|client: fix checkout and payments types (63bf09f)
2.0.0-next.202 (2022-09-02)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.201 (2022-09-02)
- client|redux|react: orders area fixes (c5db8bc)
- client|redux|react: The following exports were renamed:
- OrderStatus -> MerchantOrderStatus
- deleteRecipientFromTopic -> deleteSubscriptionTopicRecipient
- getOrders -> getUserOrders
- getUserCredit (client) -> getUserCredits
- clearAllUnsubscribeRecipientFromTopic -> clearAllUnsubscribeSubscriptionTopicRecipientRequests
- clearUnsubscribeRecipientFromTopic -> clearUnsubscribeSubscriptionTopicRecipientRequest
- fetchListing -> fetchProductListing
- fetchListingFactory -> fetchProductListingFactory
- fetchOrders -> fetchUserOrders
- fetchOrdersFactory -> fetchUserOrdersFactory
- fetchSet -> fetchProductSet
- fetchSetFactory -> fetchProductSetFactory
- fetchUserCredit -> fetchUserCredits
- getMerchantsFromOrder -> getOrderMerchants
- getReturnOptionsFromOrder -> getOrderReturnOptions
- getUserCredit (selector) -> getUserCredits
- unsubscribeFromSubscription -> unsubscribeSubscription
- unsubscribeFromSubscriptionFactory -> unsubscribeSubscriptionFactory
- unsubscribeRecipientFromTopic -> unsubscribeSubscriptionTopicRecipient
- unsubscribeRecipientFromTopicFactory -> unsubscribeSubscriptionTopicRecipientFactory
2.0.0-next.200 (2022-08-25)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.199 (2022-08-24)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.198 (2022-08-23)
- client|react|redux: rename locale selectors and action (78cf7e3)
- client|react|redux: The following action was renamed: fetchCountryCities -> fetchCountryStateCities
The following selectors were renamed: getCountryCitiesError -> getCountryStateCitiesError areCountryCitiesLoading -> areCountryStateCitiesLoading getCountryCities -> getCountryStateCities areCountryCitiesFetched -> areCountryStateCitiesFetched
2.0.0-next.197 (2022-08-22)
- client: fix client unit tests TS errors (f68da8c)
2.0.0-next.196 (2022-08-16)
- react: add user addresses hooks (a1c8427)
2.0.0-next.195 (2022-08-16)
- client: fix adaptError for errors with no response description (b69b487)
2.0.0-next.194 (2022-08-12)
- redux: move entity selectors from entities folder (34fdf43)
- redux: All entity selectors must now be imported from its
respective area instead of being import from the
entitiesfolder.
2.0.0-next.193 (2022-08-12)
- redux|react: rename checkout actions and selectors (2e8a913)
- redux|react: The following actions were renamed:
createCheckout -> createCheckoutOrder fetchCheckout -> fetchCheckoutOrder fetchCheckoutDetails -> fetchCheckoutOrderDetails fetchDeliveryBundleUpgrades -> fetchCheckoutOrderDeliveryBundleUpgrades fetchItemDeliveryProvisioning -> fetchCheckoutOrderDeliveryBundleProvisioning fetchUpgradeItemDeliveryProvisioning -> fetchCheckoutOrderDeliveryBundleUpgradeProvisioning setItemTags -> setCheckoutOrderItemTags setPromocode -> setCheckoutOrderPromocode setTags -> setCheckoutOrderTags updateCheckout -> updateCheckoutOrder updateDeliveryBundleUpgrades -> updateCheckoutOrderDeliveryBundleUpgrades updateGiftMessage -> updateCheckoutOrderItems
The following selectors were renamed:
getCheckoutDetail -> getCheckoutOrderDetails
getCheckoutCollectPointEstimatedDeliveryPeriod ->
getCheckoutOrderSelectedCollectPointEstimatedDeliveryPeriod
areCheckoutDetailsLoading -> areCheckoutOrderDetailsLoading
getCheckoutDetailsError -> getCheckoutOrderDetailsError
isItemTagsLoading -> areCheckoutOrderItemTagsLoading
getItemTagsError -> getCheckoutOrderItemTagsError
isPromoCodeLoading -> isCheckoutOrderPromocodeLoading
getPromoCodeError -> getCheckoutOrderPromocodeError
isTagsLoading -> areCheckoutOrderTagsLoading
getTagsError -> getCheckoutOrderTagsError
isGiftMessageLoading -> areCheckoutOrderItemsUpdating
getGiftMessageError -> getCheckoutOrderItemsUpdateError
areDeliveryBundleUpgradesLoading ->
areCheckoutOrderDeliveryBundleUpgradesLoading
getDeliveryBundleUpgradesError ->
getCheckoutOrderDeliveryBundleUpgradesError
isItemDeliveryProvisioningLoading ->
isCheckoutOrderDeliveryBundleProvisioningLoading
getItemDeliveryProvisioningError ->
getCheckoutOrderDeliveryBundleProvisioningError
isUpgradeItemDeliveryProvisioningLoading ->
isCheckoutOrderDeliveryBundleUpgradeProvisioningLoading
getUpgradeItemDeliveryProvisioningError ->
getCheckoutOrderDeliveryBundleUpgradeProvisioningError
getBundleDeliveryWindow -> getCheckoutDeliveryBundleWindow
isOperationLoading -> isCheckoutOrderOperationLoading
getOperationError -> getCheckoutOrderOperationError
isOperationsLoading -> areCheckoutOrderOperationsLoading
getOperationsError -> getCheckoutOrderOperationsError
getOperationsPagination -> getCheckoutOrderOperationsPagination
isProgramsLoading -> areProgramsLoading
getMembership -> getProgramMembership
getMembershipError -> getProgramMembershipError
getMembershipResult -> getProgramMembershipResult
isMembershipLoading -> isProgramMembershipLoading
getReplacements -> getProgramMembershipReplacements
getReplacementsError -> getProgramMembershipReplacementsError
getReplacementsResult -> getProgramMembershipReplacementsResult
isReplacementsLoading -> areProgramMembershipReplacementsLoading
getConverts -> getProgramMembershipConverts
getConvertsError -> getProgramMembershipConvertsError
getConvertsResult -> getProgramMembershipConvertsResult
isConvertsLoading -> areProgramMembershipConvertsLoading
getStatements -> getProgramMembershipStatements
getStatementsError -> getProgramMembershipStatementsError
getStatementsResult -> getProgramMembershipStatementsResult
isStatementsLoading -> areProgramMembershipStatementsLoading
isReturnsLoading -> areReturnsLoading
isPickupCapabilitiesLoading -> areReturnPickupCapabilitiesLoading
getPickupCapabilitiesError -> getReturnPickupCapabilitiesError
isUserSubscriptionsLoading -> areUserSubscriptionsLoading
isUserDefaultAddressDetailsLoading ->
areUserDefaultAddressDetailsLoading
2.0.0-next.192 (2022-08-11)
- react: refactor useProductListing hook (e27b0ae)
- react: useProductListing hook new interface
2.0.0-next.191 (2022-08-10)
- redux: fix buildBagItem (20e9cd0)
2.0.0-next.190 (2022-08-09)
- react: add locale hooks (8e62032)
- react: locale selectors moved from entities folder to locale folder
2.0.0-next.189 (2022-08-05)
- The getCountries client now does not return a paginated response and does not accept any query parameters. The result is an array of all the countries available.
2.0.0-next.188 (2022-08-05)
- redux: add pagination to commerce pages structure response (0a67a6e)
2.0.0-next.187 (2022-08-04)
- client|redux: rename orders files (43cd3dd)
- client|redux: - The following files from client package were moved and renamed:client was moved
from the returns area to orders area. Update your imports accordingly:
- The 'returns/getReturnsFromOrder' client was moved and renamed to 'orders/getOrderReturns'
- The 'orders/getTrackings' client was renamed to 'orders/getShipmentTrackings'
- The 'orders/getOrderDetails' client was renamed to 'orders/getOrder'
-
The following selectors from redux package were renamed:
- The 'orders/isTrackingsLoading' was renamed to 'orders/areShipmentTrackingsLoading'
- The 'orders/isOrdersLoading' was renamed to 'orders/areOrdersLoading'
- The 'orders/isOrderDetailsLoading' was renamed to 'orders/areOrderDetailsLoading'
- The 'orders/isDocumentsLoading' was renamed to 'orders/areDocumentsLoading'
- The 'orders/isAvailableItemsActivitiesLoading' was renamed to 'orders/areAvailableItemsActivitiesLoading'
- The 'orders/isOrderItemAvailableActivitiesLoading' was renamed to 'orders/areOrderItemAvailableActivitiesLoading'
-
Some Action types for the order returns were also renamed. Update them in case you use them in any custom reducer/middleware:
import { actionTypes } from '@farfetch/blackout-redux/returns';
// Previously
actionTypes.FETCH_RETURNS_FROM_ORDER_FAILURE;
actionTypes.FETCH_RETURNS_FROM_ORDER_REQUEST;
actionTypes.FETCH_RETURNS_FROM_ORDER_SUCCESS;
// Change to
actionTypes.FETCH_ORDER_RETURNS_FAILURE;
actionTypes.FETCH_ORDER_RETURNS_REQUEST;
actionTypes.FETCH_ORDER_RETURNS_SUCCESS;2.0.0-next.186 (2022-08-02)
- client|react: remove authentication interceptor (3247708)
- client|react: Authentication interceptor is now removed from both client and react packages as it only makes sense for native apps.
2.0.0-next.185 (2022-08-01)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.184 (2022-07-29)
- rename
postRegisterclient (902a601)
postRegisterclient is nowpostUser.
2.0.0-next.183 (2022-07-28)
- fix user typings (1d96701)
2.0.0-next.182 (2022-07-27)
- client|redux|redux: fix account areas imports and exports (e80b833)
- client: add required @types/* and remove unnecessary dependencies (4c20f28)
- client: update PostGuestTokens type (a4af154)
- fix
useActionhook type (288c0e6)
- add support for passing metadata in wishlist and bag items actions (167c2a2)
- implement next version (9995600)
- Many renames of actions and clients, as well as redux store layout were implemented and will be described in a new migration file which will be authored later.
2.0.0-next.181 (2022-07-15)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.180 (2022-07-06)
- client|redux: change return files exports (02457ce)
2.0.0-next.179 (2022-07-06)
- export
helpersandauthenticationmodules in client's root index file (0efea8b)
-
- Imports from the
helpersandauthenticationfolders of the@farfetch/blackout-corepackage must now be changed to import from the@farfetch/blackout-clientpackage:
- Imports from the
// Previously
import client, {
configApiBlackAndWhite,
headers,
} from '@farfetch/blackout-core/helpers';
import {
postGuestTokens,
postRegister,
postTokens,
} from '@farfetch/blackout-core/authentication';
// Now
import {
client,
configApiBlackAndWhite,
headers,
postGuestTokens,
postRegister,
postTokens,
} from '@farfetch/blackout-client';-
parsePickupDatemodule was removed. -
AxiosAuthenticationTokenManagerwas renamed toAuthenticationTokenManagerbesides having to be imported from the root of the@farfetch/blackout-clientpackage:
// Previously
import { AxiosAuthenticationTokenManager } from '@farfetch/blackout-core/helpers/client/interceptors/authentication';
// Now
import { AuthenticationTokenManager } from '@farfetch/blackout-client';2.0.0-next.178 (2022-07-06)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.177 (2022-07-04)
- blackout-client: fix typescript errors (4020e29)
2.0.0-next.176 (2022-07-01)
- client: change e-commerce clients naming (aa65b31)
- client: The following clients, imported from
@farfetch/blackout-client/products, changed its name to:
getProductsDetails → getProduct getProductVariantsByMerchantsLocations → getProductVariantMerchantsLocations getListing → getProductListing getSets → getProductSets getRecommendedSets → getProductRecommendedSets
2.0.0-next.175 (2022-07-01)
- fix typings and renames (494c84c)
- client|redux: export subscription modules in client and redux root index file (dc72eaf)
2.0.0-next.174 (2022-06-30)
- client|redux: recommendations in product's scope (10ad661)
2.0.0-next.173 (2022-06-30)
- client: update checkout client names (69b8961)
- client: The following clients, imported from
@farfetch/blackout-client/checkout
changed its name to:
- getCheckout → getCheckoutOrder
- getCharges → getCheckoutOrderCharges
- getDeliveryBundleUpgrades → getCheckoutOrderDeliveryBundleUpgrades
- getItemDeliveryProvisioning → getCheckoutOrderDeliveryBundleProvisioning
- getOperation → getCheckoutOrderOperation
- getOperations → getCheckoutOrderOperations
- getUpgradeItemDeliveryProvisioning → getCheckoutOrderDeliveryBundleUpgradeProvisioning
- patchCheckout → patchCheckoutOrder
- patchDeliveryBundleUpgrades → patchCheckoutOrderDeliveryBundleUpgrades
- patchGiftMessage → patchCheckoutOrderItems
- postCharges → postCheckoutOrderCharges
- postCheckout → postCheckoutOrder
- putItemTags → putCheckoutOrderItemTags
- putPromocode → putCheckoutOrderPromocode
- putTags → putCheckoutOrderTags
removed:
- patchCheckoutCompletePayment
All checkout client functions should be now imported direcly from '@farfetch/blackout-client'
// example import { getCheckoutOrder, getCheckoutOrderCharges, patchCheckoutOrderItems, putCheckoutOrderPromocode, } from '@farfetch/blackout-client';
# [2.0.0-next.172](https://github.com/Farfetch/blackout/compare/@farfetch/blackout-client@2.0.0-next.171...@farfetch/blackout-client@2.0.0-next.172) (2022-06-29)
### Bug Fixes
* fix `adaptProductImages` type ([24e5e04](https://github.com/Farfetch/blackout/commit/24e5e0431adb578491bad7d15aecda4675ceb1c5))
# [2.0.0-next.171](https://github.com/Farfetch/blackout/compare/@farfetch/blackout-client@2.0.0-next.170...@farfetch/blackout-client@2.0.0-next.171) (2022-06-29)
### Features
* review users structure in clients ([551274f](https://github.com/Farfetch/blackout/commit/551274f0c1b3277918e17e03698f839550c9fb75))
### BREAKING CHANGES
* The users clients naming strategy and folders structure was changed.
# [2.0.0-next.170](https://github.com/Farfetch/blackout/compare/@farfetch/blackout-client@2.0.0-next.169...@farfetch/blackout-client@2.0.0-next.170) (2022-06-28)
### Bug Fixes
* update size prop to optional ([1f5e6b6](https://github.com/Farfetch/blackout/commit/1f5e6b6bd65b7d6ea3100dcb6a1fb664b34ee553))
# [2.0.0-next.169](https://github.com/Farfetch/blackout/compare/@farfetch/blackout-client@2.0.0-next.168...@farfetch/blackout-client@2.0.0-next.169) (2022-06-28)
**Note:** Version bump only for package @farfetch/blackout-client
# [2.0.0-next.168](https://github.com/Farfetch/blackout/compare/@farfetch/blackout-client@2.0.0-next.167...@farfetch/blackout-client@2.0.0-next.168) (2022-06-27)
### Features
* **blackout-client|blackout-redux:** export forms modules in root index file ([1180d3e](https://github.com/Farfetch/blackout/commit/1180d3e3b18e1d2337e302dfe194c691479b422c))
### BREAKING CHANGES
* **blackout-client|blackout-redux:** - Imports of form modules now must be done from the root
for both @farfetch/blackout-client and @farfetch/blackout-redux
packages.
```js
// Previously
import {
getFormSchema,
postFormData,
} from '@farfetch/blackout-core/forms/client';
import {
fetchFormSchema,
getFormSchemaByCode,
getFormSchemaError,
getSubmitFormDataError,
isFormSchemaLoading,
isSubmitFormDataLoading,
resetFormSchema,
submitFormData,
} from '@farfetch/blackout-core/forms/redux';
// Now
import {
getFormSchema,
postFormData,
} from '@farfetch/blackout-client';
import {
fetchFormSchema,
getFormSchemaByCode,
getFormSchemaError,
getSubmitFormDataError,
isFormSchemaLoading,
isSubmitFormDataLoading,
resetFormSchema,
submitFormData,
} from '@farfetch/blackout-redux';
- The modules
actionTypesandreducerfrom@farfetch/blackout-core/forms/reduxwere renamed toformsActionTypesandformsReducerrespectively.
// Previously
import reducer, { actionTypes } from '@farfetch/blackout-core/forms/redux;
// Now
import { actionTypesForms, formsReducer } from '@farfetch/blackout-redux';- The action type
RESET_SCHEMASwas renamed toRESET_FORM_SCHEMAS
// Previously
import { RESET_SCHEMAS } from '@farfetch/blackout-core/forms/redux';
// Now
import { RESET_FORM_SCHEMAS } from '@farfetch/blackout-redux';2.0.0-next.167 (2022-06-27)
- blackout-client|blackout-react|blackout-redux: export analytics modules in root index file (45e97d2)
- blackout-client|blackout-react|blackout-redux: - Analytics imports from
@farfetch/blackout-react/analytics
All analytics modules that were being imported from
@farfetch/blackout-react/analytics must now be imported
from the root of the package:
// Previously
import analytics, { eventTypes } from "@farfetch/blackout-
react/analytics"
// Now
import { analytics, eventTypes } from "@farfetch/blackout-
react"- Analytics redux middlewares from @farfetch/blackout-core/analytics/redux/middlewares
All analytics middlewares that were being imported from
@farfetch/blackout-core/analytics/redux/middlewares were renamed and moved
to the @farfetch/blackout-redux package:
// Previously
import {
bagMiddleware,
setUserMiddleware,
wishlistMiddleware,
} from '@farfetch/blackout-core/analytics/redux/middlewares';
// Now
import {
analyticsBagMiddleware,
analyticsSetUserMiddleware,
analyticsWishlistMiddleware,
} from '@farfetch/blackout-redux';- Omnitracking clients
Omnitracking clients postTrackings and postBatchTrackings now
must be imported from @farfetch/blackout-client package:
// Previously
import { postTrackings } from '@farfetch/blackout-core/analytics/integrations/Omnitracking/client';
import { postBatchTrackings } from '@farfetch/blackout-core/analytics/integrations/Omnitracking/client';
// Now
import { postTrackings } from '@farfetch/blackout-client';
import { postBatchTrackings } from '@farfetch/blackout-client';2.0.0-next.166 (2022-06-27)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.165 (2022-06-27)
- client: add product grouping client (f69e9bc)
2.0.0-next.164 (2022-06-22)
- client|redux: recently viewed in product's scope (8ad16e6)
- redux: refactoring of exports in products (a17e25a)
-
redux: - Client:
-
All modules related to recently viewed must now be imported from the root of the package.
// previously import{ getRecentlyViewedProducts } from ‘@farfetch/blackout-client/recentlyViewed’; // now import{ getRecentlyViewedProducts } from ‘@farfetch/blackout-client’;
-
-
Redux: - Like client package, recentlyViewed now be imported from root package: Applied to reducer, actions, selectors, and types as well. - imports from products now can be imported from root package. Product's
actionTypes,entitiesMapper, andserverInitialState, need to be changed toactionTypesProducts,entitiesMapperProducts, andserverInitialStateProducts, to deal with name ambiguity as a result of allowing import from the root of each blackout package```js // previously import { fetchRecentlyViewedProducts, areRecentlyViewedProductsFetched } from ‘@farfetch/blackout-redux/recentlyViewed’; import { actionTypes, serverInitialState, entitiesMapper } from ‘@farfetch/blackout-redux/products’; // now import { fetchRecentlyViewedProducts, areRecentlyViewedProductsFetched, actionTypesProducts, serverInitialStateProducts, entitiesMapperProducts } from ‘@farfetch/blackout-redux’; ```
2.0.0-next.163 (2022-06-22)
- client|redux: export clients and actions on root for content area (3e4913f)
- client|redux: renamed exports and removed default exports on contents folder.
package/redux
- removed reducer default export
- all exports are now in the following format '*Content'.
- actionTypes to actionTypesContent
- reducer to reducerContent
- serverInitialState to serverInitialStateContent
2.0.0-next.162 (2022-06-20)
- client: checkout getCheckoutOrderCharge with chargeId param (d597a31)
2.0.0-next.161 (2022-06-20)
- add patch checkout order item and delete checkout order item (e1e709e)
2.0.0-next.160 (2022-06-15)
- add logic for operation endpoints (5f3d28b)
2.0.0-next.159 (2022-06-15)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.158 (2022-06-15)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.157 (2022-06-14)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.156 (2022-06-14)
- blackout-client|blackout-redux: fix getFormSchemaByCode selector (5e209c4)
2.0.0-next.155 (2022-06-14)
- redux: remove unsupported params from FetchUserFactory (7278675)
2.0.0-next.154 (2022-06-09)
- client: new reset password endpoint (5d0ced9)
2.0.0-next.153 (2022-06-09)
- blackout-client|blackout-redux: fix error handling on blackout client and redux (7b1f92f)
2.0.0-next.152 (2022-06-09)
- blackout-*: convert jsdocs to tsdocs (7936d24)
2.0.0-next.151 (2022-06-07)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.150 (2022-06-03)
- blackout-react: add checkout events mappings to Zaraz (9c166db)
2.0.0-next.149 (2022-06-02)
- client: add checkout operation clients (02e902b)
2.0.0-next.148 (2022-05-25)
- blackout-*: fix issues for the release blackout 2 (8fb3d11)
2.0.0-next.147 (2022-05-17)
- client|redux: add reschedule endpoints (2365af9)
2.0.0-next.146 (2022-05-12)
- client|redux: add personal id and image endpoints (d295f55)
2.0.0-next.145 (2022-05-11)
- client|redux: add personal ids endpoints (02d7371)
2.0.0-next.144 (2022-05-10)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.143 (2022-05-02)
- analytics|client|react: transform Omnitracking integration to typescript (c987863)
2.0.0-next.142 (2022-04-27)
- client: fix phone tokens endpoints requests (b6ea348)
2.0.0-next.141 (2022-04-21)
- client|redux: add phone token validation endpoints on next (58edd6c)
2.0.0-next.140 (2022-04-19)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.139 (2022-04-08)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.138 (2022-04-05)
- blackout-client|blackout-redux: fix updateUserSubscriptions action (97467d1)
- blackout-client|blackout-redux: The
getUserSubscriptionsErrorselector will not return the error when there is an error for theupdateUserSubscriptionsaction. To check if there was an error for that action, you will need to use thegetUpdateSubscriptionsErrorselector as the following example shows:
// Previously
import {
getUserSubscriptionsError,
} from '@farfetch/blackout-redux/subscriptions';
const mapStateToProps = state => {
return {
// errorLoadingUserSubscriptions would return all errors
errorLoadingUserSubscriptions: getUserSubscriptionsError(state),
};
};
// Change to
import {
getUserSubscriptionsError,
getUpdateSubscriptionsError,
} from '@farfetch/blackout-redux/subscriptions';
const mapStateToProps = state => {
return {
// Now getUserSubscriptionsError will return errors for loading / deleting actions
errorLoadingUserSubscriptions: getUserSubscriptionsError(state),
// getUpdateSubscriptionsError will return the error for the update action
errorUpdatingUserSubscriptions: getUpdateSubscriptionsError(state)
};
};
2.0.0-next.137 (2022-04-04)
- blackout-client: fix logout in axios interceptor (e7352d7)
2.0.0-next.136 (2022-03-29)
- react: add lodash map render content (8b8a5cc)
- core|react|redux: fix typescript issues for authentication and users (84920d2)
2.0.0-next.135 (2022-03-21)
- react: update renderContent method (48911a4)
2.0.0-next.134 (2022-03-18)
- analytics|react: fix typescript typings (0294198)
2.0.0-next.133 (2022-02-22)
- client|redux: add order activities endpoints (e15afcd)
2.0.0-next.132 (2022-02-22)
- client|redux: convert subscription area from js to ts (6b623e4)
2.0.0-next.131 (2022-02-14)
- client|redux: convert orders files to typescript (6066925)
2.0.0-next.130 (2022-02-11)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.129 (2022-02-04)
- redux: improve actions of 'users' (aa976a2)
2.0.0-next.128 (2022-02-03)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.127 (2022-02-02)
- client|redux: save pickup capabilities time slots (80bcdb8)
2.0.0-next.126 (2022-01-31)
- client|redux: add new unsubscribe client (a82f004)
2.0.0-next.125 (2022-01-28)
- client|redux: orders - split core and redux (60580f6)
2.0.0-next.124 (2022-01-26)
- client|redux: reset orders data on logout (cd23bdd)
2.0.0-next.123 (2022-01-20)
- client|redux: convert recommended area from js to ts … (d86eca2)
2.0.0-next.122 (2022-01-20)
- client|redux: implement new return endpoint (3442fe4)
- client|redux: - Changed pickupCapabilities endpoint. Instead of a query, now it should receive the pickup day in the format YYYY-MM-DD.
2.0.0-next.121 (2022-01-19)
- client|redux: convert recently viewed area from js to ts (d80258c)
2.0.0-next.120 (2022-01-19)
- client: create client search translations (997a703)
2.0.0-next.119 (2022-01-19)
- client: add mock service worker contents (54b78da)
2.0.0-next.118 (2022-01-17)
- client: add
idto the set type (b1bb52c)
2.0.0-next.117 (2022-01-14)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.116 (2022-01-13)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.115 (2022-01-12)
- client: add more commerce pages types (66bcc2c)
2.0.0-next.114 (2022-01-12)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.113 (2022-01-11)
- client|redux: convert forms area to ts (43c4a73)
2.0.0-next.112 (2022-01-11)
- redux|client: add additional user attributes client (86f2455)
2.0.0-next.111 (2022-01-07)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.110 (2021-12-27)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.109 (2021-12-23)
- change loyalty actions nomenclature (bad8581)
2.0.0-next.108 (2021-12-21)
2.0.0-next.107 (2021-12-15)
- client: add
promotionEvaluationsclient (7db4408)
2.0.0-next.106 (2021-12-14)
- client|redux: remove getGuestOrderDetails from next (36a9660)
2.0.0-next.105 (2021-12-09)
- client|redux: loyalty - split client (6d36e03)
2.0.0-next.104 (2021-12-07)
- core|react: handle guest users expired in authentication provider (447ed49)
2.0.0-next.103 (2021-12-06)
Note: Version bump only for package @farfetch/blackout-client
2.0.0-next.102 (2021-12-06)
- client|redux: profile - rename API and client split (1d74770)
2.0.0-next.101 (2021-12-02)
- client: change nomenclature and improve orders actions (312ca96)
- client: - Rename the action types if you use them in any custom reducer/middleware:
import { actionTypes } from '@farfetch/blackout-client/orders/redux';
// Previously
actionTypes.GET_ORDER_DETAILS_FAILURE;
actionTypes.GET_ORDER_DETAILS_REQUEST;
actionTypes.GET_ORDER_DETAILS_SUCCESS;
actionTypes.GET_ORDER_RETURN_OPTIONS_FAILURE;
actionTypes.GET_ORDER_RETURN_OPTIONS_REQUEST;
actionTypes.GET_ORDER_RETURN_OPTIONS_SUCCESS;
actionTypes.GET_ORDERS_FAILURE;
actionTypes.GET_ORDERS_REQUEST;
actionTypes.GET_ORDERS_SUCCESS;
actionTypes.GET_TRACKINGS_FAILURE;
actionTypes.GET_TRACKINGS_REQUEST;
actionTypes.GET_TRACKINGS_SUCCESS;
actionTypes.GET_ORDER_DOCUMENTS_FAILURE;
actionTypes.GET_ORDER_DOCUMENTS_REQUEST;
actionTypes.GET_ORDER_DOCUMENTS_SUCCESS;
actionTypes.GET_ORDER_DOCUMENT_FAILURE;
actionTypes.GET_ORDER_DOCUMENT_REQUEST;
actionTypes.GET_ORDER_DOCUMENT_SUCCESS;
actionTypes.POST_ORDER_DOCUMENT_FAILURE;
actionTypes.POST_ORDER_DOCUMENT_REQUEST;
actionTypes.POST_ORDER_DOCUMENT_SUCCESS;
// Change to
actionTypes.FETCH_ORDER_DETAILS_FAILURE;
actionTypes.FETCH_ORDER_DETAILS_REQUEST;
actionTypes.FETCH_ORDER_DETAILS_SUCCESS;
actionTypes.FETCH_ORDER_RETURN_OPTIONS_FAILURE;
actionTypes.FETCH_ORDER_RETURN_OPTIONS_REQUEST;
actionTypes.FETCH_ORDER_RETURN_OPTIONS_SUCCESS;
actionTypes.FETCH_ORDERS_FAILURE;
actionTypes.FETCH_ORDERS_REQUEST;
actionTypes.FETCH_ORDERS_SUCCESS;
actionTypes.FETCH_TRACKINGS_FAILURE;
actionTypes.FETCH_TRACKINGS_REQUEST;
actionTypes.FETCH_TRACKINGS_SUCCESS;
actionTypes.FETCH_ORDER_DOCUMENTS_FAILURE;
actionTypes.FETCH_ORDER_DOCUMENTS_REQUEST;
actionTypes.FETCH_ORDER_DOCUMENTS_SUCCESS;
actionTypes.FETCH_ORDER_DOCUMENT_FAILURE;
actionTypes.FETCH_ORDER_DOCUMENT_REQUEST;
actionTypes.FETCH_ORDER_DOCUMENT_SUCCESS;
actionTypes.ADD_ORDER_DOCUMENT_FAILURE;
actionTypes.ADD_ORDER_DOCUMENT_REQUEST;
actionTypes.ADD_ORDER_DOCUMENT_SUCCESS;- Rename the action thunk creators:
// Previously
import {
doPostOrderDocument,
doGetOrderDetails,
doGetOrderDetailsGuestUser,
doGetOrderDocument,
doGetOrderDocuments,
doGetOrderReturnOptions,
doGetOrders,
doGetTracking,
doResetOrders,
} from '@farfetch/blackout-core/orders/redux';
// Change to
import {
addOrderDocument,
fetchOrderDetails,
fetchOrderDetailsGuestUser,
fetchOrderDocument,
fetchOrderDocuments,
fetchOrderReturnOptions,
fetchOrders,
fetchTrackings,
resetOrders,
} from '@farfetch/blackout-client/orders/redux';2.0.0-next.100 (2021-11-29)
Note: Version bump only for package @farfetch/blackout-client
- migrate packages (d081242)