wp-graphql

GraphQL API for WordPress

GPL-3.0 License

Downloads
304.7K
Stars
3.6K
Committers
154

Bot releases are hidden (Show)

wp-graphql - v1.23.0 Latest Release

Published by jasonbahl 6 months 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

wp-graphql - v1.22.1

Published by jasonbahl 7 months 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

wp-graphql - v1.22.0

Published by jasonbahl 8 months 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

wp-graphql - v1.21.0

Published by jasonbahl 8 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

wp-graphql - v1.20.0

Published by jasonbahl 9 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

wp-graphql - v1.19.0

Published by jasonbahl 11 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
wp-graphql - v1.18.2

Published by jasonbahl 11 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.
wp-graphql - v1.18.1

Published by jasonbahl 12 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.
wp-graphql - v1.18.0

Published by jasonbahl 12 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]
wp-graphql - v1.17.0

Published by jasonbahl about 1 year ago

Release Notes

New Features

  • #2958: feat: add graphql_format_name() access method (Thanks @justlevine!)
  • #2256: feat: add connectedTerms connection to Taxonomy Object (Thanks @justlevine!)

Chores / Bugfixes

  • #2808: fix: fallback to template filename if sanitized name is empty (Thanks @mecaota and @justlevine!)
  • #2968: fix: Add graphql_debug warning when using hasPublishedPosts: ATTACHMENT (Thanks @justlevine!)
  • #2968: fix: improve DX for updateComment mutation
  • #2962: fix: respect hasPublishedPosts where arg on unauthenticated users queries (Thanks @justlevine!)
  • #2967: fix: use all roles for UserRoleEnum instead of the filtered editible_roles (Thanks @justlevine!)
  • #2940: fix: Decode slug so it works with other languages (Thanks @scottyzen!)
  • #2959: chore: remove @phpstan-ignore annotations (Thanks @justlevine!)
  • #2945: fix: rename fields registered by connections when using rename_graphql_field() (Thanks @justlevine!)
  • #2949: fix: correctly get default user role for settings selectbox (Thanks @justlevine!)
  • #2955: test: back-fill register_graphql_input|union_type() tests (Thanks @justlevine!)
  • #2953: fix: term uri, early return. (Follow up to #2341)
  • #2956: chore(deps-dev): bump postcss from 8.4.12 to 8.4.31 (Thanks @dependabot!)
  • #2954: fix: regression to autoloader for bedrock sites. (Follow-up to #2935)
  • #2950: fix: rename typo in component name - AuthSwitchProvider (Thanks @justlevine!)
  • #2948: chore: fix spelling mistakes (non-logical) (Thanks @justlevine and @szepeviktor!)
  • #2944: fix: skip setting if no $setting['group'] (Thanks @justlevine!)
  • #2934: chore(deps-dev): bump composer/composer from 2.2.21 to 2.2.22 (Thanks @dependabot!)
  • #2936: chore(deps): bump graphql from 16.5.0 to 16.8.1 (Thanks @dependabot!)
  • #2341: fix: wrong term URI on sub-sites of multisite subdomain installs (Thanks @jeanfredrik!)
  • #2935: fix: admin notice wasn't displaying if composer dependencies were missing
  • #2933: chore: remove unused parameters from resolver callbacks (Thanks @justlevine!)
  • #2932: chore: cleanup PHPCS inline annotations (Thanks @justlevine!)
  • #2934: chore: use .php extension for stub files (Thanks @justlevine!)
  • #2924: chore: upgrade WPCS to v3.0 (Thanks @justlevine!)
  • #2921: fix: zip artifact in GitHub not in sub folder (Thanks @markkelnar!)

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.16.0...v1.17.0

wp-graphql - v1.16.0

Published by jasonbahl about 1 year ago

Release v1.16.0

Upgrade Notice

WPGraphQL Smart Cache

For WPGraphQL Smart Cache users, you should update WPGraphQL Smart Cache to v1.2.0 when updating
WPGraphQL to v1.16.0 to ensure caches continue to purge as expected.

Cursor Pagination Updates

This version fixes some behaviors of Cursor Pagination which may lead to behavior changes in your application.

As with any release, we recommend you test in staging environments. For this release, specifically any
queries you have using pagination arguments (first, last, after, before).

New Features

  • #2918: feat: Use graphql endpoint without scheme in url header.
  • #2882: feat: Config and Cursor Classes refactor

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.15.10...v1.16.0

wp-graphql - v1.15.0

Published by jasonbahl about 1 year ago

Release Notes

New Features

  • #2908: feat: Skip param added to Utils::map_input(). Thanks @kidunot89!

