From 70df80a166897b7c6003738effb4b6e55f6f1ad8 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Mon, 26 Oct 2020 10:28:16 +0100 Subject: [PATCH 1/2] Create Block: Update the list of categories to pick from --- packages/create-block/CHANGELOG.md | 5 +++++ packages/create-block/lib/prompts.js | 2 +- packages/create-block/lib/templates/es5/readme.txt.mustache | 4 ++-- .../create-block/lib/templates/esnext/readme.txt.mustache | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/create-block/CHANGELOG.md b/packages/create-block/CHANGELOG.md index c405a7a8021e3..b0e3e4e5508e4 100644 --- a/packages/create-block/CHANGELOG.md +++ b/packages/create-block/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +### Breaking Changes + +- Update the list of available block categories to align with changes introduced in WordPress 5.0. +- Set the minimum required version of WordPress to 5.0 to ensure that block is correctly registered with new block categories. + ## 0.16.0 (2020-06-25) ### New Feature diff --git a/packages/create-block/lib/prompts.js b/packages/create-block/lib/prompts.js index 5624f984f8292..0396737e47cc4 100644 --- a/packages/create-block/lib/prompts.js +++ b/packages/create-block/lib/prompts.js @@ -70,7 +70,7 @@ const category = { type: 'list', name: 'category', message: 'The category name to help users browse and discover your block:', - choices: [ 'common', 'embed', 'formatting', 'layout', 'widgets' ], + choices: [ 'text', 'media', 'design', 'widgets', 'embed' ], }; const author = { diff --git a/packages/create-block/lib/templates/es5/readme.txt.mustache b/packages/create-block/lib/templates/es5/readme.txt.mustache index 763e27bca5d91..56262c0b4d263 100644 --- a/packages/create-block/lib/templates/es5/readme.txt.mustache +++ b/packages/create-block/lib/templates/es5/readme.txt.mustache @@ -3,8 +3,8 @@ Contributors: {{author}} {{/author}} Tags: block -Requires at least: 5.3.2 -Tested up to: 5.4.1 +Requires at least: 5.5.0 +Tested up to: 5.5.1 Stable tag: {{version}} Requires PHP: 7.0.0 {{#license}} diff --git a/packages/create-block/lib/templates/esnext/readme.txt.mustache b/packages/create-block/lib/templates/esnext/readme.txt.mustache index 763e27bca5d91..56262c0b4d263 100644 --- a/packages/create-block/lib/templates/esnext/readme.txt.mustache +++ b/packages/create-block/lib/templates/esnext/readme.txt.mustache @@ -3,8 +3,8 @@ Contributors: {{author}} {{/author}} Tags: block -Requires at least: 5.3.2 -Tested up to: 5.4.1 +Requires at least: 5.5.0 +Tested up to: 5.5.1 Stable tag: {{version}} Requires PHP: 7.0.0 {{#license}} From 7bbf365d2aede985ee544b7aca4f23638edf53d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Mon, 26 Oct 2020 10:44:16 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- packages/create-block/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-block/CHANGELOG.md b/packages/create-block/CHANGELOG.md index b0e3e4e5508e4..1ab34efe200f6 100644 --- a/packages/create-block/CHANGELOG.md +++ b/packages/create-block/CHANGELOG.md @@ -4,8 +4,8 @@ ### Breaking Changes -- Update the list of available block categories to align with changes introduced in WordPress 5.0. -- Set the minimum required version of WordPress to 5.0 to ensure that block is correctly registered with new block categories. +- Update the list of available block categories to align with changes introduced in WordPress 5.5.0 (https://make.wordpress.org/core/2020/07/30/block-api-updates-in-5-5/). +- Set the minimum required version of WordPress to 5.5.0 to ensure that block is correctly registered with new block categories. ## 0.16.0 (2020-06-25)