Skip to content

Commit

Permalink
Merge pull request #66 from wpengine/changeset-release/main
Browse files Browse the repository at this point in the history
Release Plugin
  • Loading branch information
blakewilson authored Jun 7, 2023
2 parents 03c6ed1 + 810bf3b commit 380f24a
Show file tree
Hide file tree
Showing 36 changed files with 83 additions and 164 deletions.
5 changes: 0 additions & 5 deletions .changeset/angry-coins-think.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/blue-ducks-happen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bright-avocados-design.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chilled-cameras-grin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chilly-spies-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cuddly-countries-doubt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fair-students-move.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/few-seas-happen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/flat-buttons-shake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-cobras-swim.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-boxes-study.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/good-colts-develop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-horses-arrive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-ravens-joke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/green-bobcats-cover.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-files-jump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-gorillas-rescue.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-actors-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/poor-books-heal.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-owls-decide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-rockets-promise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-boxes-relax.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rare-snakes-return.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rare-toes-brush.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rude-penguins-develop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-poems-move.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strong-paws-pump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-fishes-breathe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-ways-dress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/two-numbers-end.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-boxes-teach.md

This file was deleted.

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

## 0.3.0

### Minor Changes

- 5765443: Fix regression where intentionally empty blocks were removed, if blocks have names they are now retained.
- eb8e364: Add support for Reusable Blocks
- 1bde257: Fix regression with addition of anchor support - only register interface once
- bc0b5a4: Rename BlockAttributesObject() to get_block_attributes_object_type_name

### Patch Changes

