Skip to content

Commit 380f24a

Browse files
authored
Merge pull request #66 from wpengine/changeset-release/main
Release Plugin
2 parents 03c6ed1 + 810bf3b commit 380f24a

36 files changed

+83
-164
lines changed

.changeset/angry-coins-think.md

-5
This file was deleted.

.changeset/blue-ducks-happen.md

-5
This file was deleted.

.changeset/bright-avocados-design.md

-5
This file was deleted.

.changeset/chilled-cameras-grin.md

-5
This file was deleted.

.changeset/chilly-spies-wash.md

-5
This file was deleted.

.changeset/cuddly-countries-doubt.md

-5
This file was deleted.

.changeset/fair-students-move.md

-5
This file was deleted.

.changeset/few-seas-happen.md

-5
This file was deleted.

.changeset/flat-buttons-shake.md

-5
This file was deleted.

.changeset/forty-cobras-swim.md

-5
This file was deleted.

.changeset/funny-boxes-study.md

-5
This file was deleted.

.changeset/good-colts-develop.md

-5
This file was deleted.

.changeset/gorgeous-horses-arrive.md

-5
This file was deleted.

.changeset/great-ravens-joke.md

-5
This file was deleted.

.changeset/green-bobcats-cover.md

-5
This file was deleted.

.changeset/hot-files-jump.md

-5
This file was deleted.

.changeset/long-gorillas-rescue.md

-5
This file was deleted.

.changeset/orange-actors-watch.md

-5
This file was deleted.

.changeset/poor-books-heal.md

-5
This file was deleted.

.changeset/pretty-owls-decide.md

-5
This file was deleted.

.changeset/purple-rockets-promise.md

-5
This file was deleted.

.changeset/quiet-boxes-relax.md

-5
This file was deleted.

.changeset/rare-snakes-return.md

-5
This file was deleted.

.changeset/rare-toes-brush.md

-5
This file was deleted.

.changeset/rude-penguins-develop.md

-5
This file was deleted.

.changeset/silver-poems-move.md

-5
This file was deleted.

.changeset/strong-paws-pump.md

-5
This file was deleted.

.changeset/ten-fishes-breathe.md

-5
This file was deleted.

.changeset/three-ways-dress.md

-5
This file was deleted.

.changeset/two-numbers-end.md

-5
This file was deleted.

.changeset/wise-boxes-teach.md

-5
This file was deleted.

CHANGELOG.md

