Skip to content

Releases: AxeWP/wp-graphql-gravity-forms

v0.8.1 - `gform_pre_render` Support

18 Aug 00:44
afe1ae6

Choose a tag to compare

This minor applies the gform_pre_render filter to GFUtils::get_form().

  • feat: filter GFUtils::get_form() by gform_pre_render (h/t @travislopes ).
  • dev: add wp-graphql-stubs to composer devDependencies.

v0.8.0 - Revamped GraphQL Connections

12 Aug 13:55
d02c82e

Choose a tag to compare

⚠️ This release requires Gravity Forms v2.5.0 or higher.

This release reworks all GraphQL connections, implementing data loaders, optimizing database queries, and adding support for more where args in more situations.

New Features

  • gravityFormsForms can now be filtered by a list of form IDs.
  • FormEntry connections now have access to the following where args: status, dateFilters, fieldFilters, fieldFiltersMode.
  • formField can now be filtered by a list of field IDs, adminLabels, and the field type.
  • [Breaking] Full pagination support has been added to Forms and Entries. Note: cursor generation has changed, so if you are manually generating form or entry cursors, you will need to update your code.
  • [Breaking] FieldFiltersOperatorInputEnum now supports all remaining Gravity Forms entry search operators, such as LIKE, IS, IS_NOT. The GREATER_THAN and LESS_THAN operators have been removed, as they are not supported by Gravity Forms.

Bugfixes

  • Correctly handle sourceUrl changes in submitGravityFormsForm and updateGravityFormsDraftEntry mutations.
  • wp_graphql_gf_can_view_entries filter now correctly passes $form_ids instead of non-existent $entry_ids.
  • fieldFilters now correctly search through array entry values.
  • EntriesFieldFiltersInput.key is now optional.

Under the Hood

  • [Breaking] Bumped minimum GF version to v2.5.x.
  • [Breaking] Connections have been completely refactored. The new classes are EntryConnections, FieldConnections and FormConnections.
  • [Breaking] RootQueryEntriesConnectionResolver and RootQueryFormsConnectionResolver classes were renamed to EntriesConnectionsResolver and FormConnectionResolver. They now properly extend AbstractConnectionResolver.
  • Form connections now implement a DataLoader.
  • Added GFUtils::get_forms() for speedy requests from $wpdb.
  • Fixed various code smells.
  • docs: Updated information about queries to reflect pagination and new where args.
  • tests: WPUnit tests now extend GFGraphQLTestCase.
  • tests: [Breaking] WPGraphQLGravityForms\Tests namespace has been renamed to Tests\WPGraphQL\GravityForms.

v0.7.3 - WPGraphQL v1.6.x Compatibility

03 Aug 15:31
a66c82a

Choose a tag to compare

This release adds compatibility with WPGraphQL v1.6.x, and its new lazy/eager type loading.

  • fix: Add eagerlyLoadType property to WPGraphQL type registration.
  • fix: Hook type registration using get_graphql_register_action().
  • fix: Fix typo in addressField.copyValueOptionsLabel type definition.
  • fix: Check entry values before (unnecessarily) updating them in SubmitGravityFormsForm mutation.
  • dev: Update composer dependencies.
  • tests: Clear WPGraphQL schema before/after each test.

v0.7.2.1 - Hotfix

29 Jul 13:04

Choose a tag to compare

(Re-released, as the last one incorectly contained the old version.)

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

v0.7.1 - Bugfix

18 Jul 14:31
df9f271

Choose a tag to compare

This release fixes the following bugs:

  • fix: Prevents UserError when filtering gravityFormsEntries by a value in any field (i.e. when fieldFilters.key is "0" ).

v0.7.0 - File Uploads and Post Image Submissions 🚀🚀🚀

09 Jul 19:53
8f4acef

Choose a tag to compare

** ⚠️ This release contains multiple breaking changes. **

The big highlight in this release is experimental*** 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.

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.
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.

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!

***: File Uploads and Post Image submissions currently require WPGraphQL Upload to be installed and activated. Once WPGraphQL adds native support for multipart form requests, it is likely that these GraphQL input values will change.

New Features

  • Added support for FileUpload and PostImage field value submissions. Ple
  • Updating Post field values in a Gravity Forms entry, now also updates the corresponding WordPress post. Not even native GF lets you do that!
  • New WordPress filters: wp_graphql_gf_type_config, wp_graphql_gf_connection_config.

