Skip to content

Commit

Permalink
Release Plugin (#202)
Browse files Browse the repository at this point in the history
* Release Plugin

* Update readme.txt

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Theofanis Despoudis <328805+theodesp@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 9, 2024
1 parent 49214e7 commit 6468020
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 95 deletions.
5 changes: 0 additions & 5 deletions .changeset/clean-crews-draw.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/famous-hats-deliver.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/good-poems-battle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-pans-poke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-carpets-dress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-ties-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/popular-gifts-shop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-maps-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/selfish-rockets-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/serious-numbers-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-walls-rush.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharp-panthers-own.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tame-baboons-juggle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-jokes-turn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/unlucky-deers-remain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-hairs-jog.md

This file was deleted.

28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# WPGraphQL Content Blocks

## 4.0.0

### Major Changes

- ed23a32: MAJOR: Update Schema to reflect latest WordPress 6.5 changes.

- WHAT the breaking change is: Added new `rich-text` type
- 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.
- 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.

### Patch Changes

- d62e8db: chore: remove `squizlabs/php_codesniffer` from Composer's direct dependencies.
- e348494: fix: handle arrays before casting when using `Block::normalize_attribute_value()`
- 7bf6bcb: fix: Change Block:get_block_attribute_fields()`$prefix parameter be an optional`string`.
- e6b4ac4: chore: update Composer dev-deps and lint
- 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
- 7b49863: chore: Bump PHPStan.neon.dist to level 8 and generate baseline of existing tech debt.
- 0c8e2c7: fix: check for `post_content` before attempting to parse them.
- 8eb1bb8: chore: remove unnecessary `isset()` in Anchor::get_block_interfaces().
- bdff4fb: dev: inline and remove `Block::resolve()` and make `name` field nullable.
- 9b0a63e: fix: Ensure valid `WP_Block_Type` before applying `Anchor` interfaces.
- 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`.
- d00ee4a: fix: rename `DomHelpers.php` to `DOMHelpers.php` and improve type-safety of internal methods.
- 66f74fb: chore: stub WP_Post_Type and boostrap wp-graphql-content-blocks.php when scanning with PHPStan
- ad03a21: fix: Don't register `NodeWithEditorBlocks` interface to `null` type names.
- 43791db: chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt.

## 3.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion includes/WPGraphQLContentBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private function setup_constants(): void {
$main_file_path = dirname( __DIR__ ) . '/wp-graphql.php';

// Plugin version.
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '3.1.2' );
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '4.0.0' );
// Plugin Folder Path.
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR', plugin_dir_path( $main_file_path ) );
// Plugin Root File.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wpengine/wp-graphql-content-blocks",
"private": true,
"version": "3.1.2",
"version": "4.0.0",
"engines": {
"node": ">=16.0.0"
},
Expand Down
38 changes: 30 additions & 8 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: blakewpe, chriswiegman, joefusco, matthewguywright, TeresaGobble,
Tags: faustjs, faust, headless, decoupled, gutenberg
Requires at least: 5.7
Tested up to: 6.5
Stable tag: 3.1.2
Stable tag: 4.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -25,6 +25,34 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.

== Changelog ==

= 4.0.0 =

### Breaking Changes

- ed23a32: BREAKING: Update Schema to reflect latest WordPress 6.5 changes.

- WHAT the breaking change is: Added new `rich-text` type
- 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.
- 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.

### Patch Changes

- d62e8db: chore: remove `squizlabs/php_codesniffer` from Composer's direct dependencies.
- e348494: fix: handle arrays before casting when using `Block::normalize_attribute_value()`
- 7bf6bcb: fix: Change Block:get_block_attribute_fields()`$prefix parameter be an optional`string`.
- e6b4ac4: chore: update Composer dev-deps and lint
- 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
- 7b49863: chore: Bump PHPStan.neon.dist to level 8 and generate baseline of existing tech debt.
- 0c8e2c7: fix: check for `post_content` before attempting to parse them.
- 8eb1bb8: chore: remove unnecessary `isset()` in Anchor::get_block_interfaces().
- bdff4fb: dev: inline and remove `Block::resolve()` and make `name` field nullable.
- 9b0a63e: fix: Ensure valid `WP_Block_Type` before applying `Anchor` interfaces.
- 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`.
- d00ee4a: fix: rename `DomHelpers.php` to `DOMHelpers.php` and improve type-safety of internal methods.
- 66f74fb: chore: stub WP_Post_Type and boostrap wp-graphql-content-blocks.php when scanning with PHPStan
- ad03a21: fix: Don't register `NodeWithEditorBlocks` interface to `null` type names.
- 43791db: chore: update PHPStan ruleset for stricter linting, and address newly-discovered tech debt.

= 3.1.2 =

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

- 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.

= 3.1.0 =

### Minor Changes

- 9fab724: Added support for automatic updates hosted from WP Engine infrastructure. Includes warnings when major versions with potential breaking changes are released.

[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)
[View the full changelog](https://github.com/wpengine/wp-graphql-content-blocks/blob/main/CHANGELOG.md)
2 changes: 1 addition & 1 deletion wp-graphql-content-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-graphql-content-blocks
* Domain Path: /languages
* Version: 3.1.2
* Version: 4.0.0
* Requires PHP: 7.4
* Requires at least: 5.7
*
Expand Down

0 comments on commit 6468020

Please sign in to comment.