Releases: hsimah-services/wp-graphql-facetwp
v0.5.0
This major release refactors the root files to use the WPGraphQL\FacetWP
namespace. It also adds support for the Plugin Dependencies header added in WordPress 6.5, adds explicit support for PHP 8.2 and WordPress 6.5, and more.
Note
Although this release technically contains breaking changes, these changes are limited to developers directly extending the wp-graphql-facetwp.php
file and WPGraphQL\FacetWP\Main
class.
If you are using the plugin as intended, you should not experience any issues when upgrading.
What's Changed
- feat: Add support for Plugin Dependencies header.
- chore!: Refactor plugin entrypoint to use
WPGraphQL\FacetWP
namespace. - chore: Implement strict phpstan rules and lint.
- chore: Update Composer dependencies and lint.
- chore: Update WPGraphQL Plugin Boilerplate to v0.1.0.
- ci: Test against WP 6.5.
- ci: Test against PHP 8.2.
- ci: Update GitHub Workflows to latest versions.
- ci: Update Strauss to v0.17.0.
Full Changelog: 0.4.4...0.5.0
v0.4.4
This minor release implements the new WPGraphQL Coding Standards ruleset for PHP_CodeSniffer
. While many of the addressed sniffs are cosmetic, numerous smells regarding performance, type safety, sanitization, and 3rd-party interoperability have been fixed as well.
What's Changed
- chore: Implement
axepress/wp-graphql-cs
PHP_Codesniffer ruleset. - chore: Update WPGraphQL Plugin Boilerplate to v0.0.9.
- chore: Update Composer dev-dependencies.
Full Changelog: 0.4.3...0.4.4
v0.4.3
This minor release adds support for the Sort Facet. It also fixes a bug where the FacetQueryArgs
input value was not being correctly matched to the correct Facet.
Note: To support the Sort facet when using custom WPGraphQL Connection Resolvers, you must set the connection's orderby
argument to post__id
. The example WooCommerce snippet has been updated to reflect this change, and you should update your custom code accordingly.
What's Changed
- feat: Add support for the Sort Facet (props to @ninie1205 for sponsoring this feature!)
- fix: Fallback to
snake_case
when matching theFacetQueryArgs
input value to the FacetWP facet name. - docs: Update WooCommerce snippet in README.md to support the Sort Facet.
Full Changelog: 0.4.2...0.4.3
v0.4.2
This minor release lays the groundwork for the upcoming Facet auto-registration feature / Sort Facet support. It introduces a new FacetConfig
interface, which is implemented by the Facet
object. Additionally, we adopted the use of WPGraphQL Plugin Boilerplate to scaffold our PHP classes, updated our Composer dev dependencies, and started testing against WordPress 6.2 and running WPUnit tests as part of our CI workflow.
What's Changed
- feat: Change
Facet
object to implement newFacetConfig
interface. - fix: Add missing descriptions to GraphQL types.
- dev!: Refactor GraphQL type classes to use
axepress/wp-graphql-plugin-boilerplate
. - dev!: Remove unused PHP interfaces.
- dev: Initialize plugin using
facetwp_init
hook. - chore: Build
FacetQueryArgs
config before calling the registration method. - chore: Stub
FacetWP_Facet
class properties. - chore: Update Composer dev deps.
- chore: Implement Strauss to namespace PHP dependencies.
- chore: Fix doc reference and internal usage of
register_graphql_facet_type()
function to be called ongraphql_facetwp_init
hook. - tests: Refactor and enable WPUnit tests.
- ci: Test against WordPress 6.2.
- ci: Register test post facet so
graphql-schema-linter
generates a valid schema. - ci: Run GitHub workflows on
push
events tomain
ordevelop
branches. - ci: Temporary ignore
graphql-schema-linter
errors from soon-to-be deprecated Types.
Full Changelog: 0.4.1...0.4.2
v0.4.1
v0.4.1
This minor release introduces WPGraphQL-specific field properties to the Facet configuration array and adds the corresponding get_graphql_allowed_facets()
access function. It also deprecates the usage snake_case
autogenerated field names in the FacetQueryArgs
input type in favor of camelCase
, and adds explicit support for PHP 8.1.
- feat: add
show_in_graphql
andgraphql_field_name
to the Facet configuration. - feat: add explicit PHP 8.1 support.
- feat: deprecate usage of
snake_case
field names inFacetQueryArgs
input type, in favor ofcamelCase
. - dev: add
get_graphql_allowed_facets()
access function. - dev: refactor facet input types to use the
graphql_type
config property generated byFacetRegistry::get_facet_input_type()
. - dev: add the following WordPress filters:
graphql_facetwp_facet_input_type
. - chore: update Composer dependencies.
- chore: replace
poolshark/wp-graphql-stubs
dev dependency withaxepress/wp-graphql-stubs
- chore: stub
FWP()
function andFacetWP
class properties. - chore: change stubfile extensions to
.php
. - tests: change
FWPGraphQLTestCase.php::register_facet()
to add a new facet instead of replace it.
Full Changelog: 0.4.0...0.4.1
v0.4.0
This major release refactors the underlying PHP codebase, bringing with it support for the latest versions of WPGraphQL and FacetWP. Care has been taken to ensure there are no breaking changes to the GraphQL schema.
- feat!: Refactor plugin PHP classes and codebase structure to follow ecosystem patterns.
- feat!: Bump minimum version of WPGraphQL to
v1.6.0
. - feat!: Bump minimum PHP version to
v7.4
. - feat!: Bump minimum FacetWP version to
v4.0
. - fix: Implement
WPVIP
PHP coding standards. - fix: Implement and meet
PHPStan
level 8 coding standards. - tests: Implement basic Codeception acceptance tests.
- ci: Add Github workflows for PRs and releases.
- chore: update Composer dependencies.
- chore: switch commit flow to
develop
=>main
and set default branch todevelop
. The existingmaster
branch will be removed on 1 October 2022.
Full Changelog: 0.3.0.1...0.4.0
0.3.0.1
Bumps the plugin version to v0.3.0.1
to address the missing version change in the previous release.
Note:
This is the last release on the master
branch. Going forward, development will occur on the develop
branch, with a snapshot of the latest release on main
.
The master
branch will be removed from the repository on 1 October 2022.
What's Changed
- chore: bump version to 0.3.0.1 in #36
Full Changelog: 0.3.0...0.3.0.1
Rereleased on 28 Sep 2022 to generate release artifacts for GH Workflows.