Skip to content

chore(deps): update pollora/query requirement from ^2.0 || ^3.0 to ^3.1.0 - #706

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/query-tw-3.1.0
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/query-tw-3.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on pollora/query to permit the latest version.

Release notes

Sourced from pollora/query's releases.

3.1.0

Changed

  • Accepts pollora/wordpress-args 2.0 (^1.1 || ^2.0), which only raises its PHP requirement to 8.3.
  • PHPStan is now a blocking gate (no longer observed): tagSlugAnd() is documented as taking slugs (array<string>), SubQuery declares get(), the date builder's array shapes match what it returns. No runtime change.
  • metaQuery(), dateQuery() and taxQuery() share the protected mergeSubQuery() (returns the merged query) in place of addSubQuery().
Changelog

Sourced from pollora/query's changelog.

[3.1.0] - 2026-11-19

Changed

  • Accepts pollora/wordpress-args 2.0 (^1.1 || ^2.0), which only raises its PHP requirement to 8.3.
  • PHPStan is now a blocking gate (no longer observed): tagSlugAnd() is documented as taking slugs (array<string>), SubQuery declares get(), the date builder's array shapes match what it returns. No runtime change.
  • metaQuery(), dateQuery() and taxQuery() share the protected mergeSubQuery() (returns the merged query) in place of addSubQuery().

[3.0.0] - 2026-10-28

A major release for the PHP requirement: no query changed. Run PHP 8.3 or later.

Changed

  • Requires PHP 8.3 or later (PHP 8.2 is no longer maintained). CI runs on PHP 8.3 and 8.4.
  • The development tools move to Pest 3 and the Pollora harness, which replaces Rector 0.18 and PHPInsights.

[2.0.0] - 2026-10-15

A major release: Query now covers every query class of WordPress, and several arguments that were wrong or silently ignored are fixed. A few fixes change the results of a query that used to run, so read Upgrading before updating.

Added

  • Query classes: TermQuery (WP_Term_Query), UserQuery (WP_User_Query), CommentQuery (WP_Comment_Query), SiteQuery (WP_Site_Query) and NetworkQuery (WP_Network_Query). Every documented argument is covered.
  • Terminal methods, on every class: first(), ids(), count() and exists(), which run on a copy of the builder and leave it untouched. TermQuery adds names() and slugs(), UserQuery adds pluck(). See Getting results.
  • PostQuery arguments: pageId(), pagename(), title(), menuOrder(); the date fields year(), month(), day(), hour(), minute(), second(), week() and yearMonth(); the top-level meta arguments metaKey(), metaValue(), metaCompare(), metaType(), metaCompareKey() and metaTypeKey(); orderByMeta(); exactSearch(), searchSentence() and searchColumns(); noFoundRows(), suppressFilters() and lazyLoadTermMeta().
  • Meta clauses: regexp(), notRegexp(), rlike(), keyCompare() and keyType().
  • Tax clauses: containsAll() (operator => 'AND').
  • Date clauses: registered(), and inclusive() on a single clause.
  • Query::tax(), next to Query::meta() and Query::date().
  • Documentation split into pages under docs/, with a page per query class. Its examples are run by the test suite, and CI fails when one no longer matches the code.

Changed

  • where() followed by orWhere() is grouped like Eloquent. where(a)->where(b)->orWhere(c) is (a AND b) OR c; it used to turn the whole group into a OR b OR c.
  • DateQuery::inclusive() works. It was written where WordPress does not read it, so it had no effect; it is now written on each date clause.
  • Dates use a 24-hour clock. A date string was converted with the 12-hour format ('2022-01-01' gave hour => 12, '… 15:10:00' gave hour => 3). The parts of a converted date are now integers.
  • Invalid values throw a QueryException instead of being silently ignored: fields(), userPermission() and the direction of orderBy().
  • date() without a column no longer sends one, so WordPress uses the default of the queried table (post_date, user_registered, comment_date, registered).
  • Defaults chosen so that nothing is silently left out: TermQuery returns empty terms (hide_empty => false) and SiteQuery has no cap of 100 sites (number => 0). PostQuery keeps post_type => 'any'. CommentQuery keeps WordPress' own defaults on purpose (no spam, no trash). See Concepts.

Fixed

  • DateQueryBuilder::within() always threw a TypeError.
  • A debug var_export printed to the output when a date string was converted.
  • A numeric (timestamp) string given to before() or after() threw a TypeError.
  • categoryAnd() sent category_and, which WordPress ignores; it now sends category__and.
  • postType() did not accept an array.
  • orderBy() with an array, and inRandomOrder() followed by orderBy() or latest(), threw a TypeError.
  • ofType() was ignored, and the type of a list was detected from its first value only (between(1, 50) was BINARY, in([]) raised a warning). One type now fits every value.

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pollora/query](https://github.com/Pollora/Query) to permit the latest version.
- [Release notes](https://github.com/Pollora/Query/releases)
- [Changelog](https://github.com/Pollora/Query/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Pollora/Query/commits/3.1.0)

---
updated-dependencies:
- dependency-name: pollora/query
  dependency-version: 3.1.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 24, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automerge. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants