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.11.0

Published by jasonbahl about 2 years ago

What's Changed

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.10.0...v1.11.0

wp-graphql - v1.10.0

Published by jasonbahl about 2 years ago

Release Notes

Upgrade Notice

PR (#2490) fixes a bug that some users were using as a feature.

When a page is marked as the "Posts Page" WordPress does not resolve that page by URI, and this bugfix no longer will resolve that page by URI.

Here, you can read more about why this change was made and find a snippet of code that will bring the old functionality back if you've built features around it.

New Features

  • (#2503): Enable codeception debugging via Github Actions. Thanks @justlevine!
  • (#2502): Add idType arg to RootQuery.comment. Thanks @justlevine!
  • (#2505): Return user after resetUserPassword mutation. Thanks @justlevine!

Chores / Bugfixes

  • (#2482): Add PHP Code Sniffer support for the WordPress.com VIP GO standard. Thanks @renatonascalves!
  • (#2490): Fix bug related to querying the page set as "Posts Page"
  • (#2497): Only enqueue admin scripts on the settings page. Thanks @justlevine!
  • (#2498): Add include and exclude args to MediaDetails.sizes. Thanks @justlevine!
  • (#2499): Check for multiple theme capabilities in the Theme Model. Thanks @justlevine!
  • (#2504): Filter mediaItems query by mimeType. Thanks @justlevine!
  • (#2506): Update descriptions for input fields that accept a databaseId. Thanks @justlevine!

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.9.1...v1.10.0

wp-graphql - v1.9.1

Published by jasonbahl about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.9.0...v1.9.1

wp-graphql - v1.9.0

Published by jasonbahl about 2 years ago

Release Notes

Upgrading

There are 2 changes that might require action when updating to 1.9.0

1. (#2464)

When querying for a nodeByUri, if your site has the "page_for_posts" setting configured, the behavior of the nodeByUri query for that uri might be different for you.

Previously a bug caused this query to return a "Page" type, when it should have returned a "ContentType" Type.

The bug fix might change your application if you were using the bug as a feature.

2. (#2457)

There were a lot of bug fixes related to connections to ensure they behave as intended. If you were querying lists of data, in some cases the data might be returned in a different order than it was before.

For example, using the "last" input on a Comment or User query should still return the same nodes, but in a different order than before.

This might cause behavior you don't want in your application because you had coded around the bug. This change was needed to support proper backward pagination.

Chores / Bugfixes

  • (#2450): Fix PHPCompatibility lint config. Thanks @justlevine!
  • (#2452): Fixes a bug with Comment.author connections not properly resolving for public (non-authenticated) requests.
  • (#2453): Update Github Workflows to use PHP 7.3. Thanks @justlevine!
  • (#2454): Add linter to ensure Pull Requests use "Conventional Commit" standards.
  • (#2455): Refactors and Lints the WPUnit tests. Cleans up some "leaky" data in test suites. Thanks @justlevine!
  • (#2457): Refactor Connection Resolvers to better adhere to Relay Connection spec. This fixes several bugs related to pagination across connections, specifically User and Comment connections which didn't properly support backward pagination at all. Thanks @justlevine!
  • (#2460): Update documentation for running tests with Docker. Thanks @markkelnar!
  • (#2463): Add Issue templates to the repo. Thanks @justlevine!
  • (#2464): Fixes node resolver when "page_for_posts" setting is set to a page.

If you were affected by #2464, here's a snippet that can help bring back previous behavior:

add_filter( 'graphql_pre_resolve_uri', function( $null, $uri, $context, $wp ) {

	$page_for_posts = get_option( 'page_for_posts', 0 );

	if ( empty( $page_for_posts ) ) {
		return $null;
	}

	$permalink = get_permalink( (int) $page_for_posts );

	if ( empty( $permalink ) || is_wp_error( $permalink ) ) {
		return $null;
	}

	$parsed_permalink = wp_parse_url( $permalink );
	$parsed_uri = wp_parse_url( $uri );

	if ( ! isset( $parsed_permalink['path'] ) || ! isset( $parsed_uri['path'] )) {
		return $null;
	}

	$trimmed_uri_path = rtrim( ltrim( $parsed_uri['path'], '/' ), '/' );
	$trimmed_permalink_path = rtrim( ltrim( $parsed_permalink['path'], '/' ), '/' );

	if ( $trimmed_permalink_path === $trimmed_uri_path ) {
		return new \WPGraphQL\Model\Post( get_post( (int) $page_for_posts ) );
	}

	return $null;

}, 10, 4 );

You can read more about this here: https://github.com/wp-graphql/wp-graphql/issues/2486#issuecomment-1232169375

wp-graphql - v1.8.7

Published by jasonbahl about 2 years ago

Release Notes

Chores / Bugfixes

  • (#2441): Fix contentNodes field not showing if a taxonomy is registered without connected post types. Thanks @saimonh3!
  • (#2446): Update "terser" from 5.11.0 to 5.14.2 (GraphiQL Dependency)
  • (#2440): Update JS dependencies for GraphiQL

New Features

  • (#2435): Add filter in execute for query string. Thanks @markkelnar!
  • (#2432): Add query_id to after_execute_actions for batch requests. Thanks @markkelnar!

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.8.6...v1.8.7

wp-graphql - v1.8.6

Published by jasonbahl over 2 years ago

Release Notes

Chores / Bugfixes

  • (#2427): Fixes a regression of the 1.8.3 release where there could be fatal errors when GraphQL Tracing is enabled and a queryId is used as a query param.
wp-graphql - v1.8.5

Published by jasonbahl over 2 years ago

1.8.5

Chores / Bugfixes

  • (#2422): Fixes a regression of the 1.8.3 release where there could be fatal errors when GraphQL Tracing is enabled.
wp-graphql - v1.8.4

Published by jasonbahl over 2 years ago

1.8.4

Chores / Bugfixes

  • (#2416): Fixes schema artifact workflow in Github.
wp-graphql - v1.8.3

Published by jasonbahl over 2 years ago

New Features

  • (#2388): Adds ability to query menus by SLUG and LOCATION. Thanks @justlevine!

Chores / Bugfixes

  • (#2412): Update tests to run in PHP 8, 8.1 and with WordPress 6.0. Updates Docker Deploy workflow as well.
  • (#2411): Fixes bug where menuItems "location" arg was conflicting if a taxonomy is also registered with "location" as its name.
  • (#2410): Fixes a regression with Taxonomy Connection pagination.
  • (#2406): Updates PHPUnit, WPBrowser and WPGraphQL Test Case for use in workflows. Thanks @justlevine!
  • (#2387): Fixes a bug with asset versions when querying for Enqueued Scripts and Styles. Thanks @justlevine!
wp-graphql - v1.8.2

Published by jasonbahl over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.8.1...v1.8.2

wp-graphql - v1.8.1

Published by jasonbahl over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.8.0...v1.8.1

wp-graphql - v1.8.0

Published by jasonbahl over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.7.2...v1.8.0

wp-graphql - v1.7.2

Published by jasonbahl over 2 years ago

What's Changed

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.7.1...v1.7.2

wp-graphql - v1.7.1

Published by jasonbahl over 2 years ago

Release Notes

Chores / Bugfixes

  • (#2268): Fixes a bug in GraphiQL that would update browser history with every change to a query param.
wp-graphql - v1.7.0

Published by jasonbahl over 2 years ago

Release Notes

Brand. New. WPGraphiQL IDE.

This release includes a re-write of the WPGraphiQL IDE.

Updated UI

CleanShot 2022-03-03 at 13 41 44

Extension APIs

Not only is the UI updated, but the codebase has been re-written completely to allow for 3rd party plugins to hook/filter the functionality and extend it.

You can now write GraphiQL extensions that interact with the GraphiQL IDE, and have access to the same React Context / State as the rest of the app.

This sets the stage for tools like WPGraphQL for WooCommerce, WPGraphQL for ACF and Atlas Content Modeler to provide custom tools that enhance their users experience of using the GraphiQL IDE.

Authentication Switch

In addition to the updated UI and extension-friendly architecture, WPGraphiQL now includes one of the most requested features for the tool: a button that lets you toggle between executing requests as a public (non-authenticated) user and an authenticated user (who you're logged in to the WordPress dashboard as).

Chores / Bugfixes

  • (#2228): Allows optional fields to be set to empty values in the updateUser mutation. Thanks @victormattosvm!
  • (#2247): Add WordPress 5.9 to the automated testing matrix. Thanks @markkelnar!
  • (#2242): Adds End 2 End tests to test GraphiQL functionality in the admin.
  • (#2261): Fixes a bug where the pageByUri query might return incorrect data when custom permalinks are set. Thanks @blakewilson!
  • (#2263): Adds documentation entry for WordPress Application Passwords guide. Thanks @abhisekmazumdar!
  • (#2262): Fixes a bug where settings registered via the core register_setting() API would cause Schema Introspection failures, causing GraphiQL and other tools to not work properly.

New Features

  • (#2248): WPGraphiQL (the GraphiQL IDE in the WordPress dashboard) has been re-built to have an extension architecture and some updated user interfaces. Thanks for contributing to this effort @scottyzen!
  • (#2246): Adds support for querying the avatar for the CommentAuthor Type and the Commenter Interface type.
  • (#2236): Introduces new graphql_model_prepare_fields filter and deprecates graphql_return_modeled_data filter. Thanks @justlevine!
  • (#2265): Adds opt-in telemetry tracking via Appsero, to allow us to collect helpful information for prioritizing future feature work, etc.
wp-graphql - v1.6.12

Published by jasonbahl over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.6.11...v1.6.12

wp-graphql - v1.6.11

Published by jasonbahl almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.6.10...1.6.11

wp-graphql - v1.6.10

Published by jasonbahl almost 3 years ago

Release Notes

  • No functional changes from v1.6.8. Updating stable tag for WordPress.org and re-deploying.
wp-graphql - v1.6.9

Published by jasonbahl almost 3 years ago

Release Notes

  • No functional changes from v1.6.8. Fixing an issue with deploy to W…
wp-graphql - v1.6.8

Published by jasonbahl almost 3 years ago

What's Changed

Full Changelog: https://github.com/wp-graphql/wp-graphql/compare/v1.6.7...v1.6.8

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