Skip to content

chore(deps): update pollora/wp-rest requirement from ^0.1 || ^0.2 || ^1.0 || ^2.0 to ^2.0.1 - #705

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/wp-rest-tw-2.0.1
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/develop/pollora/wp-rest-tw-2.0.1

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Updates the requirements on pollora/wp-rest to permit the latest version.

Release notes

Sourced from pollora/wp-rest's releases.

2.0.1

Changed

  • Accepts pollora/discovery 0.2 (^0.1 || ^0.2 || ^1.0)

Internal

  • The Architecture test suite runs tests/Arch.php, which the default run left out
Changelog

Sourced from pollora/wp-rest's changelog.

[2.0.1] - 2026-11-19

Changed

  • Accepts pollora/discovery 0.2 (^0.1 || ^0.2 || ^1.0)

Internal

  • The Architecture test suite runs tests/Arch.php, which the default run left out

[2.0.0] - 2026-10-29

A major release: a route that declares no permission is refused.

Changed

  • A route without a permission is refused (rest_forbidden, 401 for a visitor, 403 for a logged-in user). Until now it stayed public and called _doing_it_wrong(). Declare permissionCallback: Everyone::class on the routes that are public on purpose, or a permission such as IsLoggedIn
  • The pollora/wp-rest/private_by_default filter now defaults to true. Return false to keep the routes without a permission public while a site migrates; WordPress is then told, with WP_DEBUG, which route to fix

Removed

  • The pollora/wp_rest/private_by_default filter name and the WpRestRouteRegistrar::PRIVATE_BY_DEFAULT constant, deprecated since 0.2.1. Use pollora/wp-rest/private_by_default

[0.2.1] - 2026-10-26

Changed

  • The filter is named pollora/wp-rest/private_by_default, to follow pollora/<module>/<event>. The name 0.2.0 gave it, pollora/wp_rest/private_by_default, still works and reports itself as deprecated

[0.2.0] - 2026-10-26

Added

  • Pollora\WpRest\Permissions\Everyone: declares a route public on purpose
  • The pollora/wp_rest/private_by_default filter: return true to refuse every route that declares no permission, as the next major version will

Deprecated

  • A route without a permission: it stays public, and now calls _doing_it_wrong() with the route and the fix. The next major version refuses it. Declare permissionCallback: Everyone::class to keep a route public. The notice is skipped while a REST request is served, so a notice printed by WP_DEBUG never breaks a JSON response

[0.1.0] - 2026-10-13

A first version for the framework's next release to build on; 1.0.0 comes with that release.

Added

  • First release, extracted from pollora/framework (src/WpRest) with its history. Class names are unchanged: Pollora\WpRest\*, and Pollora\Support\WpGlobals
  • Runs without Laravel's application: controllers are built by the discovery's instance resolver, with their constructor dependencies, and custom HandlesAttributes attributes get the PSR-11 container given to WpRestDiscovery. An architecture test keeps the package to the attributes, discovery, PSR contracts and WordPress
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/wp-rest](https://github.com/Pollora/wp-rest) to permit the latest version.
- [Release notes](https://github.com/Pollora/wp-rest/releases)
- [Changelog](https://github.com/Pollora/wp-rest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Pollora/wp-rest/commits/2.0.1)

---
updated-dependencies:
- dependency-name: pollora/wp-rest
  dependency-version: 2.0.1
  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