From 135cbe5ac9d2bf94d55fb0471ec9454d8d5a2beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Sat, 31 Aug 2024 08:31:08 +0200 Subject: [PATCH] Create Block: Set minimum supported WordPress version to 6.6 (#64920) * Create Block: Set minimum supported WordPress version to 6.6 * Update changelog entries Co-authored-by: gziolo Co-authored-by: Mamaduka --- packages/create-block-interactive-template/CHANGELOG.md | 4 ++++ .../plugin-templates/$slug.php.mustache | 2 +- .../plugin-templates/readme.txt.mustache | 2 +- packages/create-block-tutorial-template/CHANGELOG.md | 4 ++++ .../plugin-templates/$slug.php.mustache | 2 +- .../plugin-templates/readme.txt.mustache | 2 +- packages/create-block/CHANGELOG.md | 4 ++++ packages/create-block/lib/init-wp-scripts.js | 2 +- packages/create-block/lib/templates/es5/$slug.php.mustache | 2 +- packages/create-block/lib/templates/es5/readme.txt.mustache | 2 +- packages/create-block/lib/templates/plugin/$slug.php.mustache | 2 +- .../create-block/lib/templates/plugin/readme.txt.mustache | 2 +- 12 files changed, 21 insertions(+), 9 deletions(-) diff --git a/packages/create-block-interactive-template/CHANGELOG.md b/packages/create-block-interactive-template/CHANGELOG.md index 9b061370752df3..52f97a68cbf87a 100644 --- a/packages/create-block-interactive-template/CHANGELOG.md +++ b/packages/create-block-interactive-template/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- Set the minimum supported WordPress version to 6.6 to make it work seamlessly with the latest version of `@wordpress/scripts` package ([#64920](https://github.com/WordPress/gutenberg/pull/64920)). + ## 2.6.0 (2024-08-21) ## 2.5.0 (2024-08-07) diff --git a/packages/create-block-interactive-template/plugin-templates/$slug.php.mustache b/packages/create-block-interactive-template/plugin-templates/$slug.php.mustache index 83890732cc41bc..56f660ce2b1257 100644 --- a/packages/create-block-interactive-template/plugin-templates/$slug.php.mustache +++ b/packages/create-block-interactive-template/plugin-templates/$slug.php.mustache @@ -8,7 +8,7 @@ * Description: {{description}} {{/description}} * Version: {{version}} - * Requires at least: 6.1 + * Requires at least: 6.6 * Requires PHP: 7.0 {{#author}} * Author: {{author}} diff --git a/packages/create-block-interactive-template/plugin-templates/readme.txt.mustache b/packages/create-block-interactive-template/plugin-templates/readme.txt.mustache index f069906fb19fa5..c3abf5ae4ec024 100644 --- a/packages/create-block-interactive-template/plugin-templates/readme.txt.mustache +++ b/packages/create-block-interactive-template/plugin-templates/readme.txt.mustache @@ -3,7 +3,7 @@ Contributors: {{author}} {{/author}} Tags: block -Tested up to: 6.1 +Tested up to: 6.6 Stable tag: {{version}} {{#license}} License: {{license}} diff --git a/packages/create-block-tutorial-template/CHANGELOG.md b/packages/create-block-tutorial-template/CHANGELOG.md index ddcf23926e52a0..50290a8e07e90e 100644 --- a/packages/create-block-tutorial-template/CHANGELOG.md +++ b/packages/create-block-tutorial-template/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- Set the minimum supported WordPress version to 6.6 to make it work seamlessly with the latest version of `@wordpress/scripts` package ([#64920](https://github.com/WordPress/gutenberg/pull/64920)). + ## 4.6.0 (2024-08-21) ## 4.5.0 (2024-08-07) diff --git a/packages/create-block-tutorial-template/plugin-templates/$slug.php.mustache b/packages/create-block-tutorial-template/plugin-templates/$slug.php.mustache index 6de24df94c8d83..bcc7f7537d95a8 100644 --- a/packages/create-block-tutorial-template/plugin-templates/$slug.php.mustache +++ b/packages/create-block-tutorial-template/plugin-templates/$slug.php.mustache @@ -8,7 +8,7 @@ * Description: {{description}} {{/description}} * Version: {{version}} - * Requires at least: 6.2 + * Requires at least: 6.6 * Requires PHP: 7.0 {{#author}} * Author: {{author}} diff --git a/packages/create-block-tutorial-template/plugin-templates/readme.txt.mustache b/packages/create-block-tutorial-template/plugin-templates/readme.txt.mustache index d2b31bed6c0e60..c3abf5ae4ec024 100644 --- a/packages/create-block-tutorial-template/plugin-templates/readme.txt.mustache +++ b/packages/create-block-tutorial-template/plugin-templates/readme.txt.mustache @@ -3,7 +3,7 @@ Contributors: {{author}} {{/author}} Tags: block -Tested up to: 6.4 +Tested up to: 6.6 Stable tag: {{version}} {{#license}} License: {{license}} diff --git a/packages/create-block/CHANGELOG.md b/packages/create-block/CHANGELOG.md index b0dae14eb13c87..3f742b352614e0 100644 --- a/packages/create-block/CHANGELOG.md +++ b/packages/create-block/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- Unpin the `@wordpress/scripts` version and set the minimum supported WordPress version to 6.6 ([#64920](https://github.com/WordPress/gutenberg/pull/64920)). + ## 4.49.0 (2024-08-21) ## 4.48.0 (2024-08-07) diff --git a/packages/create-block/lib/init-wp-scripts.js b/packages/create-block/lib/init-wp-scripts.js index 531eb970d89255..ca0101957f47f1 100644 --- a/packages/create-block/lib/init-wp-scripts.js +++ b/packages/create-block/lib/init-wp-scripts.js @@ -16,7 +16,7 @@ module.exports = async ( { slug } ) => { info( 'Installing `@wordpress/scripts` package. It might take a couple of minutes...' ); - await command( 'npm install @wordpress/scripts@27 --save-dev', { + await command( 'npm install @wordpress/scripts --save-dev', { cwd, } ); diff --git a/packages/create-block/lib/templates/es5/$slug.php.mustache b/packages/create-block/lib/templates/es5/$slug.php.mustache index 0f64471e434a7f..a67c3ad55d3fec 100644 --- a/packages/create-block/lib/templates/es5/$slug.php.mustache +++ b/packages/create-block/lib/templates/es5/$slug.php.mustache @@ -7,7 +7,7 @@ {{#description}} * Description: {{description}} {{/description}} - * Requires at least: 6.1 + * Requires at least: 6.6 * Requires PHP: 7.0 * Version: {{version}} {{#author}} diff --git a/packages/create-block/lib/templates/es5/readme.txt.mustache b/packages/create-block/lib/templates/es5/readme.txt.mustache index f069906fb19fa5..c3abf5ae4ec024 100644 --- a/packages/create-block/lib/templates/es5/readme.txt.mustache +++ b/packages/create-block/lib/templates/es5/readme.txt.mustache @@ -3,7 +3,7 @@ Contributors: {{author}} {{/author}} Tags: block -Tested up to: 6.1 +Tested up to: 6.6 Stable tag: {{version}} {{#license}} License: {{license}} diff --git a/packages/create-block/lib/templates/plugin/$slug.php.mustache b/packages/create-block/lib/templates/plugin/$slug.php.mustache index 45487ef61006f7..4524477ba73df2 100644 --- a/packages/create-block/lib/templates/plugin/$slug.php.mustache +++ b/packages/create-block/lib/templates/plugin/$slug.php.mustache @@ -7,7 +7,7 @@ {{#description}} * Description: {{description}} {{/description}} - * Requires at least: 6.1 + * Requires at least: 6.6 * Requires PHP: 7.0 * Version: {{version}} {{#author}} diff --git a/packages/create-block/lib/templates/plugin/readme.txt.mustache b/packages/create-block/lib/templates/plugin/readme.txt.mustache index f069906fb19fa5..c3abf5ae4ec024 100644 --- a/packages/create-block/lib/templates/plugin/readme.txt.mustache +++ b/packages/create-block/lib/templates/plugin/readme.txt.mustache @@ -3,7 +3,7 @@ Contributors: {{author}} {{/author}} Tags: block -Tested up to: 6.1 +Tested up to: 6.6 Stable tag: {{version}} {{#license}} License: {{license}}