- a42c828: Bug Fix: CPTs containing dashes creates error in Block Registration.
- b900f1f: chore: bump min PHP version to 7.4
- b075a98: fix: Correctly check if `$block_attributes` are set when attempting to register the block attribute fields to WPGraphQL.
- 5d043b4: fix: Implement better type checking in `ContentBlocksResolver::resolve_content_blocks()` to prevent possible fatal errors on edge cases.
- 6621170: Use render_block instead of innerHTML when filtering blocks
- 8b13b32: dev: Change comparison of `$attribute_config['type']` to use Yoda conditional.
- addf06f: fix: Ensure `WPHelpers::get_supported_post_types()` correctly returns `\WP_Post_Type[]`.
- eff9847: chore: Add missing `\` to docblock types.
- 733737f: tests: Fix `RegistryTestCase` autoloading and lint `DomHelperTest`
- ddac2eb: fix: Cleanup unnecessary conditional checks.
- 536848a: fix: Don't return the `WPGraphQLContentBlocks` instance when initializing the plugin via the `plugins_loaded` action.
- 8b13b32: dev: Remove unused method params from the block attribute field resolver callback.
- 8b13b32: fix: Replace the usage of `'wp-graphql'` text-domain with the correct `'wp-graphql-content-blocks'`.
- 99bc5a4: chore: Add missing return types to multiple methods.
- f6541d9: fix: Implement better type checking in `Blocks\Block` class to prevent possible fatal errors on edge cases.
- f0bc286: fix: Improve `WPGraphQLHelpers::format_type_name()` handling of `null` and empty strings, and use it in more places in the codebase.
- 11c0676: Added `cssClassName` attribute on `CoreQuote` Block
- 45f9ce3: fix: Bad check for empty value in `DOMHelpers::parseFirstNodeAttribute()`.
- 56f1b1e: dev: Rename `WPGraphQL\ContentBlocks\Registry::OnInit()` and `WPGraphQL\ContentBlocks\Type\Scalar::OnInit()` methods to `::init()` to comply with WPCS ruleset.
- fe38180: dev: Remove unnecessary `use( $type_registry )` from Interface 'resolveType' callbacks.
- c7290cd: chore: Disable PHPCS linting for `/tests` directory
- ee722d2: chore: Fix existing PHPCS smells for doc-blocks and comments.
- 2f02d7d: dev: Deprecate the unused `$context` param on EditorBlockInterface::get_blocks(), and update all internal usage of that method.
- 8b13b32: fix: Ensure proper string translation, concatenation, and escaping.
- f44fb6f: fix: Use `wp_rand()` instead of `rand()`.
- 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.
- 949af70: fix: Use strict string comparison when parsing the attribute selector.

## 0.2.1

### 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 @@ -78,7 +78,7 @@ private function setup_constants() {
$main_file_path = dirname( __DIR__ ) . '/wp-graphql.php';

// Plugin version.
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '0.2.1' );
$this->define( 'WPGRAPHQL_CONTENT_BLOCKS_VERSION', '0.3.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": "0.2.1",
"version": "0.3.0",
"engines": {
"node": ">=16.0.0"
},
Expand Down
47 changes: 41 additions & 6 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.1
Stable tag: 0.2.1
Stable tag: 0.3.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,45 @@ Extends WPGraphQL to support querying (Gutenberg) Blocks as data.

== Changelog ==

= 0.3.0 =

### Minor Changes

- 5765443: Fix regression where intentionally empty blocks were removed, if blocks have names they are now retained.
- eb8e364: Add support for Reusable Blocks
- 1bde257: Fix regression with addition of anchor support - only register interface once
- bc0b5a4: Rename BlockAttributesObject() to get_block_attributes_object_type_name

### Patch Changes

- a42c828: Bug Fix: CPTs containing dashes creates error in Block Registration.
- b900f1f: chore: bump min PHP version to 7.4
- b075a98: fix: Correctly check if `$block_attributes` are set when attempting to register the block attribute fields to WPGraphQL.
- 5d043b4: fix: Implement better type checking in `ContentBlocksResolver::resolve_content_blocks()` to prevent possible fatal errors on edge cases.
- 6621170: Use render_block instead of innerHTML when filtering blocks
- 8b13b32: dev: Change comparison of `$attribute_config['type']` to use Yoda conditional.
- addf06f: fix: Ensure `WPHelpers::get_supported_post_types()` correctly returns `\WP_Post_Type[]`.
- eff9847: chore: Add missing `\` to docblock types.
- 733737f: tests: Fix `RegistryTestCase` autoloading and lint `DomHelperTest`
- ddac2eb: fix: Cleanup unnecessary conditional checks.
- 536848a: fix: Don't return the `WPGraphQLContentBlocks` instance when initializing the plugin via the `plugins_loaded` action.
- 8b13b32: dev: Remove unused method params from the block attribute field resolver callback.
- 8b13b32: fix: Replace the usage of `'wp-graphql'` text-domain with the correct `'wp-graphql-content-blocks'`.
- 99bc5a4: chore: Add missing return types to multiple methods.
- f6541d9: fix: Implement better type checking in `Blocks\Block` class to prevent possible fatal errors on edge cases.
- f0bc286: fix: Improve `WPGraphQLHelpers::format_type_name()` handling of `null` and empty strings, and use it in more places in the codebase.
- 11c0676: Added `cssClassName` attribute on `CoreQuote` Block
- 45f9ce3: fix: Bad check for empty value in `DOMHelpers::parseFirstNodeAttribute()`.
- 56f1b1e: dev: Rename `WPGraphQL\ContentBlocks\Registry::OnInit()` and `WPGraphQL\ContentBlocks\Type\Scalar::OnInit()` methods to `::init()` to comply with WPCS ruleset.
- fe38180: dev: Remove unnecessary `use( $type_registry )` from Interface 'resolveType' callbacks.
- c7290cd: chore: Disable PHPCS linting for `/tests` directory
- ee722d2: chore: Fix existing PHPCS smells for doc-blocks and comments.
- 2f02d7d: dev: Deprecate the unused `$context` param on EditorBlockInterface::get_blocks(), and update all internal usage of that method.
- 8b13b32: fix: Ensure proper string translation, concatenation, and escaping.
- f44fb6f: fix: Use `wp_rand()` instead of `rand()`.
- 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.
- 949af70: fix: Use strict string comparison when parsing the attribute selector.

= 0.2.1 =

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

= 0.1.0 =

- Proof of concept.

[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: 0.2.1
* Version: 0.3.0
* Requires PHP: 7.4
* Requires at least: 5.7
*
Expand Down

0 comments on commit 380f24a

Please sign in to comment.