Chores / Bugfixes

  • #2907: ci: Use WP 6.3 image, not the beta one
  • #2902: chore: handle unused variables (phpcs). Thanks @justlevine!
  • #2901: chore: remove useless ternaries (phpcs). Thanks @justlevine!
  • #2898: chore: restore excluded PHPCS sniffs. Thanks @justlevine!
  • #2899: chore: Configure PHPCS blank line check and autofix. Thanks @justlevine!
  • #2900: chore: implement PHPCS sniffs from Slevomat Coding Standards. Thanks @justlevine!
  • #2897: fix: default excerptRendered to empty string. Thanks @izzygld!
  • #2890: fix: Use hostname for graphql cache header url for varnish
  • #2892: chore: GitHub template tweaks. Thanks @justlevine!
  • #2889: ci: update tests to test against WordPress 6.3, simplify the matrix
  • #2891: chore: bump graphql-php to 14.11.10 and update Composer dev-deps. Thanks @justlevine!
wp-graphql - v1.14.10

Published by jasonbahl about 1 year ago

Release Notes

Chores / Bugfixes

  • #2874: fix: improve PostObjectCursor support for meta queries. Thanks @kidunot89!
  • #2880: fix: increase clarity of the description of "asPreview" argument

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.14.9...v1.14.10

wp-graphql - v1.14.9

Published by jasonbahl about 1 year ago

Release Notes

Chores / Bugfixes

  • #2865: fix: user roles should return empty if user doesn't have roles. Thanks @j3ang!
  • #2870: fix: Type Loader returns null when "graphql_single_name" value has underscores [regression]
  • #2871: fix: update tests, follow-up to #2865

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.14.8...v1.14.9

wp-graphql - v1.14.8

Published by jasonbahl about 1 year ago

Release Notes

Chores / Bugfixes

  • #2855: perf: enforce static closures when possible (PHPCS). Thanks @justlevine!
  • #2857: fix: Prevent truncation of query name inside the GraphiQL Query composer explorer tab. Thanks @LarsEjaas!
  • #2856: chore: add missing translator comments. Thanks @justlevine!
  • #2862: chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4
  • #2861: fix: output list:$type keys for Root fields that return a list of nodes

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.14.7...v1.14.8

wp-graphql - v1.14.7

Published by jasonbahl over 1 year ago

Release Notes

Chores / Bugfixes

  • #2853: fix: internal server error when query max depth setting is left empty
  • #2851: fix: querying posts by slug or uri with non-ascii characters
  • #2849: ci: Indent WP 6.2 in workflow file. Fixes Docker deploys. Thanks @markkelnar!
  • #2846: chore(deps): bump tough-cookie from 4.0.0 to 4.1.3
wp-graphql - v1.14.6

Published by jasonbahl over 1 year ago

Release Notes

Security

This release contains a security related fix. You can read more about it here: https://github.com/wp-graphql/wp-graphql/security/advisories/GHSA-cfh4-7wq9-6pgg

Chores / Bugfixes

  • #2841: ci: support STEP_DEBUG in Code Quality workflow. Thanks @justlevine!
  • #2840: fix: update createMediaItem mutation to have better validation of input.
  • #2838: chore: update security.md to mention where to contact us about security related issues
wp-graphql - v1.14.5

Published by jasonbahl over 1 year ago

Release Notes

Chores / Bugfixes

  • #2834: fix: improve how the Query Analyzer tracks list types, only tracking lists from the RootType and not nested lists.
  • #2828: chore: update composer dev-deps to latest. Thanks @justlevine!
  • #2835: ci: update docker deploy workflow to use latest docker actions.
  • #2836: ci: update schema upload workflow to pin mariadb to 10.8.2
wp-graphql - v1.14.4

Published by jasonbahl over 1 year ago

Release Notes

New Features

  • #2826: feat: pass connection config to connection field

Chores / Bugfixes

  • #2818: chore: update webonyx/graphql-php to v14.11.9. Thanks @justlevine!
  • #2813: fix: replace double negation with true. Thanks @cesarkohl!

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.14.3...v1.14.4

wp-graphql - v1.14.3

Published by jasonbahl over 1 year ago

1.14.3

Chores / Bugfixes

  • #2801: fix: conflict between custom post type and media slugs
  • #2799: fix: querying posts by slug fails when custom permalinks are set
  • #2794: chore(deps): bump guzzlehttp/psr7 from 1.9.0 to 1.9.1
Package Rankings
Top 0.97% on Packagist.org
Top 6.68% on Proxy.golang.org
Badges
Extracted from project README
Total Downloads Monthly Downloads Daily Downloads Latest Stable Version License Actions Status Actions Status Coverage Status Backers on Open Collective Sponsors on Open Collective
Related Projects