This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Releases: woocommerce/woocommerce-blocks
Releases · woocommerce/woocommerce-blocks
5.3.0
Enhancements
- Hide the Cart and Checkout blocks from the new block-based widget editor. (4303)
- Provide block transforms for legacy widgets with a feature-complete block equivalent. (4292)
Bug Fixes
- Fix some missing translations from the Cart and Checkout blocks. (4295)
- Fix the flickering of the Proceed to Checkout button on quantity update in the Cart Block. (4293)
- Fix a bug in which Cart Widget didn't update when adding items from the All Products block. (4291)
- Fix a display issue when itemized taxes are enabled, but no products in the cart are taxable. (4284)
- Fix an issue where an attempt to add an out-of-stock product to the cart was made when clicking the "Read more" button. (4265)
Compatibility
- Add the ability for extensions to register callbacks to be executed by Blocks when the cart/extensions endpoint is hit. Extensions can now tell Blocks they need to do some server-side processing which will update the cart. (4298)
Various
- Add Slot in the Discounts section of the cart sidebar to allow third-party extensions to render their own components there. (4248)
5.2.0
Enhancements
- Added a key prop to each
CartTotalItem
withinusePaymentMethodInterface
. (4240) - Hide legacy widgets with a feature-complete block equivalent from the widget area block inserter. (4237)
- Hide the All Products Block from the Customizer Widget Areas until full support is achieved. (4225)
- Sync customer data during checkout with draft orders. (4197)
- Update the display of the sidebar/order summary in the Cart and Checkout blocks. (4180)
- Improved accessibility and styling of the controls of several of ours blocks. (4100)
Bug Fixes
- Hide tax breakdown if the total amount of tax to be paid is 0. (4262)
- Prevent Coupon code panel from appearing in stores were coupons are disabled. (4202)
- For payment methods, only use
canMakePayment
in the frontend (not the editor) context. (4188) - Fix duplicate react keys in ProductDetails component. (4187)
- Fix sending of confirmation emails for orders when no payment is needed. (4186)
- Stopped a warning being shown when using WooCommerce Force Sells and adding a product with a Synced Force Sell to the cart. (4182)
Various
5.1.0
Release of version 5.1.0.
Changelog
Enhancements
- Improve error message displayed when a payment method didn't have all its dependencies registered. (4176)
- Improvements to
emitEventWithAbort
. (4158)
Bug Fixes
- Fix issue in which email and phone fields are cleared when using a separate billing address. (4162)
5.0.0
Release of version 5.0.0.
Changelog:
Enhancements
- Added support to the Store API for batching requests. This allows multiple POST requests to be made at once to reduce the number of separate requests being made to the API. (4075)
Bug Fixes
- Prevent parts of old addresses being displayed in the shipping calculator when changing countries. (4038)
Refactor
- Rename onCheckoutBeforeProcessing to onCheckoutValidationBeforeProcessing.
- Switched to
rest_preload_api_request
for API hydration in cart and checkout blocks. (4090) - Introduced AssetsController and BlockTypesController classes (which replace Assets.php and Library.php). (4094)
- Replaced usage of the
woocommerce_shared_settings
hook. This will be deprecated. (4092)
4.9.1
4.9.0
Enhancements
- Added compatibility with the Google Analytics Integration. Block events, including cart and checkout, can now be tracked. (4020)
Dev note
Blocks are now compatible with the Google Analytics Integration: https://woocommerce.com/products/woocommerce-google-analytics/ If using Google Analytics with GTAG support (and a G-
prefixed site ID), block events will also be tracked. This includes:
- Product searches in the Product Search Block
- Product views in the product grid blocks and All Products Block
- Add to cart events
- Cart item changes
- Checkout progress events.
Bug Fixes
- Use font color in payment methods border. (4051)
- Load translation file for JS files that has translatable strings. (4050)
- Stop shipping package titles line-breaks occurring in the middle of a word. (4049)
- Fixed styling issues on the cart and checkout page in Twenty(X) themes. (4046)
- Fix headline alignment in the empty state of the cart block. (4044)
- Fix button alignment in Featured Product and Featured Category blocks. (4028)
Technical debt
- Removed legacy handling for SSR blocks that rendered shortcodes. (4010)
4.8.0
Enhancements
- Registered payment methods now have access to the
shouldSavePayment
prop in their components (which indicates whether the shopper has checked the save payment method checkbox). (3990) - Payment methods implementing the
savedTokenComponent
configuration property will now have theonPaymentProcessing
event available to the registered component. (3982)
Bug Fixes
4.7.0
Enhancements
- A new configuration property is available to registered payment methods for additional logic handling of saved payment method tokens. (3961)
- Provided billing data to payment method extensions so they can decide if payment is possible. (3922)
- Prevent errant payment methods from keeping Cart and Checkout blocks from loading. (3920)
- Fix block elements that don't play well with dark backgrounds. (3887)
Bug Fixes
- Remove extra padding from payment methods with no description. (3952)
- Fix "save payment" checkbox not showing for payment methods. (3950)
- Fix cart preview when shipping rates are set to be hidden until an address is entered. (3946)
- Sync cart item quantity if its Implicitly changed. (3907)
- Fix FSE not being visible when WC Blocks was enabled. (3898)
- Ensure sale badges have a uniform height in the Cart block. (3897)
4.6.0
Release of version 4.6.0.
Changelog
Bug Fixes
- Handle out-of-stock product visibility setting in All Products block. (3859)
- Show cart item subtotal instead of total in Cart and Checkout blocks (#3905)
- Fix button styles in Twenty Nineteen theme. (3862)
- Return correct sale/regular prices for variable products in the Store API. (3854)
- Remove shadows from text buttons and gradient background from selects in some themes. (3846)
- Hide Browse Shop link in cart block empty state when there is no shop page. (3845)
Various
- StoreAPI: Inject Order and Cart Controllers into Routes. (3871)
- Update Panel component class names to follow guidelines. More info can be found in our theming docs: https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/18dd54f07262b4d1dcf15561624617f824fcdc22/docs/theming/class-names-update-460.md. (3860)
- Refactor block type registration to support 3rd party integrations.
Dev note:
An important note that internally, this release has modified how AbstractBlock
(the base class for all of our blocks) functions, and how it loads assets. AbstractBlock
is internal to this project and does not seem like something that would ever need to be extended by 3rd parties, but note if you are doing so for whatever reason, your implementation would need to be updated to match. (3829)