Releases: wp-graphql/wp-graphql
v1.25.0
Release Notes
Upgrade Notice
This release includes a fix to a regression in the v1.24.0. Users impacted by the regression in 1.24.0 included, but are not necessarily limited to, users of the WPGraphQL for WooCommerce extension.
New Features
- #3104: feat: add
AbsractConnectionResolver::pre_should_execute()
. Thanks @justlevine!
Chores / Bugfixes
- #3104: refactor:
AbstractConnectionResolver::should_execute()
Thanks @justlevine! - #3112: fix: fixes a regression from v1.24.0 relating to field arguments defined on Interfaces not being properly merged onto Object Types that implement the interface. Thanks @kidunot89!
- #3114: fix: node IDs not showing in the Query Analyzer / X-GraphQL-Keys when using DataLoader->load_many()
- #3116: chore: Update WPGraphQLTestCase to v3. Thanks @kidunot89!
Full Changelog: v1.24.0...v1.25.0
v1.24.0
Release Notes
Upgrade Notice
The AbstractConnectionResolver
has undergone some refactoring. Some methods using snakeCase
have been deprecated in favor of their camel_case
equivalent. While we've preserved the deprecated methods to prevent breaking changes, you might begin seeing PHP notices about the deprecations. Any codebase that extends the AbstractConnectionResolver
class should update the following methods:
getSource
->get_source
getContext
->get_context
getInfo
->get_info
getShouldExecute
->get_should_execute
getLoader
->get_loader
New Features
- #3084: perf: refactor PluginConnectionResolver to only fetch plugins once. Thanks @justlevine!
- #3088: refactor: improve loader handling in AbstractConnectionResolver. Thanks @justlevine!
- #3087: feat: improve query amount handling in AbstractConnectionResolver. Thanks @justlevine!
- #3086: refactor: add AbstractConnectionResolver::get_unfiltered_args() public getter. Thanks @justlevine!
- #3085: refactor: add AbstractConnectionResolver::prepare_page_info()and only instantiate once. Thanks @justlevine!
- #3083: refactor: deprecate camelCase methods in AbstractConnectionResolver for snake_case equivalents. Thanks @justlevine!
Chores / Bugfixes
- #3095: chore: lint for superfluous whitespace. Thanks @justlevine!
- #3100: fix: recursion issues with interfaces
- #3082: chore: prepare ConnectionResolver classes for v2 backport
v1.23.0
Release Notes
New Features
- #3073: feat: expose
hasPassword
andpassword
fields on Post objects. Thanks @justlevine! - #3091: feat: introduce actions and filters for GraphQL Admin Notices
Chores / Bugfixes
- #3079: fix: GraphiQL IDE test failures
#3084: perf: refactor PluginConnectionResolver to only fetch plugins once. Thanks @justlevine!(edit: This was not included in this release and was improperly documented. Will be part of a future release).- #3092: ci: test against wp 6.5
- #3093: ci: Update actions in GitHub workflows and cleanup. Thanks @justlevine!
- #3093: chore: update Composer dev-deps and lint. Thanks @justlevine!
Full Changelog: v1.22.1...v1.23.0
v1.22.1
v1.22.0
Release Notes
New Features
- #3044: feat: add
graphql_pre_resolve_menu_item_connected_node
filter - #3039: feat: add
UniformResourceIdentifiable
interface toComment
type - #3020: feat: introduce
graphql_query_analyzer_get_headers
filter
Chores / Bugfixes
- #3062: ci: pin wp-browser to "<3.5" to allow automated tests to run properly
- #3057: fix:
admin_enqueue_scripts
callback should expect a possiblenull
value passed to it - #3048: fix:
isPostsPage
on content type - #3043: fix: return empty when filtering
menuItems
by a location with no assigned items - #3045: fix:
UsersConnectionSearchColumnEnum
values should be prefixed withuser_
New Contributors
- @MuhammedAO made their first contribution in #3020
Full Changelog: v1.21.0...v1.22.0
v1.21.0
Release Notes
New Features
- #3035: feat: provide better error when field references a type that does not exist
- #3027: feat: Add register_graphql_admin_notice API and intial use to inform users of the new WPGraphQL for ACF plugin
Chores / Bugfixes
- #3038: chore(deps-dev): bump the composer group across 1 directories with 1 update. Thanks @dependabot!
- #3033: fix: php deprecation error for dynamic properties on AppContext class
- #3031: fix(graphiql): Allow GraphiQL to run even if a valid schema cannot be returned. Thanks @linucks!
New Contributors
Full Changelog: v1.20.0...v1.21.0
v1.20.0
1.20.0
Upgrade Notice
This release contained a regression for some WPGraphQL Smart Cache users, defaulting the WPGraphQL Query Analyzer to being "off". The Query Analyzer is the feature that generates the X-GraphQL-Keys headers used by cache tagging and tag-based cache invalidation, a central feature of WPGraphQL Smart Cache.
To re-enable the Query Analyzer you can:
- update WPGraphQL Smart Cache to v1.3.0 (which force enables the Query Analyzer)
- or, if on WPGraphQL v1.2.* or older, you should check the "Enable GraphQL Type Tracking" setting under GraphQL > Settings
New Features
- #3013: feat: output GRAPHQL_DEBUG message if requested amount is larger than connection limit. Thanks @justlevine!
- #3008: perf: Expose graphql_should_analyze_queries as setting. Thanks @justlevine!
Chores / Bugfixes
- #3022: chore: add @justlevine to list of contributors! 🙌 🥳
- #3011: chore: update composer dev-dependencies and use php-compatibility:develop branch to 8.0+ lints. Thanks @justlevine!
- #3010: chore: implement stricter PHPDoc types. Thanks @justlevine!
- #3009: chore: implement stricter PHPStan config and clean up unnecessary type-guards. Thanks @justlevine!
- #3007: fix: call html_entity_decode() with explicit flags and decode single-quotes. Thanks @justlevine!
- #3006: fix: replace deprecated AbstractConnectionResolver::setQueryArg() call with ::set_query_arg(). Thanks @justlevine!
- #3004: docs: Update using-data-from-custom-database-tables.md
- #2998: docs: Update build-your-first-wpgraphql-extension.md. Thanks @Jacob-Daniel!
- #2997: docs: update wpgraphql-concepts.md. Thanks @Jacob-Daniel!
- #2996: fix: Field id duplicates uri field description. Thanks @marcinkrzeminski!
New Contributors
- @Jacob-Daniel made their first contribution in #2997
- @marcinkrzeminski made their first contribution in #2996
Full Changelog: v1.19.0...v1.20.0
v1.19.0
Release Notes
New Features
- #2988: feat: add missing extra fields to
EnqueuedAsset
,EnqueuedScript
andEnqueuedStylesheet