Skip to content

Latest commit

 

History

History
2646 lines (1618 loc) · 128 KB

CHANGELOG.md

File metadata and controls

2646 lines (1618 loc) · 128 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.22.3 (2024-04-03)

Note: Version bump only for package @farfetch/blackout-redux

1.22.2 (2024-03-18)

Bug Fixes

  • referencedListing serverInitialState Validation (2e8ddc3)

1.22.1 (2024-03-07)

Note: Version bump only for package @farfetch/blackout-redux

1.22.0 (2024-02-14)

Features

  • client: add packaging options client (51658d6)

1.21.1 (2024-02-06)

Note: Version bump only for package @farfetch/blackout-redux

1.21.0 (2024-01-30)

Features

  • create useUserCredit hook (5bb8b29)
  • join relatedCommercedata with editorial data (6df0a30)

1.20.1 (2024-01-17)

Bug Fixes

  • fix recentleViewedProducts reducer to sort descending (8b8602c)

1.20.0 (2024-01-16)

Bug Fixes

  • fix updateCheckoutOrder factory recovery case (42ca931)

Features

  • add external logins redux actions (5c4df80)
  • expose missing address endpoints (7c37f1b)

1.19.1 (2024-01-15)

Bug Fixes

  • fix productsList schema (c9e0f50)

1.19.0 (2024-01-09)

Bug Fixes

  • add sort by date on recently viewed main (4a10c9e)

Features

  • client: draft orders endpoints (3a50465)

1.18.1 (2023-12-15)

Bug Fixes

  • client|redux: account settings type and reducer export (685f64e)

1.18.0 (2023-12-12)

Features

  • client|redux: add settings endpoints (043c9a9)

1.17.0 (2023-12-05)

Bug Fixes

  • fix getProductListingFacetGroups selector (6f19eca)
  • fix ids slice reducer in wishlist sets (d6a0dc5)

Features

  • add id delivery bundle in tests (fb6e6b0)
  • add new parameters to interact content event main (b853f03)

Reverts

  • Revert "fix: buildQueryStringFromObject query construction" (487436b)

1.16.0 (2023-11-21)

Bug Fixes

  • save exchanges filters by id (e1959ba)

BREAKING CHANGES

    • 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.

1.15.0 (2023-11-15)

Bug Fixes

  • fix productsList schema handling of filterSegments (14e1652)

Features

  • omnitracking minor changes for main (83c1183)

1.14.0 (2023-11-08)

Bug Fixes

  • avoid facets replacement when multiple listing requests (b9b29ba)
  • commerce pages merge strategy not merging correctly (1f71943)

Features

  • add isMainWishlist parameter to main (923a37c)

1.13.0 (2023-11-08)

Bug Fixes

  • avoid facets replacement when multiple listing requests (b9b29ba)
  • commerce pages merge strategy not merging correctly (1f71943)

Features

  • add isMainWishlist parameter to main (923a37c)

1.12.0 (2023-09-19)

Features

  • client: update payment installments types (7f99817)
  • react: user closets hooks (4ff2dce)

1.11.0 (2023-09-13)

Bug Fixes

  • buildQueryStringFromObject query construction (871a98d)
  • fix social login actions (88ead15)

Features

  • client|redux: expose closet endpoints (9653a5f)

1.10.0 (2023-09-07)

Bug Fixes

  • content metadata type (59e3ef5)
  • fix fetchCheckoutOrderOperation action not exported (66cb8f4)

Features

  • react: add useSocialLogin hook (6ecbd58)

1.9.0 (2023-08-31)

Bug Fixes

  • adjust shared wishlist reducer (d112504)

Features

  • add share wishlist middleware for refetching wishlist sets (7b342f2)

1.8.0 (2023-08-28)

Features

  • add delete promocode endpoint (5ccde47)

1.7.1 (2023-08-17)

Note: Version bump only for package @farfetch/blackout-redux

1.7.0 (2023-08-08)

Features

  • add shared wishlist middle for updating snapshop (ec02bb8)
  • react: use contacts hook (9ace3f3)

1.6.0 (2023-08-03)

Features

  • add postApplePaySession client (156483b)

1.5.2 (2023-08-02)

Note: Version bump only for package @farfetch/blackout-redux

1.5.1 (2023-07-25)

Note: Version bump only for package @farfetch/blackout-redux

1.5.0 (2023-07-25)

Features

  • setup product listing facets redux structure (3d759ce)

1.4.2 (2023-07-17)

Bug Fixes

  • fix recommended product sets slice name (7003e4f)

1.4.1 (2023-07-13)

Bug Fixes

1.4.0 (2023-07-06)

Features

  • implement eircode validation (954d9ee)

1.3.0 (2023-06-21)

Bug Fixes

  • add promocodes prop in bag types (b8eb870)

Features

  • react: add exchanges hooks (15db4fc)
  • redux: add redux for themes (ab0f5b7)

1.2.0 (2023-06-14)

Bug Fixes

  • redux: exchanges result reducer (5a633a6)

Features

  • checkout payment capture upon shipment (4647dad)
  • client: add filters property to exchange filters (bce3089)

1.1.5 (2023-06-06)

Note: Version bump only for package @farfetch/blackout-redux

1.1.4 (2023-06-06)

Note: Version bump only for package @farfetch/blackout-redux

1.1.3 (2023-05-30)

Note: Version bump only for package @farfetch/blackout-redux

1.1.2 (2023-05-30)

Bug Fixes

  • send metadata to bag endpoints in useBag hook (3bbc65c)

1.1.1 (2023-05-23)

Note: Version bump only for package @farfetch/blackout-redux

1.1.0 (2023-05-19)

Features

  • add checkoutOrder context endpoint (3e77b7c)

1.0.0 (2023-05-18)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.412 (2023-05-17)

Bug Fixes

  • add consistency fixes (67724fc)
  • client|redux: type fixes (4d9e537)
  • fix AnalyticsAPI options (7a50ddf)
  • fix useProductListing auto fetch check (a6f8bba)
  • fix useWishlistSets hook (9251d66)
  • more consistency fixes (622a6c0)

