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

Release: 7.2.0 #6003

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5667b6e
Empty commit for release pull request
invalid-email-address Mar 7, 2022
6a94494
Update error codes with `woocommerce_rest_` prefixes.
mikejolley Mar 3, 2022
c7c8f3a
Update action and filter hooks with woocommerce_store_api_ prefix
mikejolley Mar 3, 2022
682f59b
Update hook docs
mikejolley Mar 3, 2022
bf242e5
Update error code mismatches
mikejolley Mar 3, 2022
ad11c1f
Update hook name in tests
mikejolley Mar 4, 2022
5fe9d69
update hook name in tests
mikejolley Mar 4, 2022
a36f81f
phpcs
mikejolley Mar 4, 2022
ebdc0a2
Remove internal comments
mikejolley Mar 7, 2022
91804e1
Remove line break
mikejolley Mar 7, 2022
4f238f5
Notices
mikejolley Mar 7, 2022
9fe3db6
Clear notices session after handling
xristos3490 Mar 2, 2022
1a9d0e5
Add feature gate for the global styles for Product Sale Badge block #…
gigitux Mar 7, 2022
e53e756
add a check for the spacing support
gigitux Mar 7, 2022
4d48434
Move __experimentalSelector outside of hasSpacingStyleSupport check
tomasztunik Mar 8, 2022
e304d93
Change atomic blocks to not use custom webpack build paths
tomasztunik Mar 3, 2022
c643db1
Add footer parts to test themes
sunyatasattva Mar 3, 2022
bd7ac5f
Use REST API to tear down the templates
sunyatasattva Mar 3, 2022
da16a65
Remove deprecated pupeteer waitFor usage
tomasztunik Mar 4, 2022
3e42660
Update package-lock.json
sunyatasattva Mar 4, 2022
32035d6
pin package versions
tomasztunik Mar 7, 2022
9fa967e
Unify all atomic blocks to register on php side
tomasztunik Mar 8, 2022
5146bbd
Remove Atomic Blcoks chunk_translation handling from AllBlocks
tomasztunik Mar 8, 2022
8659e85
Add per atomic block chunk_translation registration
tomasztunik Mar 8, 2022
f49e87e
update @wordpress/e2e-test-utils to 6.0.2
tomasztunik Mar 9, 2022
785bb06
add optional puppeteer
gigitux Mar 9, 2022
846794b
pin workflows node version to 16.13.2
tomasztunik Mar 9, 2022
0d283bf
upgrade package-lock
gigitux Mar 9, 2022
dd7b216
upgrade package-lock
gigitux Mar 9, 2022
ba3b96e
set react and react-dom as peerDeps
tomasztunik Mar 9, 2022
5f374b4
remove atomic block registration
gigitux Mar 9, 2022
d37a4d0
Resolve package merge conflicts
mikejolley Mar 10, 2022
0be7862
Remove X- Prefixes from custom headers
mikejolley Mar 9, 2022
1117d9c
Fix docs
mikejolley Mar 9, 2022
107516b
Handle deprecated X-WC-Store-API-Nonce header if received
mikejolley Mar 10, 2022
e6db41c
Send old nonce until future version removes this
mikejolley Mar 10, 2022
720170b
Add todo and cut off date
mikejolley Mar 10, 2022
233c801
wc_deprecated_argument
mikejolley Mar 10, 2022
2a2c139
Update todo name
mikejolley Mar 10, 2022
e620b38
typo
mikejolley Mar 10, 2022
b5cacf4
Back compat in batch
mikejolley Mar 10, 2022
db759ae
Flip Nonce logic to make it easier to support both in client bw compa…
mikejolley Mar 11, 2022
2b558e0
Correctly load JS translations from WC core (II)
Aljullu Mar 10, 2022
6e61970
typo
mikejolley Mar 11, 2022
cf193c0
empty instead of count
mikejolley Mar 11, 2022
d7698e4
Add changelog
mikejolley Mar 11, 2022
3b8f193
Add missing chunk to register_block_type_assets
mikejolley Mar 11, 2022
0087e2b
Add testing instructions
mikejolley Mar 11, 2022
232ab03
Change `shippingRatesLoading` to `isLoadingRates`
opr Mar 4, 2022
53ad01d
Revert isLoadingRates back to old name in payment method interface
opr Mar 10, 2022
211b9c8
Update docs with correct names returned by usePaymentMethodInterface
opr Mar 10, 2022
47c4688
Update TS to name the selectShippingRate method correctly
opr Mar 10, 2022
a564660
Change method name on usePaymentMethodInterface back
opr Mar 10, 2022
1bdffe3
Revert "Remove .gitattributes file (#5242)"
mikejolley Mar 14, 2022
bdf3b3a
Make shipping address field optional on checkout routes
mikejolley Mar 14, 2022
60e30a0
Make update_customer_from_request use billing for shipping if omitted
mikejolley Mar 14, 2022
882974b
making shipping optional when needed
senadir Mar 14, 2022
533493d
Testing steps
mikejolley Mar 14, 2022
21f71da
add zip file
mikejolley Mar 14, 2022
6fe450a
Remove invalid test from instructions
mikejolley Mar 14, 2022
b6b8a00
Remove changelog for experimental item
mikejolley Mar 14, 2022
b64bffc
Bumping version strings to new version.
mikejolley Mar 15, 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
32 changes: 32 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Ignore all hidden files and directories
/.* export-ignore

