Skip to content

Releases: AxeWP/wp-graphql-gravity-forms

v0.11.4

20 Sep 13:45

Choose a tag to compare

This minor release fixes a bug where form.entries would return entries from all forms, among other things.

  • (#291) feat: Update plugin-update-checker to v4.13 and enable use of local assets on Dashboard screen.
  • (#307) fix: ensure form->entry connections only return entries on that form.
  • (#307) fix: change formIds input description to clarify that it (currently) only accepts database IDs.
  • (#304) chore: update Composer deps.
  • (#307) test: ensure $_gf_state is reset between tests.
  • (#307) test: add some extra WPUnit tests for form/entry connection where args.

Full Changelog: v0.11.3...v0.11.4

v0.11.3 - WPGraphQL v1.9.0 Compatibility

12 Aug 21:25
beef7df

Choose a tag to compare

This minor release fixes a bug where gfEntries.pageInfo fields would have incorrect data after upgrading to WPGraphQL v1.9.0.

Note: As a result of WPGraphQL v1.9.0, the order of items returned when using backwards pagination (e.g. last:5) is now reversed and identical to the order of items returned when using forward pagination, as per the GraphQL Relay spec.

  • fix: Refactor EntriesConnectionResolver to support WPGraphQL v1.9.0.
  • test: refactor gfForms and gfEntries pagination tests.

Full Changelog: v0.11.2...v0.11.3

v0.11.2 - Build Scripts, Confirmations, & DataLoaders

15 Jul 19:15
c0558e9

Choose a tag to compare

This minor release fixes a bug where querying for a non-existent Form/Entry ID would throw an error instead of returning null.

We also added some new GraphQL fields and connections to the FormConfirmation and SubmissionConfirmation types, and made some under-the-hood improvements to both the code and our build scripts.

  • feat: Add isAutoformatted to the FormConfirmation object.
  • feat: Add Page connection to the FormConfirmation object. (h/t @robmarshall )
  • feat: Add pageId and queryString fields and Page connection to the SubmissionConfirmation object.
  • fix: Ensure DataLoader keys return null on non-existent objects, instead of throwing errors. (h/t 6x x6 and Jonathan Ng )
  • dev: Fix return type for Utils::get_possible_form_field_child_types().
  • dev: Refactor ignored Gravity Forms settings to FormFields::ignored_gf_settings().
  • dev: Ensure composer deps are built for PHP 7.4.
  • chore: Update Composer deps.
  • docs: Add usage example for file uploads.
  • ci: Various improvements to workflows.

Full Changelog: v0.11.1.1...v0.11.2

v0.11.1.1 - Hotfix

25 Jun 18:02
c815ba0

Choose a tag to compare

This hotfix release fixes an issue with the GitHub Updater attempting to install plugin updates from the wrong release asset.

  • fix: ensure results of graphql_gf_update_repo_url are always trailing-slashed.
  • chore: add Composer command for generating plugin .zip
  • chore: add Github Action for adding plugin .zip to release.

v0.11.1 - reCAPTCHA Settings & Submission Confirmations

11 Jun 22:19
db3e6a0

Choose a tag to compare

This minor release adds the reCaptcha V2 type and publicKey to gfSettings.recaptcha, the validated confirmation response to form submission mutation payloads, and fixes a handful of bugs.

  • feat: Add recaptcha settings to GFSettings GraphQL object.
  • feat: Add SubmissionConfirmation object to submitGfForm and submitGfDraftEntry mutation responses. Props: @KoduVaal
  • fix: isActive should default to true for new Confirmations / Notifications.
  • fix: Correctly resolve the rangeMin and rangeMax GraphQL fields on NumberField. H/t @natac13
  • fix: Ensure GF Action Monitor setting keys are populated.
  • fix: Ensure checkboxValues load the Post Category choices before attempting to process.
  • fix: Prevent reprocessing the imageValueInput.url when updating PostImage field values.
  • tests: Fix broken test asserts exposed by PHPUnit v9 + WPGraphQL Test Case v2.3.
  • tests: Use gravityformscli for installing GF plugins in test envs.
  • chore: Upgrade composer deps.

v0.9.2.3 - Hotfix

11 Jun 21:02

Choose a tag to compare

  • fix: rangeMax should use GF_Number_Field::$rangeMax when resolving.

v0.9.2.2 - Hotfix

08 Jun 21:51

Choose a tag to compare

This hotfix release fixes an issue where the rangeMin and rangeMax fields on NumberField would not always return the correct float value.

  • fix: correctly return float values for rangeMin and rangeMax properties.

Full Changelog: v0.9.2.1...v0.9.2.2

v0.11.0 - reCAPTCHA Validation, Plugin Updates, and GF 2.6 Support

22 Mar 19:39

Choose a tag to compare

⚠️ This release contains breaking changes.

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 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.
  • 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 the FileUploadField which includes the basePath, baseUrl, and filename fields in addition to the existing url. These fields have also been added to ImageFieldValues.

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, and ShippingSingleShippingField have been renamed to ProductHiddenField, ProductSingleField, and ShippingSingleField, respectively, in line with other child fields.
  • fix: Don't hide the CALCULATION, HIDDENPRODUCT, SINGLEPRODUCT and SINGLESHIPPING values from the FormFieldTypeEnum.
  • fix: Resolve FormQuiz data using the unmodeled form data instead of the FormObject model.
  • dev: The lastPageButton field on GFForm has been deprecated in favor of form.pagination.lastPageButton, where the other pagination fields live.
  • dev: The values field on FileUploadField has been deprecated in favor of fileUploadValues.
  • 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 native graphql_model_prepare_fields.

v0.10.5 - Bugfix

10 Mar 02:33
dd78b00

Choose a tag to compare

This minor release fixes a few bugs in the FormsConnectionResolver. We've also added GitHub Actions for PHPStan and GraphQL schema linting.

  • fix: Prevent gfForms queries with the last argument from truncating the final node.
  • fix: Correctly return hasNextPage and hasPreviousPage values on gfForms connections.
  • dev: Refactor bin/install-test-env into resuable functions.
  • chore: Update Composer dependencies.
  • chore: Add GH action to save GraphQL artifact to release.
  • tests: Add GH Action for GraphQL schema linting.
  • tests: Add GH Action for PHPStan

v0.10.4 - Entry Counts and Quiz Results

04 Mar 08:46
b492a61

Choose a tag to compare

This minor release adds a form's total entries count and its quizResults to the GfFormToGfEntryConnection connection.

E.g.:

query {
  gfForm(id: $id, idType: $idType) {
    entries {
      count # the number of entries submitted
      quizResults { # The quiz results summary
        averagePercentage
          passRate
          gradeCounts { # the frequency of each grade
            count
            grade
          }
          fieldCounts { ## the individual field breakdown
            correctCount
            formField {
              node {
                label
              }
            }
            choiceCounts { ## the frequency of each answer
              count
              text
            }
          }
      }
    }
  }
}
  • feat: Add count to GfFormToGfEntryConnection.
  • feat: Add quizResults to GfFormToGfEntryConnection.
  • dev: Make original form data available via the Form model.
  • chore: Update Composer deps.
  • chore: Fix a few GraphQL descriptions that were missing a closing ..