chore

  • add reset actions consistency changes (e58e690)
  • 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 getProductRecommendedSet client and its dependents (7c0b74d)
  • rename authentication actions (da769dc)
  • rename checkout action type (2532f40)
  • rename contents exports (16695ba)
  • rename facet groups selectors (10851b7)
  • rename selectors some selectors (ef4675e)
  • rename token actions and selectors (12237b3)

BREAKING CHANGES

  • The following public exports were renamed:

DeliveryWindowType -> CheckoutOrderDeliveryWindowType getOrderItemProductQuantity -> getOrderProductQuantity

  • reset actions that only reset either the entities or the internal state were now removed. All reset actions provided now remove both entities and state simultaneously.
  • 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, useWishlist and useWishlistSets actions 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 -> generateSubscriptionPackagesHash generateProductsListHash -> generateProductListingHash getProductsListActiveFilters -> getProductListingActiveFilters getProductsListBreadcrumbs -> getProductListingBreadcrumbs getProductsListError -> getProductListingError getProductsListFacetGroups -> getProductListingFacetGroups getProductsListFacetsByFacetGroupType -> getProductListingFacetsByFacetGroupType getProductsListFacetsGroupsByType -> getProductListingFacetsGroupsByType getProductsListHash -> getProductListingHash getProductsListPagination -> getProductListingPagination getProductsListProducts -> getProductListingProducts getProductsListProductsFromAllPages -> getProductListingProductsFromAllPages getProductsListProductsIds -> getProductListingProductsIds getProductsListResult -> getProductListingResult getProductsListSelectedFiltersCount -> getProductListingSelectedFiltersCount getProductsListSort -> getProductListingSort isProductsListCached -> isProductListingCached isProductsListFetched -> isProductListingFetched isProductsListHydrated -> isProductListingHydrated isProductsListLoading -> isProductListingLoading
  • The following exports were removed: getBrandsHash -> No need since the brands selectors now use the query as their parameter instead of a hash. getSearchDidYouMeanQuery, getSearchIntentsQuery and getSearchSuggestionsQuery -> 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

  • fetchBrands action now does not clear the brands that are in store when the useCache parameter is set to false. Also the setBrandsHash parameter was removed since that functionality does not exist anymore.

  • The hooks useSearchIntents, useSearchSuggestions and useSearchDidYouMean now expose the data directly on the data property instead of being wrapped in another object.

  • The following selectors were renamed:
  • getReturnItemsEntities -> getReturnItems
  • getReturnsEntities -> getReturns
  • getAllRaffles -> getRaffles
  • getAllContentTypes -> getContentTypes
  • The following actions and factories were renamed: createPhoneTokens -> createPhoneToken createPhoneTokensFactory -> createPhoneTokenFactory createPhoneTokenValidations -> createPhoneTokenValidation createPhoneTokenValidationsFactory -> createPhoneTokenValidationFactory createPhoneNumberValidations -> createPhoneNumberValidation createPhoneNumberValidationsFactory -> createPhoneNumberValidationFactory
  • The selectors getMaxDepth and getShallowestDepth were renamed to getFacetGroupsMaxDepth and getFacetGroupsShallowestDepth respectively.
  • The following exports were renamed:

ENVIRONMENT_CODES -> ContentEnvironmentCode getRankedCommercePage -> applyCommercePagesRankingStrategy CommercePagesStrategy -> CommercePagesRankingStrategy

  • The following exports were renamed: putCheckoutOrderPromocode -> putCheckoutOrderPromocodes setCheckoutOrderPromocode -> setCheckoutOrderPromocodes setCheckoutOrderPromocodeFactory -> setCheckoutOrderPromocodesFactory isCheckoutOrderPromocodeLoading -> areCheckoutOrderPromocodesLoading getCheckoutOrderPromocodeError -> getCheckoutOrderPromocodesError resetCheckoutOrderPromocodeState -> resetCheckoutOrderPromocodesState
  • The fetchCollectPoints action now does not require the query parameter. 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 getCheckoutOrder selector 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: getProductRecommendedSet to getRecommendedProductSet fetchRecommendedSet to fetchRecommendedProductSet fetchRecommendedSetFactory to fetchRecommendedProductSetFactory getRecommendedSet to getRecommendedProductSet getRecommendedSetError to getRecommendedProductSetError isRecommendedSetFetched to isRecommendedProductSetFetched isRecommendedSetLoading to isRecommendedProductSetLoading FETCH_RECOMMENDED_SET_FAILURE to FETCH_RECOMMENDED_PRODUCT_SET_FAILURE FETCH_RECOMMENDED_SET_REQUEST to FETCH_RECOMMENDED_PRODUCT_SET_REQUEST FETCH_RECOMMENDED_SET_SUCCESS to FETCH_RECOMMENDED_PRODUCT_SET_SUCCESS
  • UPDATEDELIVERY_BUNDLE_UPGRADE_ action types were renamed to UPDATECHECKOUT_ORDER_DELIVERY_BUNDLE_UPGRADE_
  • bagMiddleware export was renamed to bagsMiddleware. Also all redux modules related to returnPickupRequests were removed. You will need to use the useReturnPickupRescheduleRequests and useReturnPickupRescheduleRequest hooks instead.
    • useOrders and useReturns were renamed to useUserOrders and useUserReturns respectively.
  • useBag, useBagItem, useWishlist, useWishlistItem, useUser, useWishlistSet, useWishlistSets useReturnPickupCapability, useReturnPickupRescheduleRequest, useReturnPickupRescheduleRequests, useReturn, useOrder, useOrderReturnOptions and useOrderReturns have some changes in its public properties/actions. Check the description for more information.
  • putUserDefaultShippingAddress and putUserDefaultBillingAddress signatures changed. Now, instead of receiving an object containing the userId and id properties, there is a specific parameter for both of those properties.
  • fetchContentPage action and useContentPage hook now discard the query string from the codes in query when generating the hash.
  • Type BreadCrumb used in product listings was renamed to ProductsBreadcrumb. Do not confuse with the type Breadcrumb (with lowercase c) which is to be used with contents modules.
  • Type PasswordValidationErrorsConstants was replaced with PasswordValidationErrors type which is now an enum.

