From 895b04095308798591b85bf0fb9cd0d9692aba02 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Tue, 21 May 2024 00:57:56 -0400 Subject: [PATCH] chore: version numbers and changelog updated (#858) --- CHANGELOG.md | 16 ++++++++++++++++ README.txt | 6 +++--- includes/connection/class-shipping-zones.php | 2 +- includes/connection/class-tax-classes.php | 2 +- .../class-shipping-zone-connection-resolver.php | 2 +- .../class-tax-class-connection-resolver.php | 2 +- .../data/mutation/class-settings-mutation.php | 2 +- .../data/mutation/class-shipping-mutation.php | 2 +- includes/model/class-shipping-zone.php | 2 +- includes/mutation/class-shipping-zone-create.php | 2 +- includes/mutation/class-shipping-zone-delete.php | 2 +- .../class-shipping-zone-locations-clear.php | 2 +- .../class-shipping-zone-locations-update.php | 2 +- .../mutation/class-shipping-zone-method-add.php | 2 +- .../class-shipping-zone-method-remove.php | 2 +- .../class-shipping-zone-method-update.php | 2 +- includes/mutation/class-shipping-zone-update.php | 2 +- includes/mutation/class-tax-class-create.php | 2 +- includes/mutation/class-tax-class-delete.php | 2 +- includes/mutation/class-tax-rate-create.php | 2 +- includes/mutation/class-tax-rate-delete.php | 2 +- includes/mutation/class-tax-rate-update.php | 2 +- .../enum/class-shipping-location-type-enum.php | 2 +- .../type/enum/class-wc-setting-type-enum.php | 2 +- .../class-product-attribute-query-input.php | 2 +- .../type/input/class-shipping-location-input.php | 2 +- includes/type/input/class-wc-setting-input.php | 2 +- .../type/object/class-shipping-location-type.php | 2 +- .../type/object/class-shipping-zone-type.php | 2 +- includes/type/object/class-tax-class-type.php | 2 +- includes/type/object/class-wc-setting-type.php | 2 +- tests/_support/Factory/TaxClassFactory.php | 2 +- wp-graphql-woocommerce.php | 10 +++++----- 33 files changed, 54 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23321c71..e7fd30b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [v0.20.0](https://github.com/wp-graphql/wp-graphql-woocommerce/tree/v0.20.0) (2024-05-21) + +[Full Changelog](https://github.com/wp-graphql/wp-graphql-woocommerce/compare/v0.19.0...v0.20.0) + +**Breaking changes:** + +- feat: Queries and mutations for shipping zones, tax classes, and tax rates. [\#856](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/856) ([kidunot89](https://github.com/kidunot89)) +- `collectionStats` query fully implemented [\#849](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/849) ([kidunot89](https://github.com/kidunot89)) + +**Fixed:** + +- fix: TaxonomyToProduct connections fixed and tested [\#857](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/857) ([kidunot89](https://github.com/kidunot89)) +- fix: Potential Infinite loop caused by nested `pre_get_posts` hooks patched [\#853](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/853) ([kidunot89](https://github.com/kidunot89)) +- fix: Bug in Session\_Transaction\_Manager::pop\_transaction\_id\(\) fixed [\#852](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/852) ([kidunot89](https://github.com/kidunot89)) +- Fix: WPGraphQL v1.24.x support implemented [\#850](https://github.com/wp-graphql/wp-graphql-woocommerce/pull/850) ([kidunot89](https://github.com/kidunot89)) + ## [v0.19.0](https://github.com/wp-graphql/wp-graphql-woocommerce/tree/v0.19.0) (2023-12-27) [Full Changelog](https://github.com/wp-graphql/wp-graphql-woocommerce/compare/v0.18.3...v0.19.0) diff --git a/README.txt b/README.txt index 8e5afb9c..36321429 100644 --- a/README.txt +++ b/README.txt @@ -4,10 +4,10 @@ Tags: GraphQL, WooCommerce, WPGraphQL Requires at least: 6.1 Tested up to: 6.2 Requires PHP: 7.3 -Requires WooCommerce: 7.9.0 -Requires WPGraphQL: 1.16.0+ +Requires WooCommerce: 8.9.0 +Requires WPGraphQL: 1.25.0+ Works with WPGraphQL-JWT-Authentication: 0.7.0+ -Stable tag: 0.19.0 +Stable tag: 0.20.0 License: GPL-3 License URI: https://www.gnu.org/licenses/gpl-3.0.html Maintained at: https://github.com/wp-graphql/wp-graphql-woocommerce diff --git a/includes/connection/class-shipping-zones.php b/includes/connection/class-shipping-zones.php index 1a39fb9e..33801a8e 100644 --- a/includes/connection/class-shipping-zones.php +++ b/includes/connection/class-shipping-zones.php @@ -5,7 +5,7 @@ * Registers connections to ShippingZone * * @package WPGraphQL\WooCommerce\Connection - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Connection; diff --git a/includes/connection/class-tax-classes.php b/includes/connection/class-tax-classes.php index 1e8aff22..bb92fe2e 100644 --- a/includes/connection/class-tax-classes.php +++ b/includes/connection/class-tax-classes.php @@ -5,7 +5,7 @@ * Registers connections to TaxClass * * @package WPGraphQL\WooCommerce\Connection - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Connection; diff --git a/includes/data/connection/class-shipping-zone-connection-resolver.php b/includes/data/connection/class-shipping-zone-connection-resolver.php index 32b0a25a..80f6b6e1 100644 --- a/includes/data/connection/class-shipping-zone-connection-resolver.php +++ b/includes/data/connection/class-shipping-zone-connection-resolver.php @@ -5,7 +5,7 @@ * Resolves connections to ShippingZone * * @package WPGraphQL\WooCommerce\Data\Connection - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Data\Connection; diff --git a/includes/data/connection/class-tax-class-connection-resolver.php b/includes/data/connection/class-tax-class-connection-resolver.php index 6d0628d5..dffb93bc 100644 --- a/includes/data/connection/class-tax-class-connection-resolver.php +++ b/includes/data/connection/class-tax-class-connection-resolver.php @@ -5,7 +5,7 @@ * Resolves connections to TaxClass * * @package WPGraphQL\WooCommerce\Data\Connection - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Data\Connection; diff --git a/includes/data/mutation/class-settings-mutation.php b/includes/data/mutation/class-settings-mutation.php index 1de17280..be6dbdf8 100644 --- a/includes/data/mutation/class-settings-mutation.php +++ b/includes/data/mutation/class-settings-mutation.php @@ -3,7 +3,7 @@ * Defines helper functions for executing mutations related to the WC Settings API. * * @package WPGraphQL\WooCommerce\Data\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Data\Mutation; diff --git a/includes/data/mutation/class-shipping-mutation.php b/includes/data/mutation/class-shipping-mutation.php index 56a94346..d6d75562 100644 --- a/includes/data/mutation/class-shipping-mutation.php +++ b/includes/data/mutation/class-shipping-mutation.php @@ -3,7 +3,7 @@ * Defines helper functions for executing mutations related to shipping. * * @package WPGraphQL\WooCommerce\Data\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Data\Mutation; diff --git a/includes/model/class-shipping-zone.php b/includes/model/class-shipping-zone.php index f1268027..67ae2840 100644 --- a/includes/model/class-shipping-zone.php +++ b/includes/model/class-shipping-zone.php @@ -5,7 +5,7 @@ * This model represents a Shipping Zone. * * @package WPGraphQL\WooCommerce\Model - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Model; diff --git a/includes/mutation/class-shipping-zone-create.php b/includes/mutation/class-shipping-zone-create.php index 6dd1ca1f..2ea636f6 100644 --- a/includes/mutation/class-shipping-zone-create.php +++ b/includes/mutation/class-shipping-zone-create.php @@ -5,7 +5,7 @@ * Registers mutation for creating a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-delete.php b/includes/mutation/class-shipping-zone-delete.php index e14f2e78..81aa9dbc 100644 --- a/includes/mutation/class-shipping-zone-delete.php +++ b/includes/mutation/class-shipping-zone-delete.php @@ -5,7 +5,7 @@ * Registers mutation for deleting a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-locations-clear.php b/includes/mutation/class-shipping-zone-locations-clear.php index fd699772..1a14780d 100644 --- a/includes/mutation/class-shipping-zone-locations-clear.php +++ b/includes/mutation/class-shipping-zone-locations-clear.php @@ -5,7 +5,7 @@ * Registers mutation for removing all registered shipping locations from a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-locations-update.php b/includes/mutation/class-shipping-zone-locations-update.php index 6326ddf5..cee85222 100644 --- a/includes/mutation/class-shipping-zone-locations-update.php +++ b/includes/mutation/class-shipping-zone-locations-update.php @@ -5,7 +5,7 @@ * Registers mutation for update the registered shipping locations on a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-method-add.php b/includes/mutation/class-shipping-zone-method-add.php index c69266ec..8fe62c2c 100644 --- a/includes/mutation/class-shipping-zone-method-add.php +++ b/includes/mutation/class-shipping-zone-method-add.php @@ -5,7 +5,7 @@ * Registers mutation for adding a shipping method to a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-method-remove.php b/includes/mutation/class-shipping-zone-method-remove.php index 63f23d11..8b30d8d8 100644 --- a/includes/mutation/class-shipping-zone-method-remove.php +++ b/includes/mutation/class-shipping-zone-method-remove.php @@ -5,7 +5,7 @@ * Registers mutation for removing a shipping method from a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-method-update.php b/includes/mutation/class-shipping-zone-method-update.php index 06183c54..b7e1f21e 100644 --- a/includes/mutation/class-shipping-zone-method-update.php +++ b/includes/mutation/class-shipping-zone-method-update.php @@ -5,7 +5,7 @@ * Registers mutation for update a shipping method on a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-shipping-zone-update.php b/includes/mutation/class-shipping-zone-update.php index 0785bd09..d75d6328 100644 --- a/includes/mutation/class-shipping-zone-update.php +++ b/includes/mutation/class-shipping-zone-update.php @@ -5,7 +5,7 @@ * Registers mutation for updating a shipping zone. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-tax-class-create.php b/includes/mutation/class-tax-class-create.php index de64cc51..f98e6544 100644 --- a/includes/mutation/class-tax-class-create.php +++ b/includes/mutation/class-tax-class-create.php @@ -5,7 +5,7 @@ * Registers mutation for creating a tax class. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-tax-class-delete.php b/includes/mutation/class-tax-class-delete.php index 0a033b12..d47487d8 100644 --- a/includes/mutation/class-tax-class-delete.php +++ b/includes/mutation/class-tax-class-delete.php @@ -5,7 +5,7 @@ * Registers mutation for deleting a tax class. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-tax-rate-create.php b/includes/mutation/class-tax-rate-create.php index b5055377..8fdfcf06 100644 --- a/includes/mutation/class-tax-rate-create.php +++ b/includes/mutation/class-tax-rate-create.php @@ -5,7 +5,7 @@ * Registers mutation for creating a tax rate. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-tax-rate-delete.php b/includes/mutation/class-tax-rate-delete.php index 5084494d..8b5867bf 100644 --- a/includes/mutation/class-tax-rate-delete.php +++ b/includes/mutation/class-tax-rate-delete.php @@ -5,7 +5,7 @@ * Registers mutation for deleting a tax rate. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/mutation/class-tax-rate-update.php b/includes/mutation/class-tax-rate-update.php index e05eb43a..37575062 100644 --- a/includes/mutation/class-tax-rate-update.php +++ b/includes/mutation/class-tax-rate-update.php @@ -5,7 +5,7 @@ * Registers mutation for updating a tax rate. * * @package WPGraphQL\WooCommerce\Mutation - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Mutation; diff --git a/includes/type/enum/class-shipping-location-type-enum.php b/includes/type/enum/class-shipping-location-type-enum.php index 8e39e574..e4bd695a 100644 --- a/includes/type/enum/class-shipping-location-type-enum.php +++ b/includes/type/enum/class-shipping-location-type-enum.php @@ -3,7 +3,7 @@ * WPEnum Type - ShippingLocationType * * @package WPGraphQL\WooCommerce\Type\WPEnum - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPEnum; diff --git a/includes/type/enum/class-wc-setting-type-enum.php b/includes/type/enum/class-wc-setting-type-enum.php index 02f5c777..cb9a6c85 100644 --- a/includes/type/enum/class-wc-setting-type-enum.php +++ b/includes/type/enum/class-wc-setting-type-enum.php @@ -3,7 +3,7 @@ * WPEnum Type - WCSettingTypeEnum * * @package WPGraphQL\WooCommerce\Type\WPEnum - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPEnum; diff --git a/includes/type/input/class-product-attribute-query-input.php b/includes/type/input/class-product-attribute-query-input.php index 8f91e798..dc6a4868 100644 --- a/includes/type/input/class-product-attribute-query-input.php +++ b/includes/type/input/class-product-attribute-query-input.php @@ -3,7 +3,7 @@ * WPInputObjectType - ProductAttributeQueryInput * * @package WPGraphQL\WooCommerce\Type\WPInputObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPInputObject; diff --git a/includes/type/input/class-shipping-location-input.php b/includes/type/input/class-shipping-location-input.php index d5d7f828..a8e436fb 100644 --- a/includes/type/input/class-shipping-location-input.php +++ b/includes/type/input/class-shipping-location-input.php @@ -3,7 +3,7 @@ * WPInputObjectType - ShippingLocationInput * * @package WPGraphQL\WooCommerce\Type\WPInputObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPInputObject; diff --git a/includes/type/input/class-wc-setting-input.php b/includes/type/input/class-wc-setting-input.php index 3bf2d566..2f8f46a1 100644 --- a/includes/type/input/class-wc-setting-input.php +++ b/includes/type/input/class-wc-setting-input.php @@ -3,7 +3,7 @@ * WPInputObjectType - WCSettingInput * * @package WPGraphQL\WooCommerce\Type\WPInputObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPInputObject; diff --git a/includes/type/object/class-shipping-location-type.php b/includes/type/object/class-shipping-location-type.php index 32d5e871..5eb6997b 100644 --- a/includes/type/object/class-shipping-location-type.php +++ b/includes/type/object/class-shipping-location-type.php @@ -5,7 +5,7 @@ * Registers ShippingLocation WPObject type and queries * * @package WPGraphQL\WooCommerce\Type\WPObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPObject; diff --git a/includes/type/object/class-shipping-zone-type.php b/includes/type/object/class-shipping-zone-type.php index 1769e0ea..c4aac326 100644 --- a/includes/type/object/class-shipping-zone-type.php +++ b/includes/type/object/class-shipping-zone-type.php @@ -5,7 +5,7 @@ * Registers ShippingZone WPObject type and queries * * @package WPGraphQL\WooCommerce\Type\WPObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPObject; diff --git a/includes/type/object/class-tax-class-type.php b/includes/type/object/class-tax-class-type.php index dac4f01c..cb0319aa 100644 --- a/includes/type/object/class-tax-class-type.php +++ b/includes/type/object/class-tax-class-type.php @@ -5,7 +5,7 @@ * Registers TaxClass WPObject type * * @package WPGraphQL\WooCommerce\Type\WPObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPObject; diff --git a/includes/type/object/class-wc-setting-type.php b/includes/type/object/class-wc-setting-type.php index bd634eb8..55d22ac5 100644 --- a/includes/type/object/class-wc-setting-type.php +++ b/includes/type/object/class-wc-setting-type.php @@ -5,7 +5,7 @@ * Registers WCSetting WPObject type * * @package WPGraphQL\WooCommerce\Type\WPObject - * @since TBD + * @since 0.20.0 */ namespace WPGraphQL\WooCommerce\Type\WPObject; diff --git a/tests/_support/Factory/TaxClassFactory.php b/tests/_support/Factory/TaxClassFactory.php index 8ea201dc..f6d589e2 100644 --- a/tests/_support/Factory/TaxClassFactory.php +++ b/tests/_support/Factory/TaxClassFactory.php @@ -2,7 +2,7 @@ /** * Factory class for the WooCommerce's tax class data objects. * - * @since TBD + * @since 0.20.0 * @package Tests\WPGraphQL\WooCommerce\Factory */ diff --git a/wp-graphql-woocommerce.php b/wp-graphql-woocommerce.php index 484800b9..bc480a03 100644 --- a/wp-graphql-woocommerce.php +++ b/wp-graphql-woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: WPGraphQL WooCommerce (WooGraphQL) * Plugin URI: https://github.com/wp-graphql/wp-graphql-woocommerce * Description: Adds Woocommerce Functionality to WPGraphQL schema. - * Version: 0.19.0 + * Version: 0.20.0 * Author: kidunot89 * Author URI: https://axistaylor.com * Text Domain: wp-graphql-woocommerce @@ -12,9 +12,9 @@ * License URI: https://www.gnu.org/licenses/gpl-3.0.html * Requires at least: 6.1 * Requires PHP: 7.3 - * WC requires at least: 7.9.0 - * WC tested up to: 8.1.1 - * WPGraphQL requires at least: 1.16.0+ + * WC requires at least: 8.9.0 + * WC tested up to: 8.9.0 + * WPGraphQL requires at least: 1.25.0+ * WPGraphQL-JWT-Authentication requires at least: 0.7.0+ * WPGraphQL-Headless-Login requires at least: 0.1.4+ * @@ -36,7 +36,7 @@ function constants() { // Plugin version. if ( ! defined( 'WPGRAPHQL_WOOCOMMERCE_VERSION' ) ) { - define( 'WPGRAPHQL_WOOCOMMERCE_VERSION', '0.19.0' ); + define( 'WPGRAPHQL_WOOCOMMERCE_VERSION', '0.20.0' ); } // Plugin Folder Path. if ( ! defined( 'WPGRAPHQL_WOOCOMMERCE_PLUGIN_DIR' ) ) {