Wp Graphql Versions Save

:rocket: GraphQL API for WordPress

v1.24.0

5 hours ago

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

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

1 week ago

Release Notes

New Features

  • #3073: feat: expose hasPassword and password 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: https://github.com/wp-graphql/wp-graphql/compare/v1.22.1...v1.23.0

v1.22.1

1 month ago

Release Notes

Chores / Bugfixes

  • #3067: fix: respect show avatar setting
  • #3063: fix: fixes a bug in cursor stability filters that could lead to empty order. Thanks @mohjak!
  • #3070: test(3063): Adds test for #3063

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.22.0...v1.22.1

v1.22.0

1 month ago

Release Notes

New Features

  • #3044: feat: add graphql_pre_resolve_menu_item_connected_node filter
  • #3039: feat: add UniformResourceIdentifiable interface to Comment 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 possible null 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 with user_

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.21.0...v1.22.0

v1.21.0

2 months ago

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: https://github.com/wp-graphql/wp-graphql/compare/v1.20.0...v1.21.0

v1.20.0

3 months ago

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

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.19.0...v1.20.0

v1.19.0

5 months ago

Release Notes

New Features

  • #2988: feat: add missing extra fields to EnqueuedAsset, EnqueuedScript and EnqueuedStylesheet

Chores / Bugfixes

  • #2989: fix: make User.url public
  • #2990: chore: autolint tests with phpcbf
  • #2992: fix: add polyfills for str_starts_with() and str_ends_with() to prevent fatal errors in PHP < 8.0

v1.18.2

5 months ago

Release Notes

Chores / Bugfixes

  • ci: update tests to run against WordPress 6.4.1. Update Docker Deploy to include WP 6.4.1. Update README, plugin file's "tested up to" to reflect.

v1.18.1

5 months ago

Release Notes

Chores / Bugfixes

  • #2984: ci: update tests to run against WordPress 6.4. Update README, plugin file's "tested up to" to reflect.

v1.18.0

5 months ago

Release Notes

New Features

  • #2937: fix: Support asPreview by URI/SLUG Id Type (this is technically a bugfix, but introduces new functionality)

Chores / Bugfixes

  • #2972: chore(deps): bump @babel/traverse from 7.17.3 to 7.23.2
  • #2930: fix: unstable term cursor identical names
  • #2976: chore: restore commenting sniffs to PHPCS ruleset
  • #2973: chore: update composer deps to latest
  • #2975: chore: lint and remove useless variables [phpcs]
  • #2977: chore: sort use statements alphabetically with SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses (autofix)
  • #2978: chore: implement stricter type hinting with SlevomatCodingStandard.TypeHints [phpcs]