Skip to content

Conversation

@jasonbahl
Copy link
Collaborator

@jasonbahl jasonbahl commented Apr 23, 2024

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

justlevine and others added 30 commits March 30, 2024 10:53
…ugin-connection-resolver

perf: refactor `PluginConnectionResolver` to only fetch plugins once
…e implementing Type does not have a description defined on the field already
…e registered that have the same fieldName, toType and ConnectionTypeName

- add isConnectionField identifier to fields registered via WPConnectionType
- fix typo in docblock
fix: recursion issues with interfaces
…leanup

chore: prepare ConnectionResolver classes for v2 backport
…ling

refactor: improve `loader` handling in `AbstractConnectionResolver`
…t_query_amount

feat: improve query amount handling in `AbstractConnectionResolver`
…red_args

refactor: add `AbstractConnectionResolver::get_unfiltered_args()` public getter
refactor: add `AbstractConnectionResolver::prepare_page_info()`and only instantiate once
…backport/deprecate-camelcased

# Conflicts:
#	src/Data/Connection/AbstractConnectionResolver.php
…amelcased

refactor: deprecate `camelCase` methods in `AbstractConnectionResolver` for `snake_case` equivalents
…leanup

chore: connection resolvers cleanup
…perfluous-whitespace

# Conflicts:
#	src/Data/Connection/AbstractConnectionResolver.php
@coveralls
Copy link

Coverage Status

coverage: 84.289% (-0.08%) from 84.373%
when pulling 545cc52 on release/v1.24.0
into 24bd28b on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: release Pull request intended for a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants