Skip to content

Commit 6468020

Browse files
Release Plugin (#202)
* Release Plugin * Update readme.txt --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Theofanis Despoudis <[email protected]>
1 parent 49214e7 commit 6468020

21 files changed

+61
-95
lines changed

.changeset/clean-crews-draw.md

-5
This file was deleted.

.changeset/famous-hats-deliver.md

-9
This file was deleted.

.changeset/good-poems-battle.md

-5
This file was deleted.

.changeset/great-pans-poke.md

-5
This file was deleted.

.changeset/loud-carpets-dress.md

-5
This file was deleted.

.changeset/neat-ties-prove.md

-5
This file was deleted.

.changeset/popular-gifts-shop.md

-5
This file was deleted.

.changeset/quick-maps-exercise.md

-5
This file was deleted.

.changeset/selfish-rockets-allow.md

-5
This file was deleted.

.changeset/serious-numbers-chew.md

-5
This file was deleted.

.changeset/shaggy-walls-rush.md

-5
This file was deleted.

.changeset/sharp-panthers-own.md

-5
This file was deleted.

.changeset/tame-baboons-juggle.md

-5
This file was deleted.

.changeset/tough-jokes-turn.md

-5
This file was deleted.

.changeset/unlucky-deers-remain.md

-5
This file was deleted.

.changeset/wild-hairs-jog.md

-5
This file was deleted.

CHANGELOG.md

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

3+
## 4.0.0
4+
5+
### Major Changes
6+
7+
- ed23a32: MAJOR: Update Schema to reflect latest WordPress 6.5 changes.
8+
9+
- WHAT the breaking change is: Added new `rich-text` type
10+
- WHY the change was made: WordPress 6.5 replaced some of the attribute types from string to `rich-text` causing breaking changes to the existing block fields.
11+
- HOW a consumer should update their code: If users need to use WordPress >= 6.5 they need to update this plugin to the latest version and update their graphql schemas.
12+
13+
### Patch Changes
14+
15+
- d62e8db: chore: remove `squizlabs/php_codesniffer` from Composer's direct dependencies.
16+
- e348494: fix: handle arrays before casting when using `Block::normalize_attribute_value()`
17+
- 7bf6bcb: fix: Change Block:get_block_attribute_fields()`$prefix parameter be an optional`string`.
18+
- e6b4ac4: chore: update Composer dev-deps and lint
19+
- 05b21b5: fix: Update parameter type for `$supported_blocks_for_post_type_context` in `wpgraphql_content_blocks_should_apply_post_type_editor_blocks_interfaces` to support boolean values
20+
- 7b49863: chore: Bump PHPStan.neon.dist to level 8 and generate baseline of existing tech debt.
21+
- 0c8e2c7: fix: check for `post_content` before attempting to parse them.
22+
- 8eb1bb8: chore: remove unnecessary `isset()` in Anchor::get_block_interfaces().
23+
- bdff4fb: dev: inline and remove `Block::resolve()` and make `name` field nullable.
24+
- 9b0a63e: fix: Ensure valid `WP_Block_Type` before applying `Anchor` interfaces.
25+
- 2d4a218: fix: : rename `WPGraphQLHelpers` file to match class casing. The file name has been changed from `includes/Utilities/WPGraphqlHelpers.php` to `includes/Utilities/WPGraphQLHelpers.php`.
26+
- d00ee4a: fix: rename `DomHelpers.php` to `DOMHelpers.php` and improve type-safety of internal methods.
27+
- 66f74fb: chore: stub WP_Post_Type and boostrap wp-graphql-content-blocks.php when scanning with PHPStan
28+
- ad03a21: fix: Don't register `NodeWithEditorBlocks` interface to `null` type names.
29+
- 43791db: chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt.
30+
331
## 3.1.2
432

533
### Patch Changes

includes/WPGraphQLContentBlocks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function setup_constants(): void {
7575
$main_file_path = dirname( __DIR__ ) . '/wp-graphql.php';
7676

7777
// Plugin version.
78-
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '3.1.2' );
78+
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.0.0' );
7979
// Plugin Folder Path.
8080
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR', plugin_dir_path( $main_file_path ) );
8181
// 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": "3.1.2",
4+
"version": "4.0.0",
55
"engines": {
66
"node": ">=16.0.0"
77
},

readme.txt

+30-8
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.5
6-
Stable tag: 3.1.2
6+
Stable tag: 4.0.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,34 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
2525

2626
== Changelog ==
2727

28+
= 4.0.0 =
29+
30+
### Breaking Changes
31+
32+
- ed23a32: BREAKING: Update Schema to reflect latest WordPress 6.5 changes.
33+
34+
- WHAT the breaking change is: Added new `rich-text` type
35+
- WHY the change was made: WordPress 6.5 replaced some of the attribute types from string to `rich-text` causing breaking changes to the existing block fields.
36+
- HOW a consumer should update their code: If users need to use WordPress >= 6.5 they need to update this plugin to the latest version and update their graphql schemas.
37+
38+
### Patch Changes
39+
40+
- d62e8db: chore: remove `squizlabs/php_codesniffer` from Composer's direct dependencies.
41+
- e348494: fix: handle arrays before casting when using `Block::normalize_attribute_value()`
42+
- 7bf6bcb: fix: Change Block:get_block_attribute_fields()`$prefix parameter be an optional`string`.
43+
- e6b4ac4: chore: update Composer dev-deps and lint
44+
- 05b21b5: fix: Update parameter type for `$supported_blocks_for_post_type_context` in `wpgraphql_content_blocks_should_apply_post_type_editor_blocks_interfaces` to support boolean values
45+
- 7b49863: chore: Bump PHPStan.neon.dist to level 8 and generate baseline of existing tech debt.
46+
- 0c8e2c7: fix: check for `post_content` before attempting to parse them.
47+
- 8eb1bb8: chore: remove unnecessary `isset()` in Anchor::get_block_interfaces().
48+
- bdff4fb: dev: inline and remove `Block::resolve()` and make `name` field nullable.
49+
- 9b0a63e: fix: Ensure valid `WP_Block_Type` before applying `Anchor` interfaces.
50+
- 2d4a218: fix: : rename `WPGraphQLHelpers` file to match class casing. The file name has been changed from `includes/Utilities/WPGraphqlHelpers.php` to `includes/Utilities/WPGraphQLHelpers.php`.
51+
- d00ee4a: fix: rename `DomHelpers.php` to `DOMHelpers.php` and improve type-safety of internal methods.
52+
- 66f74fb: chore: stub WP_Post_Type and boostrap wp-graphql-content-blocks.php when scanning with PHPStan
53+
- ad03a21: fix: Don't register `NodeWithEditorBlocks` interface to `null` type names.
54+
- 43791db: chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt.
55+
2856
= 3.1.2 =
2957

3058
### Patch Changes
@@ -37,10 +65,4 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.
3765

3866
- bc32b94: No functional changes between 3.1.0 and 3.1.1. This was tagged due to pipeline issues during the 3.1.0 release.
3967

40-
= 3.1.0 =
41-
42-
### Minor Changes
43-
44-
- 9fab724: Added support for automatic updates hosted from WP Engine infrastructure. Includes warnings when major versions with potential breaking changes are released.
45-
46-
[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)
68+
[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: 3.1.2
11+
* Version: 4.0.0
1212
* Requires PHP: 7.4
1313
* Requires at least: 5.7
1414
*

0 commit comments

Comments
 (0)