1.0.0-next.411 (2023-05-12)

Bug Fixes

  • remove contentTypeCode as required parameter (f32f7c0)

BREAKING CHANGES

  • useContentType hook is now called useContents and the contentTypeCode parameter was removed. You will need to pass the contentTypeCode property in the options parameter now.

1.0.0-next.410 (2023-05-12)

Features

  • implement and review both orders and returns area to integrate the order split and multiple returns flow (22cd9f2)

BREAKING CHANGES

    • 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 getOrderSummaries that 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 merchantOrderId property 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 merchantOrderId this id can be linked to order items.
  • getReturnOption is now normalising the result. You now need to provide a merchantOrderId to 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.

1.0.0-next.409 (2023-05-12)

Features

  • react|redux: analytics improvements (d72a4de)

1.0.0-next.408 (2023-05-12)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.407 (2023-05-12)

Bug Fixes

  • refactor serverInitialState (46b998c)

1.0.0-next.406 (2023-05-11)

Features

  • client|redux|react: add post guest orders endpoint (21c0fec)

BREAKING CHANGES

  • 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.

1.0.0-next.405 (2023-05-05)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.404 (2023-05-05)

Features

  • client|redux: add exchanges endpoints (ea34545)

1.0.0-next.403 (2023-04-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.402 (2023-04-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.401 (2023-04-21)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.400 (2023-04-20)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.399 (2023-04-19)

Features

  • redux: exclude update product event for next (ee11cc5)

1.0.0-next.398 (2023-04-18)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.397 (2023-04-14)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.396 (2023-04-11)

Bug Fixes

  • fix patchCheckoutOrderItems types (8237eca)

1.0.0-next.395 (2023-04-10)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.394 (2023-04-05)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.393 (2023-04-03)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.392 (2023-04-03)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.391 (2023-03-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.390 (2023-03-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.389 (2023-03-17)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.388 (2023-03-16)

Features

  • add support for esm module resolution algorithm in node (9c9e32b)

BREAKING CHANGES

  • Now the package is fully ESM-compliant which means it is not necessary anymore to run in node with --experimental-specifier-resolution=node to 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-es and crypto-es packages replaced lodash and crypto-js respectively, so you might need to install these peer dependencies if your project does not use them. axios peer dependency version is now 1.3.1 which 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-react package but if you are transpiling the code you can use the package safely in previous 16 and 17 versions.

1.0.0-next.387 (2023-03-16)

Bug Fixes

  • wrong actionType for the subfolder (6b04e59)

1.0.0-next.386 (2023-03-14)

Bug Fixes

  • subfolder on useLocale & serverInitialState (da52aa6)

1.0.0-next.385 (2023-03-14)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.384 (2023-03-14)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.383 (2023-03-13)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.382 (2023-03-03)

Bug Fixes

  • client: add metadata in post checkout order request and types (88b956f)

1.0.0-next.381 (2023-03-02)

Bug Fixes

  • redux: fix immer imports to work with nodenext (076c010)

1.0.0-next.380 (2023-03-01)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.379 (2023-02-28)

Bug Fixes

  • redux: fix useBag hook actions (3374551)

1.0.0-next.378 (2023-02-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.377 (2023-02-24)

Bug Fixes

  • redux: checkout reducer not overwriting address state (eec50e8)

1.0.0-next.376 (2023-02-23)

Bug Fixes

  • add "type": "module" to all packages (71a07d9)

1.0.0-next.375 (2023-02-23)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.374 (2023-02-20)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.373 (2023-02-17)

Features

  • added raffles endpoints (d28e48e)

1.0.0-next.372 (2023-02-17)

Features

  • add set bag promocodes in bag (ecd490d)

BREAKING CHANGES

  • Bag middleware fetchBagOperationsOnBagRequestSuccess must now be imported from bagMiddlewares export instead of directly from the root of the package.

1.0.0-next.371 (2023-02-17)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.370 (2023-02-16)

Features

  • analytics|react: add forter and riskified integrations (5fcf9bb)

BREAKING CHANGES

  • analytics|react: Vitorino was removed from the list of available integrations and now there are separate Riskified and Forter integrations that will need to be added separately to have the same behaviour provided by Vitorino.

1.0.0-next.369 (2023-02-15)

Bug Fixes

  • redux: fix checkout reducer (48fe940)

BREAKING CHANGES

  • redux: Now when the default login, register and fetch user actions are dispatched to the store, no cleanup of any checkout order state is performed.

1.0.0-next.368 (2023-02-10)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.367 (2023-02-09)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.366 (2023-02-08)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.365 (2023-02-07)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.364 (2023-02-07)

Features

  • redux: add redux product outfits (1df1612)

1.0.0-next.363 (2023-02-03)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.362 (2023-02-02)

Bug Fixes

  • redux: fix product attributes server render (88b650f)

1.0.0-next.361 (2023-02-02)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.360 (2023-01-31)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.359 (2023-01-30)

Features

  • redux: add bag operations endpoints (374b3e6)

1.0.0-next.358 (2023-01-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.357 (2023-01-23)

Bug Fixes

1.0.0-next.356 (2023-01-11)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.355 (2023-01-09)

Bug Fixes

  • redux|react: fix createSelector types (883a337)

1.0.0-next.354 (2023-01-02)

Features

  • analytics|react|redux: transform analytics types into enums (cd551c3)

1.0.0-next.353 (2022-12-22)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.352 (2022-12-21)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.351 (2022-12-21)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.350 (2022-12-15)

Bug Fixes

  • redux|react|client: fix product listing hook and filters related types (baced32)

1.0.0-next.349 (2022-12-14)

Features

  • redux: add redux shared whislists (581a76b)

1.0.0-next.348 (2022-12-13)

Features

  • client|redux|react: add support to metadata on bag and wishlist hooks (ab9def2)

1.0.0-next.347 (2022-12-13)

Bug Fixes

  • react|redux: fix wishlist and bag selectors (071ed5d)
  • redux: add missing selectors exports (c27ec21)

1.0.0-next.346 (2022-12-09)

Bug Fixes

Features

  • react|redux: add checkout hooks (ca0f846)

BREAKING CHANGES

  • react|redux: The following modules were renamed:
  • ItemStatus to CheckoutOrderItemStatus
  • arePaymentInstrumentsLoading to arePaymentIntentInstrumentsLoading
  • getCheckoutDeliveryBundle to getCheckoutOrderDeliveryBundle.
  • getCheckoutDeliveryBundleUpgrade to getCheckoutOrderDeliveryBundleUpgrade
  • getCheckoutDeliveryBundleUpgrades to getCheckoutOrderDeliveryBundleUpgrades
  • getCheckoutDeliveryBundleWindow to getCheckoutOrderDeliveryBundleWindow
  • getCheckoutDeliveryBundles to getCheckoutOrderDeliveryBundles
  • getCheckoutDeliveryBundlesIds to getCheckoutOrderDeliveryBundlesIds
  • getCheckoutError to getCheckoutOrderError
  • getCheckoutId to getCheckoutOrderId
  • getCheckout to getCheckoutOrderResult
  • getCheckoutOrderCollectPoints to getCollectPoints (renamed back to get getCollectPoints as it does not depend on the order).
  • getCheckoutSelectedDeliveryBundleId to getCheckoutOrderSelectedDeliveryBundleId
  • getCheckoutShippingOptions to getCheckoutOrderShippingOptions
  • getPaymentInstrument to getPaymentIntentInstrument
  • getPaymentInstruments to getPaymentIntentInstruments
  • getPaymentInstrumentsError to getPaymentIntentInstrumentsError
  • getPaymentInstrumentsResult to getPaymentIntentInstrumentsResult
  • isCheckoutLoading to isCheckoutOrderLoading
  • resetPaymentInstrumentsState to resetPaymentIntentInstrumentsState

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.

1.0.0-next.345 (2022-12-07)

Features

  • react|redux: add getProductDenormalized selector (1ea953b)

1.0.0-next.344 (2022-12-06)

Features

  • react|redux: improve order and returns hooks (28b1aaf)
  • react: add returns hooks (cd7738e)
  • redux|react: add pickup reschedule hooks (b0087e8)

BREAKING CHANGES

  • react: The following modules were renamed: getReturnPickupCapabilities -> getReturnPickupCapability (client) areReturnPickupCapabilitiesLoading -> isReturnPickupCapabilityLoading fetchReturnPickupCapabilities -> fetchReturnPickupCapability fetchReturnPickupCapabilitiesFactory -> fetchReturnPickupCapabilityFactory getReturnItemsEntity -> getReturnItemsEntities getReturnPickupCapabilitiesError -> getReturnPickupCapabilityError getReturnsEntity -> 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)

1.0.0-next.343 (2022-12-05)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.342 (2022-12-02)

Features

  • react: add base components contents (7a75bd4)

1.0.0-next.341 (2022-11-29)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.340 (2022-11-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.339 (2022-11-22)

Bug Fixes

  • redux: fix countrySourceCode in locale initial state (56939f7)

1.0.0-next.338 (2022-11-21)

Bug Fixes

  • analytics|redux: fix analytics' setUser middleware on logout action (8b5484d)

1.0.0-next.337 (2022-11-16)

Bug Fixes

1.0.0-next.336 (2022-11-11)

chore

  • react|redux: remove checkout hooks (36702bf)

BREAKING CHANGES

  • react|redux: - useCheckout hook was removed from @farfetch/blackout-react package.
  • getCheckoutOrderOperation and fetchCheckoutOrderOperation signatures have changed to accept separate parameters for the checkoutOrderId and operationId values instead of using an object.
  • getPaymentMethods client was renamed to getCheckoutOrderPaymentMethods.
  • fetchPaymentMethods action was renamed to fetchCheckoutOrderPaymentMethods.

1.0.0-next.335 (2022-11-10)

Features

  • client|redux: create new client fetch Content Page (41834cd)

1.0.0-next.334 (2022-11-08)

Features

  • react|redux|client: add content hooks (5c398a4)

BREAKING CHANGES

  • react|redux|client: commerce pages client endpoint updated and content hooks refactored

1.0.0-next.333 (2022-11-03)

Features

  • analytics|react|redux: add omnitracking's product updated events mappings (0d8d626)
  • analytics|redux: add omnitracking's bag events mappings next (18ddc86)
  • react|redux: change analytics dependencies on react and redux projects (1a529ab)

1.0.0-next.332 (2022-10-25)

Features

  • react|redux|client: refactor and add seo metadata hooks and utils (95864db)

1.0.0-next.331 (2022-10-25)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.330 (2022-10-24)

Bug Fixes

  • fix TS errors on redux selectors (35e3525)
  • ts errors on redux selectors (52ea54b)

1.0.0-next.329 (2022-10-24)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.328 (2022-10-20)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.327 (2022-10-20)

Features

  • redux: configurations actions (4f5d89b)

1.0.0-next.326 (2022-10-18)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.325 (2022-10-17)

Features

  • add useRecentlyViewedProducts hook (702f311)

1.0.0-next.324 (2022-10-13)

Bug Fixes

  • client|redux: fix content redux exports (690ec18)

1.0.0-next.323 (2022-10-07)

Bug Fixes

  • redux: fix reducers cleanup actions (1a7d768)

BREAKING CHANGES

  • redux: - resetCheckoutState action was renamed to resetCheckout.
  • resetReturn action was renamed to resetReturns.
  • resetOrderDetailsState now accepts an array of orderIds instead of a single orderId to allow multiple resets at the same time.

1.0.0-next.322 (2022-10-07)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.321 (2022-10-06)

Bug Fixes

  • client|react|redux: refactor grouping and groupingProperties reducers and fix selectors (d4f7d59)

Features

  • client|react|redux: add useProductGrouping and useProductGroupingProperties hooks (d21352e)

1.0.0-next.320 (2022-10-04)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.319 (2022-09-29)

Features

  • redux|client|react: add brands hooks (667cb69)

1.0.0-next.318 (2022-09-28)

Features

  • redux|client|react: add categories hooks (e708dc4)

1.0.0-next.317 (2022-09-22)

Features

  • react|redux|client: add subscriptions hooks (f03d4f2)

BREAKING CHANGES

  • react|redux|client: Subscriptions reducer refactor

1.0.0-next.316 (2022-09-22)

Bug Fixes

  • redux: fix resetProductsLists action (c895a22)

1.0.0-next.315 (2022-09-21)

Bug Fixes

  • redux: fix TS erros on redux reducers unit tests (d6acf84)

1.0.0-next.314 (2022-09-15)

Bug Fixes

  • redux: update getProductsListProducts selector to return brand data (03bf002)

1.0.0-next.313 (2022-09-09)

Bug Fixes

  • redux: fix TS errors on redux actions unit tests (2005870)

1.0.0-next.312 (2022-09-09)

Bug Fixes

  • redux|client|react: add search hooks (828a0b4)

BREAKING CHANGES

  • redux|client|react: Search reducers refactor

1.0.0-next.311 (2022-09-09)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.310 (2022-09-08)

Features

  • react: add orders hooks (06d39e7)

BREAKING CHANGES

  • react: The selectors isOrdersListLoading and getOrdersListError were removed and replaced with the selectors areOrdersLoading and getOrdersError. The orders reducer was now changed as well and not it will only change its root slice isLoading and error values only when the fetchUserOrders and fetchGuestOrders actions are used.

1.0.0-next.309 (2022-09-07)

Bug Fixes

  • redux|client: fix checkout and payments types (63bf09f)

1.0.0-next.308 (2022-09-02)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.307 (2022-09-02)

Bug Fixes

  • client|redux|react: orders area fixes (c5db8bc)

BREAKING CHANGES

  • 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

1.0.0-next.306 (2022-08-30)

Features

  • react: add usePaymentTokens hook (9deba6f)

1.0.0-next.305 (2022-08-25)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.304 (2022-08-24)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.303 (2022-08-23)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.302 (2022-08-23)

Bug Fixes

  • client|react|redux: rename locale selectors and action (78cf7e3)

BREAKING CHANGES

  • client|react|redux: The following action was renamed: fetchCountryCities -> fetchCountryStateCities

The following selectors were renamed: getCountryCitiesError -> getCountryStateCitiesError areCountryCitiesLoading -> areCountryStateCitiesLoading getCountryCities -> getCountryStateCities areCountryCitiesFetched -> areCountryStateCitiesFetched

1.0.0-next.301 (2022-08-22)

Bug Fixes

  • client: fix client unit tests TS errors (f68da8c)

1.0.0-next.300 (2022-08-16)

Features

  • react: add user addresses hooks (a1c8427)

1.0.0-next.299 (2022-08-16)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.298 (2022-08-12)

chore

  • redux: move entity selectors from entities folder (34fdf43)

BREAKING CHANGES

  • redux: All entity selectors must now be imported from its respective area instead of being import from the entities folder.

1.0.0-next.297 (2022-08-12)

Bug Fixes

  • redux|react: rename checkout actions and selectors (2e8a913)

BREAKING CHANGES

  • 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

1.0.0-next.296 (2022-08-12)

Bug Fixes

  • redux: add productImgQueryParam to checkout order items (a8cbf1b)

1.0.0-next.295 (2022-08-11)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.294 (2022-08-10)

Bug Fixes

  • redux: fix buildBagItem (20e9cd0)

1.0.0-next.293 (2022-08-10)

Features

  • react: add useProductSizeGuides hook (1b1d7f9)

1.0.0-next.292 (2022-08-09)

Features

  • react: add locale hooks (8e62032)

BREAKING CHANGES

  • react: locale selectors moved from entities folder to locale folder

1.0.0-next.291 (2022-08-05)

Bug Fixes

  • change getCountries client (2f1519a)
  • remove getProductColorGrouping client (95d9cac)

BREAKING CHANGES

  • 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.

1.0.0-next.290 (2022-08-05)

Features

  • redux: add pagination to commerce pages structure response (0a67a6e)

1.0.0-next.289 (2022-08-04)

chore

  • client|redux: rename orders files (43cd3dd)

BREAKING CHANGES

  • 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;

1.0.0-next.288 (2022-08-03)

Bug Fixes

  • redux|react: fix fetched selectors (810177e)

1.0.0-next.287 (2022-08-03)

Features

  • allow partial product details state reset (10e78ac)

1.0.0-next.286 (2022-08-02)

chore

  • client|react: remove authentication interceptor (3247708)

BREAKING CHANGES

  • client|react: Authentication interceptor is now removed from both client and react packages as it only makes sense for native apps.

1.0.0-next.285 (2022-08-01)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.284 (2022-08-01)

Bug Fixes

  • redux: add reducer and selectors to personal ids (94f1f52)

1.0.0-next.283 (2022-07-29)

Bug Fixes

  • redux: update keys on locale serverInitialState (3c0b46b)

1.0.0-next.282 (2022-07-29)

chore

  • rename postRegister client (902a601)

BREAKING CHANGES

  • postRegister client is now postUser.

1.0.0-next.281 (2022-07-29)

Features

  • add support for metadata (442f0d4)
  • react: refactor useBag and useBagItem hooks (037a364)

BREAKING CHANGES

  • react: useBag and useBagItem hooks new interface

1.0.0-next.280 (2022-07-28)

Bug Fixes

1.0.0-next.279 (2022-07-27)

Bug Fixes

  • client|redux|redux: fix account areas imports and exports (e80b833)
  • fix useAction hook type (288c0e6)

Features

  • add support for passing metadata in wishlist and bag items actions (167c2a2)
  • implement next version (9995600)
  • react: refactor useWishlist and useWishlistItem hooks (89813a4)

BREAKING CHANGES

  • react: useWishlist and useWishlistItem hooks new interface
  • 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.

1.0.0-next.278 (2022-07-15)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.277 (2022-07-12)

Features

  • redux: add defaultCulture and defaultSubfolder keys on locale (c2d6954)

1.0.0-next.276 (2022-07-06)

Features

  • client|redux: change return files exports (02457ce)

1.0.0-next.275 (2022-07-06)

Features

  • export helpers and authentication modules in client's root index file (0efea8b)

BREAKING CHANGES

    • Imports from the helpers and authentication folders of the @farfetch/blackout-core package must now be changed to import from the @farfetch/blackout-client package:
// 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';
  • parsePickupDate module was removed.

  • AxiosAuthenticationTokenManager was renamed to AuthenticationTokenManager besides having to be imported from the root of the @farfetch/blackout-client package:

// Previously
import { AxiosAuthenticationTokenManager } from '@farfetch/blackout-core/helpers/client/interceptors/authentication';

// Now
import { AuthenticationTokenManager } from '@farfetch/blackout-client';

1.0.0-next.274 (2022-07-06)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.273 (2022-07-04)

Bug Fixes

  • blackout-client: fix typescript errors (4020e29)

1.0.0-next.272 (2022-07-01)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.271 (2022-07-01)

Bug Fixes

  • fix typings and renames (494c84c)

Features

  • client|redux: export subscription modules in client and redux root index file (dc72eaf)

1.0.0-next.270 (2022-06-30)

Features

  • client|redux: recommendations in product's scope (10ad661)

1.0.0-next.269 (2022-06-30)

Bug Fixes

  • redux: merge entities and run duplicate keys (941ae7e)

BREAKING CHANGES

  • redux: - entitiesMapper signature has changed. Now it receives an array of extraMappers instead of an object.

1.0.0-next.268 (2022-06-30)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.267 (2022-06-29)

Bug Fixes

  • redux: add users reset actions to reducer (fd60cb8)

1.0.0-next.266 (2022-06-29)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.265 (2022-06-29)

Features

  • review users structure in clients (551274f)

BREAKING CHANGES

  • The users clients naming strategy and folders structure was changed.

1.0.0-next.264 (2022-06-29)

Bug Fixes

  • blackout-redux: set customActionTypes as optional (1a09ec7)

1.0.0-next.263 (2022-06-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.262 (2022-06-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.261 (2022-06-27)

Bug Fixes

  • blackout-redux: fix reset recently viewed action naming (9a90fef)

BREAKING CHANGES

  • blackout-redux: - The following exports were renamed:
// Previously
import {
  actionTypesProducts,
  entitiesMapperProducts,
  serverInitialStateProducts,
} from '@farfetch/blackout-redux';

// Now
import {
  productsActionTypes,
  productsEntitiesMapper,
  productsServerInitialState,
} from '@farfetch/blackout-redux';

1.0.0-next.260 (2022-06-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.259 (2022-06-27)

Features

  • blackout-client|blackout-redux: export forms modules in root index file (1180d3e)

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.
// 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 actionTypes and reducer from @farfetch/blackout-core/forms/redux were renamed to formsActionTypes and formsReducer respectively.
// Previously
import reducer, { actionTypes } from '@farfetch/blackout-core/forms/redux;

// Now
import { actionTypesForms, formsReducer } from '@farfetch/blackout-redux';
  • The action type RESET_SCHEMAS was renamed to RESET_FORM_SCHEMAS
// Previously
import { RESET_SCHEMAS } from '@farfetch/blackout-core/forms/redux';

// Now
import { RESET_FORM_SCHEMAS } from '@farfetch/blackout-redux';

1.0.0-next.258 (2022-06-27)

Features

  • blackout-client|blackout-react|blackout-redux: export analytics modules in root index file (45e97d2)

BREAKING CHANGES

  • 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';

1.0.0-next.257 (2022-06-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.256 (2022-06-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.255 (2022-06-27)

Features

  • redux: add grouping state management (1398356)

1.0.0-next.254 (2022-06-22)

Features

  • client|redux: recently viewed in product's scope (8ad16e6)
  • redux: refactoring of exports in products (a17e25a)

BREAKING CHANGES

  • 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, and serverInitialState, need to be changed to actionTypesProducts, entitiesMapperProducts, and serverInitialStateProducts, 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’;
       ```
    

1.0.0-next.253 (2022-06-22)

Features

  • client|redux: export clients and actions on root for content area (3e4913f)

BREAKING CHANGES

  • 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

1.0.0-next.252 (2022-06-21)

Features

  • add patch checkout order item and delete checkout order item action creators (40baaa3)

1.0.0-next.251 (2022-06-20)

Bug Fixes

  • redux: add chargeId param on checkout fetchCharges action (25709c7)

1.0.0-next.250 (2022-06-20)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.249 (2022-06-15)

Features

  • add logic for operation endpoints (5f3d28b)

1.0.0-next.248 (2022-06-15)

Features

  • add totalQuantity and itemsCount to useBag hook (e71fd5b)

1.0.0-next.247 (2022-06-15)

Bug Fixes

  • redux: remove setUser middleware mandatory parameter (1bd38bc)

1.0.0-next.246 (2022-06-15)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.245 (2022-06-15)

Features

  • add facetId to filterSegments in productsList entity (f8bdfd8)

1.0.0-next.244 (2022-06-15)

Features

  • redux: add reset action for users (b958eb8)

1.0.0-next.243 (2022-06-14)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.242 (2022-06-14)

Bug Fixes

  • blackout-client|blackout-redux: fix getFormSchemaByCode selector (5e209c4)

1.0.0-next.241 (2022-06-14)

Bug Fixes

  • redux: remove unsupported params from FetchUserFactory (7278675)

1.0.0-next.240 (2022-06-09)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.239 (2022-06-09)

Features

  • blackout-client|blackout-redux: fix error handling on blackout client and redux (7b1f92f)

1.0.0-next.238 (2022-06-09)

Features

  • blackout-*: convert jsdocs to tsdocs (7936d24)

1.0.0-next.237 (2022-06-07)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.236 (2022-06-03)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.235 (2022-06-02)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.234 (2022-06-02)

Bug Fixes

  • redux: get entity selectors errors (30ef8e4)

1.0.0-next.233 (2022-05-25)

Features

  • blackout-*: fix issues for the release blackout 2 (8fb3d11)

1.0.0-next.232 (2022-05-17)

Features

  • client|redux: add reschedule endpoints (2365af9)

1.0.0-next.231 (2022-05-16)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.230 (2022-05-12)

Features

  • client|redux: add personal id and image endpoints (d295f55)

1.0.0-next.229 (2022-05-11)

Features

  • client|redux: add personal ids endpoints (02d7371)

1.0.0-next.228 (2022-05-10)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.227 (2022-05-10)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.226 (2022-05-04)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.225 (2022-05-02)

Features

  • analytics|client|react: transform Omnitracking integration to typescript (c987863)

1.0.0-next.224 (2022-04-28)

Features

  • blackout-redux: convert analytic's wishlist middleware to typescript (ab2e7a2)

1.0.0-next.223 (2022-04-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.222 (2022-04-27)

Features

  • blackout-redux: convert analytic's bag middleware to typescript (c3f89fd)

1.0.0-next.221 (2022-04-21)

Features

  • client|redux: add phone token validation endpoints on next (58edd6c)

1.0.0-next.220 (2022-04-19)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.219 (2022-04-19)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.218 (2022-04-11)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.217 (2022-04-08)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.216 (2022-04-06)

Features

  • blackout-analytics|blackout-redux: convert analytic's user middleware to typescript (3a6433d)

1.0.0-next.215 (2022-04-05)

Bug Fixes

  • blackout-client|blackout-redux: fix updateUserSubscriptions action (97467d1)

BREAKING CHANGES

  • blackout-client|blackout-redux: The getUserSubscriptionsError selector will not return the error when there is an error for the updateUserSubscriptions action. To check if there was an error for that action, you will need to use the getUpdateSubscriptionsError selector 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)
   };
};

1.0.0-next.214 (2022-04-04)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.213 (2022-04-04)

Bug Fixes

  • blackout-core: fix getWishlistItemIdFromAction function (a8e7256)

1.0.0-next.212 (2022-03-29)

Bug Fixes

  • react: add lodash map render content (8b8a5cc)

Features

  • core|react|redux: fix typescript issues for authentication and users (84920d2)

1.0.0-next.211 (2022-03-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.210 (2022-03-28)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.209 (2022-03-25)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.208 (2022-03-21)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.207 (2022-03-21)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.206 (2022-03-18)

Bug Fixes

  • analytics|react: fix typescript typings (0294198)

1.0.0-next.205 (2022-03-04)

Features

  • redux: update order of components and fix ranking on merge strategy for commerce pages next (ad96bda)

1.0.0-next.204 (2022-03-03)

Bug Fixes

  • core: add groupsOn to the sizes facet's entity id (884138a)

1.0.0-next.203 (2022-03-01)

Bug Fixes

  • redux: add missing reducers and selectors for activities endpoints on next (620ec34)

1.0.0-next.202 (2022-02-24)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.201 (2022-02-22)

Features

  • client|redux: add order activities endpoints (e15afcd)

1.0.0-next.200 (2022-02-22)

Features

  • client|redux: convert subscription area from js to ts (6b623e4)

1.0.0-next.199 (2022-02-15)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.198 (2022-02-14)

Features

  • client|redux: convert orders files to typescript (6066925)

1.0.0-next.197 (2022-02-11)

Features

  • react: move handleAddOrUpdateItem method to new hook (2e29fb9), closes #16

BREAKING CHANGES

  • react: This moves the method handleAddOrUpdateItem to a new hook useAddOrUpdateBagItem. The new hook is necessary since we are using selectors and actions outside a React component.

1.0.0-next.196 (2022-02-11)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.195 (2022-02-07)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.194 (2022-02-07)

Bug Fixes

  • react|redux: fixed GA4 mappings and improved wishlist middleware (7f989e1)

1.0.0-next.193 (2022-02-07)

Bug Fixes

  • redux: fix fetchWishlistSetFactory (138ef0a)

1.0.0-next.192 (2022-02-04)

Features

  • redux: reset users data on logout (f123cb8)

1.0.0-next.191 (2022-02-04)

Features

  • redux: improve actions of 'users' (aa976a2)

1.0.0-next.190 (2022-02-03)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.189 (2022-02-02)

Bug Fixes

  • client|redux: save pickup capabilities time slots (80bcdb8)

1.0.0-next.188 (2022-02-01)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.187 (2022-01-31)

Features

  • client|redux: add new unsubscribe client (a82f004)

1.0.0-next.186 (2022-01-28)

Features

  • client|redux: orders - split core and redux (60580f6)

1.0.0-next.185 (2022-01-26)

Features

  • client|redux: reset orders data on logout (cd23bdd)

1.0.0-next.184 (2022-01-26)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.183 (2022-01-25)

Bug Fixes

  • redux: multiple entries generates same hash contents (597fa06)

1.0.0-next.182 (2022-01-24)

Features

  • redux: add isWishlistSetFetched selector (89115c9)

1.0.0-next.181 (2022-01-20)

Features

  • client|redux: convert recommended area from js to ts … (d86eca2)

1.0.0-next.180 (2022-01-20)

Features

  • client|redux: implement new return endpoint (3442fe4)

BREAKING CHANGES

  • client|redux: - Changed pickupCapabilities endpoint. Instead of a query, now it should receive the pickup day in the format YYYY-MM-DD.

1.0.0-next.179 (2022-01-20)

Features

  • redux: reset loyalty data on logout (877dc08)

1.0.0-next.178 (2022-01-19)

Features

  • client|redux: convert recently viewed area from js to ts (869a576)
  • client|redux: convert recently viewed area from js to ts (d80258c)

1.0.0-next.177 (2022-01-19)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.176 (2022-01-19)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.175 (2022-01-17)

Bug Fixes

  • redux: add id to the lists server initial state (83948bb)

1.0.0-next.174 (2022-01-14)

Features

  • redux: add selectors types for `wishlistsSets`` (a85a00f)

1.0.0-next.173 (2022-01-14)

Features

  • react: add useProductDetails hook (e373f6a)

1.0.0-next.172 (2022-01-13)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.171 (2022-01-13)

Features

  • redux: reset returns data on logout (b52f8c2)

1.0.0-next.170 (2022-01-12)

Features

  • redux: add commerce pages to redux (2924ec3)

1.0.0-next.169 (2022-01-12)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.168 (2022-01-12)

chore

  • redux: returns - rename api (eac274a)

Features

  • redux: provide returns actions with client (73af24c)

BREAKING CHANGES

  • redux: - Rename the action types if you use them in any custom reducer/middleware:
import { actionTypes } from '@farfetch/blackout-client/returns/redux';

// Previously
actionTypes.GET_PICKUP_CAPABILITIES_FAILURE;
actionTypes.GET_PICKUP_CAPABILITIES_REQUEST;
actionTypes.GET_PICKUP_CAPABILITIES_SUCCESS;

actionTypes.GET_REFERENCES_FAILURE;
actionTypes.GET_REFERENCES_REQUEST;
actionTypes.GET_REFERENCES_SUCCESS;

actionTypes.GET_RETURN_FAILURE;
actionTypes.GET_RETURN_REQUEST;
actionTypes.GET_RETURN_SUCCESS;

actionTypes.GET_RETURNS_FROM_ORDER_FAILURE;
actionTypes.GET_RETURNS_FROM_ORDER_REQUEST;
actionTypes.GET_RETURNS_FROM_ORDER_SUCCESS;

// Change to
actionTypes.FETCH_PICKUP_CAPABILITIES_FAILURE;
actionTypes.FETCH_PICKUP_CAPABILITIES_REQUEST;
actionTypes.FETCH_PICKUP_CAPABILITIES_SUCCESS;

actionTypes.FETCH_REFERENCES_FAILURE;
actionTypes.FETCH_REFERENCES_REQUEST;
actionTypes.FETCH_REFERENCES_SUCCESS;

actionTypes.FETCH_RETURN_FAILURE;
actionTypes.FETCH_RETURN_REQUEST;
actionTypes.FETCH_RETURN_SUCCESS;

actionTypes.FETCH_RETURNS_FROM_ORDER_FAILURE;
actionTypes.FETCH_RETURNS_FROM_ORDER_REQUEST;
actionTypes.FETCH_RETURNS_FROM_ORDER_SUCCESS;
  • Rename the action thunk creators:
// Previously
import {
  doCreateReturn,
  doGetReturn,
  doGetPickupCapabilities,
  doGetReferences,
  doGetReturnsFromOrder,
  doResetReturn,
  doUpdateReturn,
} from '@farfetch/blackout-redux/returns';

// Change to
import {
  createReturn,
  fetchReturn,
  fetchPickupCapabilities,
  fetchReferences,
  fetchReturnsFromOrder,
  resetReturn,
  updateReturn,
} from '@farfetch/blackout-redux/returns';

1.0.0-next.167 (2022-01-11)

Features

  • client|redux: convert forms area to ts (43c4a73)

1.0.0-next.166 (2022-01-11)

Features

  • redux|client: add additional user attributes client (86f2455)

1.0.0-next.165 (2022-01-10)

Bug Fixes

1.0.0-next.164 (2022-01-07)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.163 (2021-12-27)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.162 (2021-12-23)

Features

  • redux: provide loyalty actions with a client (2e98225)

1.0.0-next.161 (2021-12-23)

Features

  • change loyalty actions nomenclature (bad8581)

1.0.0-next.160 (2021-12-21)

Features

  • client|redux: general mocks - returns (1d385be)
  • client|redux: split core & redux returns (ebff34d)
  • redux: return statements - returns (4ae2e50)

1.0.0-next.159 (2021-12-16)

Bug Fixes

  • redux: remove circular dependency from recently viewed (9a69cc1)

1.0.0-next.158 (2021-12-16)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.157 (2021-12-15)

Features

  • redux: add promotionEvaluations redux logic (da63b77)

1.0.0-next.156 (2021-12-14)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.155 (2021-12-13)

Features

  • analytics|react|redux: add ga4 custom events support (29eccb3)

1.0.0-next.154 (2021-12-10)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.153 (2021-12-10)

Features

  • add selector to get all product sizes with remaining quantity (28fc8a6)

1.0.0-next.152 (2021-12-09)

Features

  • client|redux: loyalty - split client (6d36e03)

1.0.0-next.151 (2021-12-07)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.150 (2021-12-06)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.149 (2021-12-06)

Bug Fixes

  • redux: make getBagItems return empty array (c339a06)

Features

  • client|redux: profile - rename API and client split (1d74770)

1.0.0-next.148 (2021-12-03)

Bug Fixes

  • redux: remove entries in server initial state of product/details (d73b71f)

1.0.0-next.147 (2021-12-02)

Features

  • redux: add productAggregatorId to add to bag requests (e661332)

1.0.0-next.146 (2021-12-02)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.145 (2021-11-29)

Note: Version bump only for package @farfetch/blackout-redux

1.0.0-next.144 (2021-11-29)

Features