+39
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# WPGraphQL Content Blocks
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- 5765443: Fix regression where intentionally empty blocks were removed, if blocks have names they are now retained.
8+
- eb8e364: Add support for Reusable Blocks
9+
- 1bde257: Fix regression with addition of anchor support - only register interface once
10+
- bc0b5a4: Rename BlockAttributesObject() to get_block_attributes_object_type_name
11+
12+
### Patch Changes
13+
14+
- a42c828: Bug Fix: CPTs containing dashes creates error in Block Registration.
15+
- b900f1f: chore: bump min PHP version to 7.4
16+
- b075a98: fix: Correctly check if `$block_attributes` are set when attempting to register the block attribute fields to WPGraphQL.
17+
- 5d043b4: fix: Implement better type checking in `ContentBlocksResolver::resolve_content_blocks()` to prevent possible fatal errors on edge cases.
18+
- 6621170: Use render_block instead of innerHTML when filtering blocks
19+
- 8b13b32: dev: Change comparison of `$attribute_config['type']` to use Yoda conditional.
20+
- addf06f: fix: Ensure `WPHelpers::get_supported_post_types()` correctly returns `\WP_Post_Type[]`.
21+
- eff9847: chore: Add missing `\` to docblock types.
22+
- 733737f: tests: Fix `RegistryTestCase` autoloading and lint `DomHelperTest`
23+
- ddac2eb: fix: Cleanup unnecessary conditional checks.
24+
- 536848a: fix: Don't return the `WPGraphQLContentBlocks` instance when initializing the plugin via the `plugins_loaded` action.
25+
- 8b13b32: dev: Remove unused method params from the block attribute field resolver callback.
26+
- 8b13b32: fix: Replace the usage of `'wp-graphql'` text-domain with the correct `'wp-graphql-content-blocks'`.
27+
- 99bc5a4: chore: Add missing return types to multiple methods.
28+
- f6541d9: fix: Implement better type checking in `Blocks\Block` class to prevent possible fatal errors on edge cases.
29+
- f0bc286: fix: Improve `WPGraphQLHelpers::format_type_name()` handling of `null` and empty strings, and use it in more places in the codebase.
30+
- 11c0676: Added `cssClassName` attribute on `CoreQuote` Block
31+
- 45f9ce3: fix: Bad check for empty value in `DOMHelpers::parseFirstNodeAttribute()`.
32+
- 56f1b1e: dev: Rename `WPGraphQL\ContentBlocks\Registry::OnInit()` and `WPGraphQL\ContentBlocks\Type\Scalar::OnInit()` methods to `::init()` to comply with WPCS ruleset.
33+
- fe38180: dev: Remove unnecessary `use( $type_registry )` from Interface 'resolveType' callbacks.
34+
- c7290cd: chore: Disable PHPCS linting for `/tests` directory
35+
- ee722d2: chore: Fix existing PHPCS smells for doc-blocks and comments.
36+
- 2f02d7d: dev: Deprecate the unused `$context` param on EditorBlockInterface::get_blocks(), and update all internal usage of that method.
37+
- 8b13b32: fix: Ensure proper string translation, concatenation, and escaping.
38+
- f44fb6f: fix: Use `wp_rand()` instead of `rand()`.
39+
- 16d43eb: chore: Set the minimum PHP version in `composer.json` to v7.2 (and the platform req to v7.3) to ensure contributions are built against the correct dependencies.
40+
- 949af70: fix: Use strict string comparison when parsing the attribute selector.
41+
342
## 0.2.1
443

544
### Patch Changes

includes/WPGraphQLContentBlocks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function setup_constants() {
7878
$main_file_path = dirname( __DIR__ ) . '/wp-graphql.php';
7979

8080
// Plugin version.
81-
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '0.2.1' );
81+
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '0.3.0' );
8282
// Plugin Folder Path.
8383
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR', plugin_dir_path( $main_file_path ) );
8484
// Plugin Root File.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@wpengine/wp-graphql-content-blocks",
33
"private": true,
4-
"version": "0.2.1",
4+
"version": "0.3.0",
55
"engines": {
66
"node": ">=16.0.0"
77
},

readme.txt

+41-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: blakewpe, chriswiegman, joefusco, matthewguywright, TeresaGobble,
33
Tags: faustjs, faust, headless, decoupled, gutenberg
44
Requires at least: 5.7
55
Tested up to: 6.1
6-
Stable tag: 0.2.1
6+
Stable tag: 0.3.0
77
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -25,6 +25,45 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
2525

2626
== Changelog ==
2727

28+
= 0.3.0 =
29+
30+
### Minor Changes
31+
32+
- 5765443: Fix regression where intentionally empty blocks were removed, if blocks have names they are now retained.
33+
- eb8e364: Add support for Reusable Blocks
34+
- 1bde257: Fix regression with addition of anchor support - only register interface once
35+
- bc0b5a4: Rename BlockAttributesObject() to get_block_attributes_object_type_name
36+
37+
### Patch Changes
38+
39+
- a42c828: Bug Fix: CPTs containing dashes creates error in Block Registration.
40+
- b900f1f: chore: bump min PHP version to 7.4
41+
- b075a98: fix: Correctly check if `$block_attributes` are set when attempting to register the block attribute fields to WPGraphQL.
42+
- 5d043b4: fix: Implement better type checking in `ContentBlocksResolver::resolve_content_blocks()` to prevent possible fatal errors on edge cases.
43+
- 6621170: Use render_block instead of innerHTML when filtering blocks
44+
- 8b13b32: dev: Change comparison of `$attribute_config['type']` to use Yoda conditional.
45+
- addf06f: fix: Ensure `WPHelpers::get_supported_post_types()` correctly returns `\WP_Post_Type[]`.
46+
- eff9847: chore: Add missing `\` to docblock types.
47+
- 733737f: tests: Fix `RegistryTestCase` autoloading and lint `DomHelperTest`
48+
- ddac2eb: fix: Cleanup unnecessary conditional checks.
49+
- 536848a: fix: Don't return the `WPGraphQLContentBlocks` instance when initializing the plugin via the `plugins_loaded` action.
50+
- 8b13b32: dev: Remove unused method params from the block attribute field resolver callback.
51+
- 8b13b32: fix: Replace the usage of `'wp-graphql'` text-domain with the correct `'wp-graphql-content-blocks'`.
52+
- 99bc5a4: chore: Add missing return types to multiple methods.
53+
- f6541d9: fix: Implement better type checking in `Blocks\Block` class to prevent possible fatal errors on edge cases.
54+
- f0bc286: fix: Improve `WPGraphQLHelpers::format_type_name()` handling of `null` and empty strings, and use it in more places in the codebase.
55+
- 11c0676: Added `cssClassName` attribute on `CoreQuote` Block
56+
- 45f9ce3: fix: Bad check for empty value in `DOMHelpers::parseFirstNodeAttribute()`.
57+
- 56f1b1e: dev: Rename `WPGraphQL\ContentBlocks\Registry::OnInit()` and `WPGraphQL\ContentBlocks\Type\Scalar::OnInit()` methods to `::init()` to comply with WPCS ruleset.
58+
- fe38180: dev: Remove unnecessary `use( $type_registry )` from Interface 'resolveType' callbacks.
59+
- c7290cd: chore: Disable PHPCS linting for `/tests` directory
60+
- ee722d2: chore: Fix existing PHPCS smells for doc-blocks and comments.
61+
- 2f02d7d: dev: Deprecate the unused `$context` param on EditorBlockInterface::get_blocks(), and update all internal usage of that method.
62+
- 8b13b32: fix: Ensure proper string translation, concatenation, and escaping.
63+
- f44fb6f: fix: Use `wp_rand()` instead of `rand()`.
64+
- 16d43eb: chore: Set the minimum PHP version in `composer.json` to v7.2 (and the platform req to v7.3) to ensure contributions are built against the correct dependencies.
65+
- 949af70: fix: Use strict string comparison when parsing the attribute selector.
66+
2867
= 0.2.1 =
2968

3069
### Patch Changes
@@ -52,8 +91,4 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
5291
- e57855f: Remove the `composer install` step by bundling the prod `vendor` directory with the plugin
5392
- e965de9: Fixed: Undefined index error in Block.php. Thanks @kidunot89!
5493

55-
= 0.1.0 =
56-
57-
- Proof of concept.
58-
59-
[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)
94+
[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)

wp-graphql-content-blocks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
99
* Text Domain: wp-graphql-content-blocks
1010
* Domain Path: /languages
11-
* Version: 0.2.1
11+
* Version: 0.3.0
1212
* Requires PHP: 7.4
1313
* Requires at least: 5.7
1414
*

0 commit comments

Comments
 (0)