Skip to content

release: v13.34.5 - #406

Merged
ogorzalka merged 30 commits into
mainfrom
develop
Oct 6, 2026
Merged

ogorzalka merged 30 commits into
mainfrom
develop

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Release v13.34.5 — see #405 and the CHANGELOG.

HasRoles on Pollora\Models\User (roles, hasRole, assignRole, removeRole),
the role: middleware, @ROLE accepting #[Role] classes in place of Sage's,
and the Can permission for #[WpRestRoute], which now accepts Permission
instances.
feat(roles): check roles in Laravel and capabilities in REST routes
# Conflicts:
#	CHANGELOG.md
#	src/Role/Infrastructure/Providers/RoleServiceProvider.php
…and taxonomies

#[PostMeta], #[TermMeta], #[UserMeta] and #[CommentMeta] attach a #[Meta]
schema to objects the project does not declare. A schema now holds a list
of subtypes, empty for every object of its type.
feat(roles): translate role labels with the declaring text domain
HasTypedMeta on Post, Page, Term, User and Comment: typed reads, checked
writes stored on save, whereMeta() and one meta cache query per
collection. Post models are bound to their $postType at discovery.
…erriding newCollection()

Overriding newCollection() could not keep Eloquent's generic return type
(PHPStan in CI). Models loaded together now join a batch on 'retrieved',
primed in one update_meta_cache() call on the first typed read.
feat(meta): typed meta for users, comments and undeclared post types and taxonomies
feat(meta): typed meta as attributes of the Pollora models
feat(meta): add custom-fields to a declared post type exposing meta in REST
Arrays of typed items, stored one row per item (single: false) or as one
serialized array; classes with public typed properties, stored as arrays.
REST schemas with items and properties; whereMeta() on rows.
Neutral control, group and hints on #[Meta]; Meta::extend(), meta.ui, the
schemas handed to the driver on init with the meta it supports;
Meta::schemas(), schemaFor(), MetaSchemasRegistered and a conformance
check for driver authors.
feat(meta): validation rules on typed meta, for PHP and REST writes
feat(meta): arrays and data objects as typed meta
feat(meta): a driver contract for the input fields of typed meta
@ogorzalka
ogorzalka merged commit d97c135 into main Oct 6, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant