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
buttonfield onGfFormhas been deprecated in favor ofform.submitButon. Both now use the newFormSubmitButtonGraphQL type (instead of the oldFormButton), which adds support forlayoutGridColumnSpan,locationandwidthproperties 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
FileUploadValuesGraphQL type to theFileUploadFieldwhich includes thebasePath,baseUrl, andfilenamefields in addition to the existingurl. These fields have also been added toImageFieldValues.
Behind the scenes
- Added the
graphql_gf_update_repo_urlfilter 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, andShippingSingleShippingFieldhave been renamed toProductHiddenField,ProductSingleField, andShippingSingleField, respectively, in line with other child fields. - fix: Don't hide the
CALCULATION,HIDDENPRODUCT,SINGLEPRODUCTandSINGLESHIPPINGvalues from theFormFieldTypeEnum. - fix: Resolve
FormQuizdata using the unmodeledformdata instead of theFormObjectmodel. - dev: The
lastPageButtonfield onGFFormhas been deprecated in favor ofform.pagination.lastPageButton, where the other pagination fields live. - dev: The
valuesfield onFileUploadFieldhas been deprecated in favor offileUploadValues. - dev: The
GFUtils::handle_file_upload()method has been deprecated. - dev: The
graphql_gf_form_modeled_data_experimentalfilter has been deprecated in favor of WPGraphQL's nativegraphql_model_prepare_fields.