v0.11.0 - reCAPTCHA Validation, Plugin Updates, and GF 2.6 Support
This major release adds support for server-side captcha validation, plugin updates from the WordPress backend, and new features from Gravity Forms v2.6. We've also refactored the internal file upload mechanism to better integrate with GF's form submission lifecycle, leading to more reliable (and in some cases, more performant) results.
Lastly, we fixed the GraphQL type names on some of the Product and Shipping fields, so we can hopefully add mutation support in future minor releases (and not break back-compat).
Note: The minimum version of WPGraphQL has been bumped to v1.7.0.
What's new
- 🚨 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
. - 🚨 Breaking: The
button
field onGfForm
has been deprecated in favor ofform.submitButon
. Both now use the newFormSubmitButton
GraphQL type (instead of the oldFormButton
), which adds support forlayoutGridColumnSpan
,location
andwidth
properties added in GF v2.6. - 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 ).
- We've added a new
FileUploadValues
GraphQL type to theFileUploadField
which includes thebasePath
,baseUrl
, andfilename
fields in addition to the existingurl
. These fields have also been added toImageFieldValues
.
Behind the scenes
- Added the
graphql_gf_update_repo_url
filter to control the source of the Update Checker. - Reworked the logic handling file uploads to use the native GF form submission lifecycle whenever possible.
Misc
- chore!: The minimum version of WPGraphQL is now v1.7.0.
- fix!: The
ProductHiddenProductField
,ProductSingleProductField
, andShippingSingleShippingField
have been renamed toProductHiddenField
,ProductSingleField
, andShippingSingleField
, respectively, in line with other child fields. - fix: Don't hide the
CALCULATION
,HIDDENPRODUCT
,SINGLEPRODUCT
andSINGLESHIPPING
values from theFormFieldTypeEnum
. - fix: Resolve
FormQuiz
data using the unmodeledform
data instead of theFormObject
model. - dev: The
lastPageButton
field onGFForm
has been deprecated in favor ofform.pagination.lastPageButton
, where the other pagination fields live. - dev: The
values
field onFileUploadField
has been deprecated in favor offileUploadValues
. - dev: The
GFUtils::handle_file_upload()
method has been deprecated. - dev: The
graphql_gf_form_modeled_data_experimental
filter has been deprecated in favor of WPGraphQL's nativegraphql_model_prepare_fields
.