# Ignore all markdown files
/*.md export-ignore

# Ignore following directories and contents
/node_modules* export-ignore
/tests export-ignore
/bin export-ignore
/docs export-ignore
/storybook export-ignore

# Ignore following configuration files
/phpcs.xml export-ignore
/phpunit.* export-ignore
/composer.lock export-ignore
/composer.json export-ignore
/CODEOWNERS export-ignore
/renovate.json export-ignore
/webpack.config.js export-ignore
/postcss.config.js export-ignore
/bundlesize.config.json export-ignore
/package.json export-ignore
/package-lock.json export-ignore
/babel.config.js export-ignore
/docker-compose.yml export-ignore
/globals.d.ts export-ignore
/tsconfig.json export-ignore
/tsconfig.base.json export-ignore
/tsconfig.base export-ignore
/webpack.config.js export-ignore
8 changes: 4 additions & 4 deletions .github/workflows/check-modified-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
restore-keys: |
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-
- name: Use Node.js 14.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.13.2
- name: npm install and build
run: |
npm ci
Expand All @@ -51,10 +51,10 @@ jobs:
restore-keys: |
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-
- name: Use Node.js 14.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.13.2
- name: npm install
run: |
npm ci
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/php-js-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-

- name: Use Node.js 16.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 16.13.2

- name: Npm install and build
run: |
Expand Down Expand Up @@ -95,10 +95,10 @@ jobs:
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-

- name: Use Node.js 16.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 16.13.2

- name: Npm install and build
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-

- name: Use Node.js 14.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.13.2

- name: Npm install and build
run: |
Expand Down Expand Up @@ -73,10 +73,10 @@ jobs:
restore-keys: |
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-
- name: Use Node.js 14.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.13.2

- name: Npm install #build is not needed
run: |
Expand Down Expand Up @@ -118,10 +118,10 @@ jobs:
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ secrets.CACHE_VERSION }}-

- name: Use Node.js 14.x
- name: Use Node.js 16.13.2
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.13.2

- name: Npm install and build
run: |
Expand Down
24 changes: 12 additions & 12 deletions assets/js/atomic/blocks/component-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-price',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/price" */ './product-elements/price/block'
/* webpackChunkName: "product-price" */ './product-elements/price/block'
)
),
} );
Expand All @@ -22,7 +22,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-image',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/image" */ './product-elements/image/frontend'
/* webpackChunkName: "product-image" */ './product-elements/image/frontend'
)
),
} );
Expand All @@ -31,7 +31,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-title',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/title" */ './product-elements/title/frontend'
/* webpackChunkName: "product-title" */ './product-elements/title/frontend'
)
),
} );
Expand All @@ -40,7 +40,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-rating',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/rating" */ './product-elements/rating/block'
/* webpackChunkName: "product-rating" */ './product-elements/rating/block'
)
),
} );
Expand All @@ -49,7 +49,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-button',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/button" */ './product-elements/button/block'
/* webpackChunkName: "product-button" */ './product-elements/button/block'
)
),
} );
Expand All @@ -58,7 +58,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-summary',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/summary" */ './product-elements/summary/block'
/* webpackChunkName: "product-summary" */ './product-elements/summary/block'
)
),
} );
Expand All @@ -67,7 +67,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-sale-badge',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/sale-badge" */ './product-elements/sale-badge/block'
/* webpackChunkName: "product-sale-badge" */ './product-elements/sale-badge/block'
)
),
} );
Expand All @@ -76,7 +76,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-sku',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/sku" */ './product-elements/sku/block'
/* webpackChunkName: "product-sku" */ './product-elements/sku/block'
)
),
} );
Expand All @@ -85,7 +85,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-category-list',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/category-list" */ './product-elements/category-list/block'
/* webpackChunkName: "product-category-list" */ './product-elements/category-list/block'
)
),
} );
Expand All @@ -94,7 +94,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-tag-list',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/tag-list" */ './product-elements/tag-list/block'
/* webpackChunkName: "product-tag-list" */ './product-elements/tag-list/block'
)
),
} );
Expand All @@ -103,7 +103,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-stock-indicator',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/stock-indicator" */ './product-elements/stock-indicator/block'
/* webpackChunkName: "product-stock-indicator" */ './product-elements/stock-indicator/block'
)
),
} );
Expand All @@ -112,7 +112,7 @@ registerBlockComponent( {
blockName: 'woocommerce/product-add-to-cart',
component: lazy( () =>
import(
/* webpackChunkName: "atomic-block-components/add-to-cart" */ './product-elements/add-to-cart/frontend'
/* webpackChunkName: "product-add-to-cart" */ './product-elements/add-to-cart/frontend'
)
),
} );
15 changes: 11 additions & 4 deletions assets/js/atomic/blocks/product-elements/button/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*/
import { isFeaturePluginBuild } from '@woocommerce/block-settings';

