Wp Graphql Gravity Forms Versions Save

GraphQL API for interacting with Gravity Forms.

v0.11.9

1 year ago

This minor release adds compatibility for WPGraphQL v1.13.x, by removing the new Connection, Edge, and OneToOneConnection GraphQL interfaces from the FormField connections. This is a temporary fix, and will be reverted in a future release.

  • fix: remove incompatible interfaces from FormField connections.
  • fix: remove redundant There was an error while processing the form. prologue from submission UserErrors.
  • chore: update Composer deps.
  • chore: fix PHPStan issues surfaced by new Composer deps.

Full Changelog: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.8...v0.11.9

v0.11.8

1 year ago

This minor release fixes an issue where querying for NumberField.calculationRounding would sometimes throw an error when Rounding is set to Do not round.

  • fix: explicitly set calculationRounding to null when rounding is disabled.
  • chore: update Composer deps.

Full Changelog: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.7...v0.11.8

v0.11.7

1 year ago

This minor release fixes an issue with the GraphQL dataloader storing the GF form, instead of the 'prerendered' version used by many 3rd-party plugins. It also fixes FormQuiz GraphQL fields from resolving if they are not associated with the current gradingType (e.g. passPercent on a LETTER grade ).

  • fix: Run gform_pre_render on Form objects before they are stored in the DataLoader.
  • fix: FormQuiz fields should return null is not associated with current gradingType.
  • chore: Update Composer deps.

Full Changelog: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.6...v0.11.7

v0.11.6

1 year ago

This minor release fixes a bug where the resolver for FormField.choices wasn't always correctly parsing and passing the data, causing GraphQL fields on Quiz and Chained Select choices to return incorrect values.

  • fix: FormField.choices doesn't always resolve values correctly.
  • chore: replace abandoned poolshark/wp-graphql-stubs Composer dependency with axewp/wp-graphql-stubs.

v0.11.5

1 year ago

This minor release fixes a bug where gfForm.quiz data was not resolving, as well as changes the GraphQL types for FormQuizConfirmation fields.

Note: This release is technically a breaking schema change, however since those fields are entirely unusable with their current type definitions, we don't expect this have any negative impact on users when upgrading.

  • (#314) fix!: Change GraphQL field FormQuizConfirmation.isAutoformatted from type String to type Boolean.
  • (#314) fix!: Change GraphQL field FormQuizConfirmation.message from type Int to type String.
  • (#314) fix: Fix resolver for GfForm.quiz returning empty data.
  • (#314) test: Add basic WPUnit tests for GfForm.quiz data.
  • (#315) test: Fix FormConnectionQueriesTest classname corrupted after backporting from v0.11.4.

Full Changelog: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.4...v0.11.5

v0.11.4

1 year ago

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: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.3...v0.11.4

v0.11.3

1 year ago

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: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.2...v0.11.3

v0.11.2

1 year ago

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: https://github.com/harness-software/wp-graphql-gravity-forms/compare/v0.11.1.1...v0.11.2

v0.11.1.1

1 year ago

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

1 year ago

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.