Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Release: 9.1.5 #8138

Merged
merged 7 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/js/data/cart/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const registeredStore = registerStore< State >( STORE_KEY, {
controls: { ...dataControls, ...sharedControls, ...controls } as any,
selectors,
resolvers,
__experimentalUseThunks: true,
} );

registeredStore.subscribe( pushChanges );
Expand Down
1 change: 1 addition & 0 deletions assets/js/data/checkout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const config = {
reducer,
selectors,
actions,
__experimentalUseThunks: true,
};

const store = createReduxStore( STORE_KEY, config );
Expand Down
1 change: 1 addition & 0 deletions assets/js/data/payment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const config = {
actions,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
controls: { ...dataControls, ...sharedControls } as any,
__experimentalUseThunks: true,
};

const store = createReduxStore( STORE_KEY, config );
Expand Down
13 changes: 13 additions & 0 deletions docs/internal-developers/testing/releases/915.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Testing notes and ZIP for release 9.1.5

Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/10377627/woocommerce-gutenberg-products-block.zip)

## Feature plugin and package inclusion in WooCommerce

### Add thunk support for < WP 5.9 ([#8136](https://github.com/woocommerce/woocommerce-blocks/pull/8136))

1. Downgrade your site to WP 5.9.
2. Add the Cart block to a page and ensure it renders in the editor and on the front-end. Ensure you can interact with it and change settings.
3. Repeat with the Checkout block.
4. Create a new page, add the Filter by Price block, the Filter by Attribute block, and the All Products block. Ensure you can interact with each of these in the editor.
5. Go to each of the pages you made in the front-end and ensure you can interact with the filters, add items to your cart, modify quantities in the cart and that you can check out successfully with no errors.
1 change: 1 addition & 0 deletions docs/internal-developers/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Every release includes specific testing instructions for new features and bug fi
- [9.1.2](./912.md)
- [9.1.3](./913.md)
- [9.1.4](./914.md)
- [9.1.5](./915.md)

<!-- FEEDBACK -->

Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== WooCommerce Blocks ===
Contributors: automattic, woocommerce, claudiulodro, tiagonoronha, jameskoster, ryelle, levinmedia, aljullu, mikejolley, nerrad, joshuawold, assassinateur, haszari, mppfeiffer, nielslange, opr18, ralucastn, tjcafferkey
Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 6.1.1
Tested up to: 6.1.1
Requires at least: 5.9
Tested up to: 5.9
Requires PHP: 7.0
Stable tag: 9.1.4
License: GPLv3
Expand Down Expand Up @@ -79,6 +79,12 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 9.1.5 - 2023-01-10 =

#### Bug fixes

- Add thunk support for < WP 5.9 ([#8136](https://github.com/woocommerce/woocommerce-blocks/pull/8136))

= 9.1.4 - 2023-01-04 =

#### Compatibility
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
* Requires at least: 6.1.1
* Requires at least: 5.9
* Requires PHP: 7.0
* WC requires at least: 7.0
* WC tested up to: 7.1
Expand All @@ -18,7 +18,7 @@

defined( 'ABSPATH' ) || exit;

$minimum_wp_version = '6.1.1';
$minimum_wp_version = '5.9';

if ( ! defined( 'WC_BLOCKS_IS_FEATURE_PLUGIN' ) ) {
define( 'WC_BLOCKS_IS_FEATURE_PLUGIN', true );
Expand Down