/**
* Internal dependencies
*/
import { hasSpacingStyleSupport } from '../../../../utils/global-style';

export const supports = {
...( isFeaturePluginBuild() && {
color: {
Expand All @@ -15,10 +20,12 @@ export const supports = {
radius: true,
__experimentalSkipSerialization: true,
},
spacing: {
padding: true,
__experimentalSkipSerialization: true,
},
...( hasSpacingStyleSupport() && {
spacing: {
padding: true,
__experimentalSkipSerialization: true,
},
} ),
typography: {
fontSize: true,
__experimentalFontWeight: true,
Expand Down
15 changes: 11 additions & 4 deletions assets/js/atomic/blocks/product-elements/image/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*/
import { isFeaturePluginBuild } from '@woocommerce/block-settings';

/**
* Internal dependencies
*/
import { hasSpacingStyleSupport } from '../../../../utils/global-style';

export const supports = {
...( isFeaturePluginBuild() && {
__experimentalBorder: {
Expand All @@ -13,10 +18,12 @@ export const supports = {
fontSize: true,
__experimentalSkipSerialization: true,
},
spacing: {
margin: true,
__experimentalSkipSerialization: true,
},
...( hasSpacingStyleSupport() && {
spacing: {
margin: true,
__experimentalSkipSerialization: true,
},
} ),
__experimentalSelector: '.wc-block-components-product-image',
} ),
};
48 changes: 27 additions & 21 deletions assets/js/atomic/blocks/product-elements/sale-badge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* External dependencies
*/
import { registerBlockType } from '@wordpress/blocks';
import { isFeaturePluginBuild } from '@woocommerce/block-settings';

/**
* Internal dependencies
Expand All @@ -15,6 +16,7 @@ import {
BLOCK_DESCRIPTION as description,
} from './constants';
import { Save } from './save';
import { hasSpacingStyleSupport } from '../../../../utils/global-style';

const blockConfig = {
title,
Expand All @@ -23,27 +25,31 @@ const blockConfig = {
apiVersion: 2,
supports: {
html: false,
color: {
gradients: true,
background: true,
link: false,
__experimentalSkipSerialization: true,
},
typography: {
fontSize: true,
__experimentalSkipSerialization: true,
},
__experimentalBorder: {
color: true,
radius: true,
width: true,
__experimentalSkipSerialization: true,
},
spacing: {
padding: true,
__experimentalSkipSerialization: true,
},
__experimentalSelector: '.wc-block-components-product-sale-badge',
...( isFeaturePluginBuild() && {
color: {
gradients: true,
background: true,
link: false,
__experimentalSkipSerialization: true,
},
typography: {
fontSize: true,
__experimentalSkipSerialization: true,
},
__experimentalBorder: {
color: true,
radius: true,
width: true,
__experimentalSkipSerialization: true,
},
...( hasSpacingStyleSupport() && {
spacing: {
padding: true,
__experimentalSkipSerialization: true,
},
} ),
__experimentalSelector: '.wc-block-components-product-sale-badge',
} ),
},
attributes,
edit,
Expand Down
Loading