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