Skip to content

Commit 1501ed8

Browse files
authored
release: 0.13.2 (#458)
* release: 0.13.2 * Update CHANGELOG.md
1 parent 2592f79 commit 1501ed8

File tree

5 files changed

+26
-21
lines changed

5 files changed

+26
-21
lines changed

CHANGELOG.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
## [Unreleased]
44

5+
## [v0.13.2]
6+
7+
This _minor_ release adds support for WPGraphQL v2.3.3, including lazy-loaded descriptions for GraphQL types which should result in significant performance improvements when querying the schema, especially for i18n users.
8+
59
- dev: Add support for lazy-loaded descriptions.
6-
- ci: Test compatibility against WPGraphWL v2.3.3.
10+
- ci: Test compatibility against WPGraphQL v2.3.3.
11+
- chore: Update Composer dependencies, and remediate PHPCS/PHPStan issues.
712

813
## [v0.13.1]
914

@@ -61,7 +66,7 @@ In this release, we've also removed the `vendor` directory from the GitHub repos
6166
- We've improved the DX and handling of multi-page forms:
6267
- **🚨 Breaking**: `PageField`s are now paginated to be at the _bottom of the previous page_, instead of at the top of the following page. H/t @SamuelHadsall.
6368

64-
**Note**: If you are currently working around the old pagination on your frontend (e.g. overfetching and post-processing your `formFields`), you may need to update your code.
69+
**Note**: If you are currently working around the old pagination on your frontend (e.g. over-fetching and post-processing your `formFields`), you may need to update your code.
6570

6671
- We've added `targetPageNumber` and `targetPageFormFields` to the `SubmitGfFormPayload` to help with multi-page form support, allowing you to fetch, submit, and validate a single page at a time before navigating to the next page. Check out the updated docs for more information and usage.
6772

@@ -169,15 +174,15 @@ This _minor_ release expands the ability to use database and global IDs intercha
169174

170175
We've also implemented the new WPGraphQL Coding Standards ruleset for `PHP_CodeSniffer`. While many of the (over 1000+) addressed sniffs are cosmetic, numerous smells regarding performance, type safety, sanitization, and 3rd-party interoperability have been fixed as well.
171176

172-
- dev: Refactor database ID resolution when the GraphQL `ID` type is indeterminate. Note: The following input args now work with both database and global IDs: `GfEntriesConnectionWhereArgs.formIds`, `GfFormsConnectionwhereArgs.formIds`.
177+
- dev: Refactor database ID resolution when the GraphQL `ID` type is indeterminate. Note: The following input args now work with both database and global IDs: `GfEntriesConnectionWhereArgs.formIds`, `GfFormsConnectionWhereArgs.formIds`.
173178
- dev: Remove usage of deprecated `WPGraphQL\Data\DataSource::resolve_post_object()` method.
174179
- dev: Prime the GfForm dataloader when querying form connections, to prevent unnecessary database queries.
175180
- chore: Implement `axepress/wp-graphql-cs` PHP_Codesniffer ruleset, and fix all resulting issues.
176181
- docs: Add missing documentation regarding using `productValues` input when submitting forms.
177182

178183
## v0.12.1 - Bug fix
179184

180-
This _minor_ release fixes an issue where certain complex Field Input and Field Choice types would try to implement a non-existent parent inteface, causing GraphQL debug messages to be returned in the response.
185+
This _minor_ release fixes an issue where certain complex Field Input and Field Choice types would try to implement a non-existent parent interface, causing GraphQL debug messages to be returned in the response.
181186

182187
- fix: Use local store for `FieldInputRegistry` and `FieldChoiceRegistry` to prevent the registration of duplicate/nonexistent types.
183188
- chore: Update Composer dev deps.
@@ -237,7 +242,7 @@ Lastly, we've exposed the `connectedChoice` and `connectedInput` fields on `Chec
237242
- dev!: Remove nullable `$type_registry` param from `Registrable::register()` interface method.
238243
- dev!: Remove the `$type_registry` param from the `graphql_gf_after_register_types` and `graphql_gf_before_register_types` actions.
239244
- dev!: Remove the `PropertyMapper`, `ChoiceMapper`, `InputMapper`, and `FieldProperties` PHP classes in favor of the `FormFieldRegistry`, `FieldInputRegistry` and `FieldChoiceRegistry` classes.
240-
- dev!: Check if plugin dependences meet the minimum version requirements.
245+
- dev!: Check if plugin dependencies meet the minimum version requirements.
241246
- dev: Add following actions: `graphql_gf_after_register_form_field`, `graphql_gf_after_register_form_field_object`.
242247
- dev: Add the following filters:
243248
`graphql_gf_form_field_settings_with_inputs`
@@ -384,7 +389,7 @@ Lastly, we fixed the GraphQL type names on some of the Product and Shipping fiel
384389

385390
### What's new
386391
* **🚨 Breaking**: We've added support for server-side captcha validation with reCAPTCHA. **Note**: If you are already using captcha fields in your form, you will need to modify your code to to pass the validation token to `fieldValues`.
387-
* **🚨 Breaking**: The `button` field on `GfForm` has been _deprecated_ in favor of `form.submitButon`. Both now use the new `FormSubmitButton` GraphQL type (instead of the old `FormButton`), which adds support for `layoutGridColumnSpan`, `location` and `width` properties added in GF v2.6.
392+
* **🚨 Breaking**: The `button` field on `GfForm` has been _deprecated_ in favor of `form.submitButton`. Both now use the new `FormSubmitButton` GraphQL type (instead of the old `FormButton`), which adds support for `layoutGridColumnSpan`, `location` and `width` properties added in GF v2.6.
388393
* We've added support for plugin updates on the WordPress backend. A warning is displayed along with the update notice when upgrading to a version with possible breaking changes (e.g. v0.**X**.y ).
389394
* We've added a new `FileUploadValues` GraphQL type to the `FileUploadField` which includes the `basePath`, `baseUrl`, and `filename` fields in addition to the existing `url`. These fields have also been added to `ImageFieldValues`.
390395

@@ -408,7 +413,7 @@ This _minor_ release fixes a few bugs in the `FormsConnectionResolver`. We've al
408413

409414
- fix: Prevent `gfForms` queries with the `last` argument from truncating the final node.
410415
- fix: Correctly return `hasNextPage` and `hasPreviousPage` values on `gfForms` connections.
411-
- dev: Refactor `bin/install-test-env` into resuable functions.
416+
- dev: Refactor `bin/install-test-env` into reusable functions.
412417
- chore: Update Composer dependencies.
413418
- chore: Add GH action to save GraphQL artifact to release.
414419
- tests: Add GH Action for GraphQL schema linting.
@@ -505,9 +510,9 @@ We expect this release to be the **last major breaking release** before v1.0. Wh
505510

506511
### What's new
507512

508-
* **🚨 Breaking**: Gravity Forms form fields are now autoregistered to the GraphQL schema using their registered GF field settings. That means all form fields (including custom fields) are implictly supported. For development purposes, certain core fields are hidden behind the `WPGRAPHQL_GF_EXPERIMENTAL_FIELDS` PHP constant. [Learn more](/docs/form-field-support.md).
513+
* **🚨 Breaking**: Gravity Forms form fields are now autoregistered to the GraphQL schema using their registered GF field settings. That means all form fields (including custom fields) are implicitly supported. For development purposes, certain core fields are hidden behind the `WPGRAPHQL_GF_EXPERIMENTAL_FIELDS` PHP constant. [Learn more](/docs/form-field-support.md).
509514
**Note**: As a result of this change, the available fields on by the `FormField` interface and on individual Form field objects have changed.
510-
* **🚨 Breaking**: Complex Gravity Forms form fields now inherit the properties of their parent `$inputType`s. Form fields that can resolve to multiple types are now registed as GraphQL Interfaces (e.g. `PostCategoryField`), with their child types as GraphQL objects ( e.g. `PostCategoryCheckboxField` ).
515+
* **🚨 Breaking**: Complex Gravity Forms form fields now inherit the properties of their parent `$inputType`s. Form fields that can resolve to multiple types are now registered as GraphQL Interfaces (e.g. `PostCategoryField`), with their child types as GraphQL objects ( e.g. `PostCategoryCheckboxField` ).
511516
* **🚨 Breaking**: GraphQL objects and fields have been renamed to be self documenting and prevent naming conflicts. Many fields have also been grouped into new GraphQL objects to improve DX and harden against future breaking schema changes. This is equally true for mutation inputs and payloads.
512517
* **🚨 Breaking**: We've replaced the use of `gravityForms` in the schema with the `gf` shorthand for improved dx. `gravityFormsForms` are now `gfForms`, `updateGravityFormsEntry` is now `updateGfEntry`, etc.
513518
* **🚨 Breaking**: Gravity Forms entries and draft entries now inherit the `gfEntry` interface, and use the `GfSubmittedEntry` and `GfDraftEntry` object types.
@@ -627,7 +632,7 @@ We expect this release to be the **last major breaking release** before v1.0. Wh
627632
* Field `adminOnly` was removed from all FormFields in favor of `visibility`.
628633
* Field `autocompleteAttribute` was removed from object type `EmailField`
629634
* Field `conditionalLogic` was removed from object type `HiddenField`
630-
* Field `copyValuesOptionDefault` was removed from object type AddressField, in favor of `shoudCopyValuesOption`
635+
* Field `copyValuesOptionDefault` was removed from object type AddressField, in favor of `shouldCopyValuesOption`
631636
* Field `cssClass` was removed from object type `HiddenField`
632637
* Field `cssClassList` (deprecated) was removed from all `FormField` objects.
633638
* Field `defaultValue` was removed from object type `EmailField`
@@ -787,7 +792,7 @@ This release adds compatibility with WPGraphQL v1.6.x, [and its new lazy/eager t
787792

788793
## v0.7.2.1 - Bugfix
789794

790-
* (Re-released, as the last one incorectly contained the old version.)
795+
* (Re-released, as the last one incorrectly contained the old version.)
791796

792797
* Fixes bug where unset `formFields` properties would cause a type error for `Enums`. (h/t @natac13)
793798

@@ -802,7 +807,7 @@ This release adds compatibility with WPGraphQL v1.6.x, [and its new lazy/eager t
802807
The big highlight in this release is _experimental<sup>[\*\*\*](#uploadWarning)</sup>_ support for File Upload / Post Image submissions. We also added a feature that updates WordPress post meta when the corresponding Gravity Forms entry is updated.
803808

804809
We added some new WordPress filters, and changed the way some of our PHP classes work, to make it easier for people to add support for their own custom Gravity Forms fields.
805-
We even gave the docs some love. We've added info about filters and using specific form field value inputs, and updated many of the example snippets. You can find the new documnetation in the repo's [/docs folder](/docs).
810+
We even gave the docs some love. We've added info about filters and using specific form field value inputs, and updated many of the example snippets. You can find the new documentation in the repo's [/docs folder](/docs).
806811

807812
Note: These changes did necessitate refactoring many of the plugin classes, so if you're extending any of them in your own projects, make sure to update your class methods!
808813

@@ -824,7 +829,7 @@ Note: These changes did necessitate refactoring many of the plugin classes, so i
824829
* feat: add `altText` to `PostImage` field values.
825830
* feat: The `pageNumber` field is now available on _all_ `formFields`.
826831
* dev: `AbstractEnum::set_values()` has been deprecated in favor of `AbstractEnum::get_values()`.
827-
* dev: `Button`, `LastPageButton`, `ConditionalLogic`, `ConditionalLogicRule`, `Entry`, `EntryForm`, `EntryUser`, `FieldError`, `Form`, `FormComfirmation`, `FormNotification`, `FormNotificationRouting`, `FormPagination`, `SaveAndContinue`, now extend AbstractObject`. Their functions have changed accordingly.
832+
* dev: `Button`, `LastPageButton`, `ConditionalLogic`, `ConditionalLogicRule`, `Entry`, `EntryForm`, `EntryUser`, `FieldError`, `Form`, `FormConfirmation`, `FormNotification`, `FormNotificationRouting`, `FormPagination`, `SaveAndContinue`, now extend AbstractObject`. Their functions have changed accordingly.
828833
* dev: Added `GFUtils::get_gravity_forms_upload_dir()` and `GUtils::handle_file_upload()`.
829834
* dev: Added `Utils::maybe_decode_json()` and `Utils::apply_filters`.
830835
* dev: deprecated `wp_graphql_{$enumType}_values` filter, in favor of `wp_graphql_gf_{$enumType}_values`.
@@ -859,7 +864,7 @@ Note: These changes did necessitate refactoring many of the plugin classes, so i
859864

860865
## v0.6.2 - Bugfixes
861866

862-
* Fixes `updateGravityFormsEntry` mutation not propery saving complex field values (h/t @natac13 )
867+
* Fixes `updateGravityFormsEntry` mutation not properly saving complex field values (h/t @natac13 )
863868
* Fixes mutations not correctly deleting old `SignatureField` files from the server (h/t @natac13 )
864869
* Fixes `SignatureFieldValue`s failing Gravity Forms `isRequired` validation (h/t/ @natac13).
865870
* Fixes empty `formFields.layoutGridColumnSpan` values not returning as `null`.
@@ -896,7 +901,7 @@ This release adds support for all the new goodies in Gravity Forms v2.5, squashe
896901

897902
### Under the hood
898903

899-
* Refactor various `InputProperty` classes. `InputDefaultValueProperty`, `InputLabelProperty`, and `InputplaceholderProperty` have been removed for their `FieldProperty` cousins, and `EmailInputProperty` is now being used for `EmailField`.
904+
* Refactor various `InputProperty` classes. `InputDefaultValueProperty`, `InputLabelProperty`, and `InputPlaceholderProperty` have been removed for their `FieldProperty` cousins, and `EmailInputProperty` is now being used for `EmailField`.
900905
* Tests: Clear `GFFormDisplay::$submission` between individual tests.
901906
* Tests: Allow overriding the default field factories.
902907
* Tests: Adds tests for `CaptchaField`.
@@ -1127,7 +1132,7 @@ query {
11271132
* `SaveAndContinue` now uses `buttonText` instead of the `Button` type.
11281133
* `lastPageButton` now uses its own GraphQL type with the relevant fields.
11291134
* The `resumeToken` input field on the `deleteGravityFormsDraftEntry`, `SubmitGravityFormsDraftEntry`, and all the `updateDraftEntry{fieldType}Value` mutations is now a non-nullable `String!`.
1130-
* When querying entries, we check that `createdByID` is set before trying to fetch the uerdata.
1135+
* When querying entries, we check that `createdByID` is set before trying to fetch the userdata.
11311136
* Where possible, mutations and queries now try to return an `errors` object instead of throwing an Exception.
11321137
* We've added more descriptive `Exception` messages across the plugin, to help you figure out what went wrong.
11331138
* We fixed a type conflict with `ConsentFieldValue`. `value` now returns a `String` with the consent message, or `null` if false.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A WordPress plugin that adds <a href="https://wpgraphql.com" target="_blank">WPG
88

99
-----
1010

11-
![Packagist License](https://img.shields.io/packagist/l/harness-software/wp-graphql-gravity-forms?color=green) ![Packagist Version](https://img.shields.io/packagist/v/harness-software/wp-graphql-gravity-forms?label=stable) ![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/axewp/wp-graphql-gravity-forms/v0.13.1) ![GitHub forks](https://img.shields.io/github/forks/axewp/wp-graphql-gravity-forms?style=social) ![GitHub Repo stars](https://img.shields.io/github/stars/axewp/wp-graphql-gravity-forms?style=social)<br />
11+
![Packagist License](https://img.shields.io/packagist/l/harness-software/wp-graphql-gravity-forms?color=green) ![Packagist Version](https://img.shields.io/packagist/v/harness-software/wp-graphql-gravity-forms?label=stable) ![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/axewp/wp-graphql-gravity-forms/v0.13.2) ![GitHub forks](https://img.shields.io/github/forks/axewp/wp-graphql-gravity-forms?style=social) ![GitHub Repo stars](https://img.shields.io/github/stars/axewp/wp-graphql-gravity-forms?style=social)<br />
1212
[![Coverage Status](https://coveralls.io/repos/github/AxeWP/wp-graphql-gravity-forms/badge.svg?branch=develop)](https://coveralls.io/github/AxeWP/wp-graphql-gravity-forms?branch=develop) [![WordPress Coding Standards](https://github.com/axewp/wp-graphql-gravity-forms/actions/workflows/code-standard.yml/badge.svg)](https://github.com/axewp/wp-graphql-gravity-forms/actions/workflows/code-standard.yml) [![Code Quality](https://github.com/axewp/wp-graphql-gravity-forms/actions/workflows/code-quality.yml/badge.svg)](https://github.com/axewp/wp-graphql-gravity-forms/actions/workflows/code-quality.yml) [![Schema Linter](https://github.com/axewp/wp-graphql-gravity-forms/actions/workflows/schema-linter.yml/badge.svg)](https://github.com/axewp/wp-graphql-gravity-forms/actions/workflows/schema-linter.yml)
1313

1414
## Overview

phpstan/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
define( 'CRGEARY_JAMSTACK_DEPLOYMENTS_OPTIONS_KEY', 'wp-jamstack-deployments' );
77
define( 'WPGRAPHQL_GF_PLUGIN_FILE', 'wp-graphql-gravity-forms.php' );
8-
define( 'WPGRAPHQL_GF_VERSION', '0.13.1' );
8+
define( 'WPGRAPHQL_GF_VERSION', '0.13.2' );

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tested up to: 6.8.1
66
Requires PHP: 7.4
77
Requires Gravity Forms: 2.7.0
88
Requires WPGraphQL: 1.26.0
9-
Stable tag: 0.13.1
9+
Stable tag: 0.13.2
1010
Maintained at: https://github.com/AxeWP/wp-graphql-gravity-forms
1111
License: GPL-3
1212
License URI: https://www.gnu.org/licenses/gpl-3.0.html

wp-graphql-gravity-forms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Author: AxePress Development
88
* Author URI: https://axepress.dev
99
* Update URI: https://github.com/axewp/wp-graphql-gravity-forms/releases
10-
* Version: 0.13.1
10+
* Version: 0.13.2
1111
* Text Domain: wp-graphql-gravity-forms
1212
* Domain Path: /languages
1313
* Requires at least: 6.0
@@ -68,7 +68,7 @@
6868
function constants(): void {
6969
// Plugin version.
7070
if ( ! defined( 'WPGRAPHQL_GF_VERSION' ) ) {
71-
define( 'WPGRAPHQL_GF_VERSION', '0.13.1' );
71+
define( 'WPGRAPHQL_GF_VERSION', '0.13.2' );
7272
}
7373

7474
// Plugin Folder Path.

0 commit comments

Comments
 (0)