Bugfixes

  • chainedSelectValues input is now only visible if the Chained Selects plugin is active.
  • The Entry GraphQL type now implements the wp_graphql_gf_can_view_entries filter.

Under the Hood

  • feat: add altText to PostImage field values.
  • feat: The pageNumber field is now available on all formFields.
  • dev: AbstractEnum::set_values() has been deprecated in favor of AbstractEnum::get_values().
  • dev: Button, LastPageButton, ConditionalLogic, ConditionalLogicRule, Entry, EntryForm, EntryUser, FieldError, Form, FormComfirmation, FormNotification, FormNotificationRouting, FormPagination, SaveAndContinue, now extend AbstractObject`. Their functions have changed accordingly.
  • dev: Added GFUtils::get_gravity_forms_upload_dir() and GUtils::handle_file_upload().
  • dev: Added Utils::maybe_decode_json() and Utils::apply_filters.
  • dev: deprecated wp_graphql_{$enumType}_values filter, in favor of wp_graphql_gf_{$enumType}_values.
  • dev: deprecated wp_graphql_gf_field_types filter, as it no longer necessary to manually map GraphQL fields to GF formFields.
  • dev: deprecated wp_graphql_gf_form_field_instances and wp_graphql_gf_field_value_instances filters in favor of wp_graphql_gf_instances.
  • dev: Deprecated the adminOnly, allowsPrepopulated and inputName fields on PostImageField.
  • dev: Updated composer dependencies.
  • dev!: scr/connections now extend AbstractConnection
  • dev!: src\Types\Input now extend AbstractInput. Their functions have changed accordingly.
  • dev!: Class AbstractField has been deprecated in favor of AbstractFormField. Its functions have changed accordingly.
  • dev!: Classes AbstractProperty, AbstractFieldValue have been deprecated in favor of AbstractObject. Their functions have changed accordingly.
  • dev!: make plugin $instances static for easier access and extension.
  • dev!: The Enum, InputType, ValueProperty PHP interface has been deprecated. Please update your code.
  • dev!: The methods required by the FieldValue, Type PHP interface have changed. Please update your code.
  • tests: Removed testGetEnabledFieldTypes now that we are using static $instances.

v0.6.3 - Unit Tests

04 Jul 15:02
338702d

Choose a tag to compare

  • Adds support for missing date formats (dmy_dash, dmy_dot, ymd_slash, ymd_dash, and ymd_dot).
  • Fix: EmailInputProperty description updated.
  • Dev: autocompleteAttribute has been deprecated on EmailInputProperty.
  • Tests: Added updateEntry and updateDraftEntry mutations to existing formField tests.
  • Tests: Add tests for CheckboxField, ConsentField, and DateField.

v0.6.2.2 - Hotfix

01 Jul 10:57
36c0ce0

Choose a tag to compare

  • Fixes submitGravityFormsForm mutation not saving signature field value after v0.6.2.1.

v0.6.2.1 - Hotfix

30 Jun 16:13
e3df1e4

Choose a tag to compare

  • Fixes updateGravityFormsEntry not saving signature field value.

v0.6.2 - Bugfixes

26 Jun 14:46
28ff329

Choose a tag to compare

v0.6.2 - Bugfixes

  • Fixes updateGravityFormsEntry mutation not propery saving complex field values (h/t @natac13 )
  • Fixes mutations not correctly deleting old SignatureField files from the server (h/t @natac13 )
  • Fixes SignatureFieldValues failing Gravity Forms isRequired validation (h/t/ @natac13).
  • Fixes empty formFields.layoutGridColumnSpan values not returning as null.
  • Removes deprecation from ChainedSelectInput.name.
  • Correctly sets graphql_connection_max_query_amount to a minimum of 600.
  • AbstractMutation::prepare_field_value_by_type() no longer tries processing unrecognized fields.
  • Dev: Added filter wp_graphql_gf_prepare_field_value for processing custom field values.
  • Dev: Added filter wp_graphql_gf_field_value_type for adding custom field value input types.
  • Dev: The arguments for AbstractMutation::validate_field_value() have changed to no longer require passing the $form. Passing the old set of arguments may stop working in future versions of the plugin.
  • Tests: Added unit tests for ChainedSelect fields and values.