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

Release: 8.7.4 #7449

Merged
merged 26 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a4c78bc
Empty commit for release pull request
invalid-email-address Oct 13, 2022
5f2e0e0
Added readme.txt changelog entry
wavvves Oct 13, 2022
b2bb28d
Update HPOS compatibility snippet (#7395)
alexflorisca Oct 13, 2022
dac5819
8.7.2 Testing notes
wavvves Oct 13, 2022
4c25fbc
Update testing notes
wavvves Oct 13, 2022
85ead2e
Update testing notes
wavvves Oct 13, 2022
de5396a
Bumped version
wavvves Oct 13, 2022
4b242de
Refactor force billing: remove forcedBillingAddress from conditions f…
Oct 14, 2022
4627bb5
Updated testing instructions and changelog to include #7393
wavvves Oct 14, 2022
a022233
Updated testing zip
wavvves Oct 14, 2022
458b153
Bumping version strings to new version.
wavvves Oct 14, 2022
723c9f2
Empty commit for release pull request
invalid-email-address Oct 20, 2022
d880074
Merge branch 'release/8.7.0' into release/8.7.3
wavvves Oct 20, 2022
1a8838c
Fix wrong keys being sent in `canMakePayment` and customer data showi…
opr Oct 20, 2022
c6025fc
Updated readme.txt
wavvves Oct 20, 2022
8a0dcdb
Reverted stable tag change on readme.txt
wavvves Oct 20, 2022
31f94c6
Testing instructions
wavvves Oct 20, 2022
35db00b
Cleaned out testing instructions
wavvves Oct 20, 2022
f475a62
Bumping version strings to new version.
wavvves Oct 20, 2022
b6cd0bc
Empty commit for release pull request
invalid-email-address Oct 21, 2022
522f06c
Merge branch 'release/8.7.0' into release/8.7.4
wavvves Oct 21, 2022
5d68114
Testing instructions
wavvves Oct 21, 2022
9b807a4
package-lock.json version bump
wavvves Oct 21, 2022
115b9b0
Revert "Fix `useForcedLayout` to re-select inner blocks after we manu…
opr Oct 21, 2022
87bf5b8
Testing zip
wavvves Oct 21, 2022
b47cb6b
Bumping version strings to new version.
wavvves Oct 21, 2022
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
8 changes: 2 additions & 6 deletions assets/js/blocks/cart-checkout-shared/use-forced-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
useRef,
useCallback,
useMemo,
useState,
} from '@wordpress/element';
import { useSelect, useDispatch } from '@wordpress/data';
import {
Expand Down Expand Up @@ -42,8 +41,6 @@ export const useForcedLayout = ( {
} ): void => {
const currentRegisteredBlocks = useRef( registeredBlocks );
const currentDefaultTemplate = useRef( defaultTemplate );
const [ forcedBlocksInserted, setForcedBlocksInserted ] =
useState< number >( 0 );

const { insertBlock, replaceInnerBlocks } =
useDispatch( 'core/block-editor' );
Expand All @@ -58,18 +55,17 @@ export const useForcedLayout = ( {
),
};
},
[ clientId, currentRegisteredBlocks.current, forcedBlocksInserted ]
[ clientId, currentRegisteredBlocks.current ]
);

const appendBlock = useCallback(
( block, position ) => {
const newBlock = createBlock( block.name );
insertBlock( newBlock, position, clientId, false );
setForcedBlocksInserted( forcedBlocksInserted + 1 );
},
// We need to skip insertBlock here due to a cache issue in wordpress.com that causes an inifinite loop, see https://github.com/Automattic/wp-calypso/issues/66092 for an expanded doc.
// eslint-disable-next-line react-hooks/exhaustive-deps
[ clientId, forcedBlocksInserted ]
[ clientId ]
);

const lockedBlockTypes = useMemo(
Expand Down
13 changes: 13 additions & 0 deletions docs/internal-developers/testing/releases/874.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Testing notes and ZIP for release 8.7.4

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

## Feature plugin and package inclusion in WooCommerce

### Compatibility fix for Cart and Checkout inner blocks for WordPress 6.1. ([7447](https://github.com/woocommerce/woocommerce-blocks/pull/7447))

#### User Facing Testing

1. Install latest Gutenberg plugin or WordPress 6.1.
2. Install WooCommerce Gift Cards, or grab this plugin: [extension-for-testing.zip](https://github.com/woocommerce/woocommerce-blocks/files/9839394/extension-for-testing.1.zip)
3. Add a new page. Add the Checkout block. Ensure the `Contact information` section loads, and ensure you do not see any errors where blocks should appear, both on the editor and the published checkout page.
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 @@ -95,6 +95,7 @@ Every release includes specific testing instructions for new features and bug fi
- [8.7.1](./871.md)
- [8.7.2](./872.md)
- [8.7.3](./873.md)
- [8.7.4](./874.md)

<!-- FEEDBACK -->

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 8.7.4 - 2022-10-21 =

#### Bug fixes
- Compatibility fix for Cart and Checkout inner blocks for WordPress 6.1. ([7447](https://github.com/woocommerce/woocommerce-blocks/pull/7447))

= 8.7.3 - 2022-10-20 =

#### Bug fixes
- Fixed an issue where the argument passed to `canMakePayment` contained the incorrect keys. Also fixed the current user's customer data appearing in the editor when editing the Checkout block.
- Fixed an issue where the argument passed to `canMakePayment` contained the incorrect keys. Also fixed the current user's customer data appearing in the editor when editing the Checkout block. ([7434](https://github.com/woocommerce/woocommerce-blocks/pull/7434))

= 8.7.2 - 2022-10-13 =

Expand Down