You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,13 @@
2
2
3
3
## [Unreleased]
4
4
5
+
## [v0.13.2]
6
+
7
+
This _minor_ release adds support for WPGraphQL v2.3.3, including lazy-loaded descriptions for GraphQL types which should result in significant performance improvements when querying the schema, especially for i18n users.
8
+
5
9
- dev: Add support for lazy-loaded descriptions.
6
-
- ci: Test compatibility against WPGraphWL v2.3.3.
10
+
- ci: Test compatibility against WPGraphQL v2.3.3.
11
+
- chore: Update Composer dependencies, and remediate PHPCS/PHPStan issues.
7
12
8
13
## [v0.13.1]
9
14
@@ -61,7 +66,7 @@ In this release, we've also removed the `vendor` directory from the GitHub repos
61
66
- We've improved the DX and handling of multi-page forms:
62
67
-**🚨 Breaking**: `PageField`s are now paginated to be at the _bottom of the previous page_, instead of at the top of the following page. H/t @SamuelHadsall.
63
68
64
-
**Note**: If you are currently working around the old pagination on your frontend (e.g. overfetching and post-processing your `formFields`), you may need to update your code.
69
+
**Note**: If you are currently working around the old pagination on your frontend (e.g. over-fetching and post-processing your `formFields`), you may need to update your code.
65
70
66
71
- We've added `targetPageNumber` and `targetPageFormFields` to the `SubmitGfFormPayload` to help with multi-page form support, allowing you to fetch, submit, and validate a single page at a time before navigating to the next page. Check out the updated docs for more information and usage.
67
72
@@ -169,15 +174,15 @@ This _minor_ release expands the ability to use database and global IDs intercha
169
174
170
175
We've also implemented the new WPGraphQL Coding Standards ruleset for `PHP_CodeSniffer`. While many of the (over 1000+) addressed sniffs are cosmetic, numerous smells regarding performance, type safety, sanitization, and 3rd-party interoperability have been fixed as well.
171
176
172
-
- dev: Refactor database ID resolution when the GraphQL `ID` type is indeterminate. Note: The following input args now work with both database and global IDs: `GfEntriesConnectionWhereArgs.formIds`, `GfFormsConnectionwhereArgs.formIds`.
177
+
- dev: Refactor database ID resolution when the GraphQL `ID` type is indeterminate. Note: The following input args now work with both database and global IDs: `GfEntriesConnectionWhereArgs.formIds`, `GfFormsConnectionWhereArgs.formIds`.
173
178
- dev: Remove usage of deprecated `WPGraphQL\Data\DataSource::resolve_post_object()` method.
174
179
- dev: Prime the GfForm dataloader when querying form connections, to prevent unnecessary database queries.
175
180
- chore: Implement `axepress/wp-graphql-cs` PHP_Codesniffer ruleset, and fix all resulting issues.
176
181
- docs: Add missing documentation regarding using `productValues` input when submitting forms.
177
182
178
183
## v0.12.1 - Bug fix
179
184
180
-
This _minor_ release fixes an issue where certain complex Field Input and Field Choice types would try to implement a non-existent parent inteface, causing GraphQL debug messages to be returned in the response.
185
+
This _minor_ release fixes an issue where certain complex Field Input and Field Choice types would try to implement a non-existent parent interface, causing GraphQL debug messages to be returned in the response.
181
186
182
187
- fix: Use local store for `FieldInputRegistry` and `FieldChoiceRegistry` to prevent the registration of duplicate/nonexistent types.
183
188
- chore: Update Composer dev deps.
@@ -237,7 +242,7 @@ Lastly, we've exposed the `connectedChoice` and `connectedInput` fields on `Chec
237
242
- dev!: Remove nullable `$type_registry` param from `Registrable::register()` interface method.
238
243
- dev!: Remove the `$type_registry` param from the `graphql_gf_after_register_types` and `graphql_gf_before_register_types` actions.
239
244
- dev!: Remove the `PropertyMapper`, `ChoiceMapper`, `InputMapper`, and `FieldProperties` PHP classes in favor of the `FormFieldRegistry`, `FieldInputRegistry` and `FieldChoiceRegistry` classes.
240
-
- dev!: Check if plugin dependences meet the minimum version requirements.
245
+
- dev!: Check if plugin dependencies meet the minimum version requirements.
241
246
- dev: Add following actions: `graphql_gf_after_register_form_field`, `graphql_gf_after_register_form_field_object`.
242
247
- dev: Add the following filters:
243
248
`graphql_gf_form_field_settings_with_inputs`
@@ -384,7 +389,7 @@ Lastly, we fixed the GraphQL type names on some of the Product and Shipping fiel
384
389
385
390
### What's new
386
391
***🚨 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`.
387
-
***🚨 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.
392
+
***🚨 Breaking**: The `button` field on `GfForm` has been _deprecated_ in favor of `form.submitButton`. 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.
388
393
* 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 ).
389
394
* 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`.
390
395
@@ -408,7 +413,7 @@ This _minor_ release fixes a few bugs in the `FormsConnectionResolver`. We've al
408
413
409
414
- fix: Prevent `gfForms` queries with the `last` argument from truncating the final node.
410
415
- fix: Correctly return `hasNextPage` and `hasPreviousPage` values on `gfForms` connections.
411
-
- dev: Refactor `bin/install-test-env` into resuable functions.
416
+
- dev: Refactor `bin/install-test-env` into reusable functions.
412
417
- chore: Update Composer dependencies.
413
418
- chore: Add GH action to save GraphQL artifact to release.
414
419
- tests: Add GH Action for GraphQL schema linting.
@@ -505,9 +510,9 @@ We expect this release to be the **last major breaking release** before v1.0. Wh
505
510
506
511
### What's new
507
512
508
-
***🚨 Breaking**: Gravity Forms form fields are now autoregistered to the GraphQL schema using their registered GF field settings. That means all form fields (including custom fields) are implictly supported. For development purposes, certain core fields are hidden behind the `WPGRAPHQL_GF_EXPERIMENTAL_FIELDS` PHP constant. [Learn more](/docs/form-field-support.md).
513
+
***🚨 Breaking**: Gravity Forms form fields are now autoregistered to the GraphQL schema using their registered GF field settings. That means all form fields (including custom fields) are implicitly supported. For development purposes, certain core fields are hidden behind the `WPGRAPHQL_GF_EXPERIMENTAL_FIELDS` PHP constant. [Learn more](/docs/form-field-support.md).
509
514
**Note**: As a result of this change, the available fields on by the `FormField` interface and on individual Form field objects have changed.
510
-
***🚨 Breaking**: Complex Gravity Forms form fields now inherit the properties of their parent `$inputType`s. Form fields that can resolve to multiple types are now registed as GraphQL Interfaces (e.g. `PostCategoryField`), with their child types as GraphQL objects ( e.g. `PostCategoryCheckboxField` ).
515
+
***🚨 Breaking**: Complex Gravity Forms form fields now inherit the properties of their parent `$inputType`s. Form fields that can resolve to multiple types are now registered as GraphQL Interfaces (e.g. `PostCategoryField`), with their child types as GraphQL objects ( e.g. `PostCategoryCheckboxField` ).
511
516
***🚨 Breaking**: GraphQL objects and fields have been renamed to be self documenting and prevent naming conflicts. Many fields have also been grouped into new GraphQL objects to improve DX and harden against future breaking schema changes. This is equally true for mutation inputs and payloads.
512
517
***🚨 Breaking**: We've replaced the use of `gravityForms` in the schema with the `gf` shorthand for improved dx. `gravityFormsForms` are now `gfForms`, `updateGravityFormsEntry` is now `updateGfEntry`, etc.
513
518
***🚨 Breaking**: Gravity Forms entries and draft entries now inherit the `gfEntry` interface, and use the `GfSubmittedEntry` and `GfDraftEntry` object types.
@@ -627,7 +632,7 @@ We expect this release to be the **last major breaking release** before v1.0. Wh
627
632
* Field `adminOnly` was removed from all FormFields in favor of `visibility`.
628
633
* Field `autocompleteAttribute` was removed from object type `EmailField`
629
634
* Field `conditionalLogic` was removed from object type `HiddenField`
630
-
* Field `copyValuesOptionDefault` was removed from object type AddressField, in favor of `shoudCopyValuesOption`
635
+
* Field `copyValuesOptionDefault` was removed from object type AddressField, in favor of `shouldCopyValuesOption`
631
636
* Field `cssClass` was removed from object type `HiddenField`
632
637
* Field `cssClassList` (deprecated) was removed from all `FormField` objects.
633
638
* Field `defaultValue` was removed from object type `EmailField`
@@ -787,7 +792,7 @@ This release adds compatibility with WPGraphQL v1.6.x, [and its new lazy/eager t
787
792
788
793
## v0.7.2.1 - Bugfix
789
794
790
-
* (Re-released, as the last one incorectly contained the old version.)
795
+
* (Re-released, as the last one incorrectly contained the old version.)
791
796
792
797
* Fixes bug where unset `formFields` properties would cause a type error for `Enums`. (h/t @natac13)
793
798
@@ -802,7 +807,7 @@ This release adds compatibility with WPGraphQL v1.6.x, [and its new lazy/eager t
802
807
The big highlight in this release is _experimental<sup>[\*\*\*](#uploadWarning)</sup>_ 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.
803
808
804
809
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.
805
-
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](/docs).
810
+
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 documentation in the repo's [/docs folder](/docs).
806
811
807
812
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!
808
813
@@ -824,7 +829,7 @@ Note: These changes did necessitate refactoring many of the plugin classes, so i
824
829
* feat: add `altText` to `PostImage` field values.
825
830
* feat: The `pageNumber` field is now available on _all_`formFields`.
826
831
* dev: `AbstractEnum::set_values()` has been deprecated in favor of `AbstractEnum::get_values()`.
827
-
* dev: `Button`, `LastPageButton`, `ConditionalLogic`, `ConditionalLogicRule`, `Entry`, `EntryForm`, `EntryUser`, `FieldError`, `Form`, `FormComfirmation`, `FormNotification`, `FormNotificationRouting`, `FormPagination`, `SaveAndContinue`, now extend AbstractObject`. Their functions have changed accordingly.
832
+
* dev: `Button`, `LastPageButton`, `ConditionalLogic`, `ConditionalLogicRule`, `Entry`, `EntryForm`, `EntryUser`, `FieldError`, `Form`, `FormConfirmation`, `FormNotification`, `FormNotificationRouting`, `FormPagination`, `SaveAndContinue`, now extend AbstractObject`. Their functions have changed accordingly.
828
833
* dev: Added `GFUtils::get_gravity_forms_upload_dir()` and `GUtils::handle_file_upload()`.
829
834
* dev: Added `Utils::maybe_decode_json()` and `Utils::apply_filters`.
830
835
* dev: deprecated `wp_graphql_{$enumType}_values` filter, in favor of `wp_graphql_gf_{$enumType}_values`.
@@ -859,7 +864,7 @@ Note: These changes did necessitate refactoring many of the plugin classes, so i
859
864
860
865
## v0.6.2 - Bugfixes
861
866
862
-
* Fixes `updateGravityFormsEntry` mutation not propery saving complex field values (h/t @natac13 )
867
+
* Fixes `updateGravityFormsEntry` mutation not properly saving complex field values (h/t @natac13 )
863
868
* Fixes mutations not correctly deleting old `SignatureField` files from the server (h/t @natac13 )
864
869
* Fixes `SignatureFieldValue`s failing Gravity Forms `isRequired` validation (h/t/ @natac13).
865
870
* Fixes empty `formFields.layoutGridColumnSpan` values not returning as `null`.
@@ -896,7 +901,7 @@ This release adds support for all the new goodies in Gravity Forms v2.5, squashe
896
901
897
902
### Under the hood
898
903
899
-
* Refactor various `InputProperty` classes. `InputDefaultValueProperty`, `InputLabelProperty`, and `InputplaceholderProperty` have been removed for their `FieldProperty` cousins, and `EmailInputProperty` is now being used for `EmailField`.
904
+
* Refactor various `InputProperty` classes. `InputDefaultValueProperty`, `InputLabelProperty`, and `InputPlaceholderProperty` have been removed for their `FieldProperty` cousins, and `EmailInputProperty` is now being used for `EmailField`.
900
905
* Tests: Clear `GFFormDisplay::$submission` between individual tests.
901
906
* Tests: Allow overriding the default field factories.
902
907
* Tests: Adds tests for `CaptchaField`.
@@ -1127,7 +1132,7 @@ query {
1127
1132
*`SaveAndContinue` now uses `buttonText` instead of the `Button` type.
1128
1133
*`lastPageButton` now uses its own GraphQL type with the relevant fields.
1129
1134
* The `resumeToken` input field on the `deleteGravityFormsDraftEntry`, `SubmitGravityFormsDraftEntry`, and all the `updateDraftEntry{fieldType}Value` mutations is now a non-nullable `String!`.
1130
-
* When querying entries, we check that `createdByID` is set before trying to fetch the uerdata.
1135
+
* When querying entries, we check that `createdByID` is set before trying to fetch the userdata.
1131
1136
* Where possible, mutations and queries now try to return an `errors` object instead of throwing an Exception.
1132
1137
* We've added more descriptive `Exception` messages across the plugin, to help you figure out what went wrong.
1133
1138
* We fixed a type conflict with `ConsentFieldValue`. `value` now returns a `String` with the consent message, or `null` if false.
0 commit comments