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_graphqlandgraphql_field_nameto the Facet configuration. - feat: add explicit PHP 8.1 support.
- feat: deprecate usage of
snake_casefield names inFacetQueryArgsinput type, in favor ofcamelCase. - dev: add
get_graphql_allowed_facets()access function. - dev: refactor facet input types to use the
graphql_typeconfig 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-stubsdev dependency withaxepress/wp-graphql-stubs - chore: stub
FWP()function andFacetWPclass 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