Skip to content

Releases: hsimah-services/wp-graphql-facetwp

v0.5.0

06 Apr 17:51
18c0713
Compare
Choose a tag to compare

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

05 Jun 12:27
6b1674e
Compare
Choose a tag to compare

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

13 May 17:46
3b4e666
Compare
Choose a tag to compare

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 the FacetQueryArgs 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

03 May 22:04
a1e10f7
Compare
Choose a tag to compare

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 new FacetConfig 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 on graphql_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 to main or develop 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

12 Jan 17:58
5d40b6d
Compare
Choose a tag to compare

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 and graphql_field_name to the Facet configuration.
  • feat: add explicit PHP 8.1 support.
  • feat: deprecate usage of snake_case field names in FacetQueryArgs input type, in favor of camelCase.
  • dev: add get_graphql_allowed_facets() access function.
  • dev: refactor facet input types to use the graphql_type config property generated by FacetRegistry::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 with axepress/wp-graphql-stubs
  • chore: stub FWP() function and FacetWP 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

28 Sep 10:51
babeb4e
Compare
Choose a tag to compare

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 to develop. The existing master branch will be removed on 1 October 2022.

Full Changelog: 0.3.0.1...0.4.0

0.3.0.1

28 Sep 00:01
c13278c
Compare
Choose a tag to compare

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.

0.3.0

19 Jun 21:59
f5b3402
Compare
Choose a tag to compare

Updates with default connection inputs and WooCommerce integration hooks.

0.2.0

04 Jan 22:24
25c98ec
Compare
Choose a tag to compare

Updated deprecated calls to WPGraphQL functions.
Updated documentation to remind users to register Facets during GraphQL init.

0.1.1

26 May 16:38
8541a3e
Compare
Choose a tag to compare

Bugfix - facet connection used old style node resolver.