Releases: rhino-project/rhino-nestjs
Releases · rhino-project/rhino-nestjs
v4.3.1
Full Changelog: v4.3.0...v4.3.1
v4.3.0
Full Changelog: v4.2.1...v4.3.0
v4.2.1
Full Changelog: v4.2.0...v4.2.1
v4.2.0
@rhino-dev/rhino-nestjs 4.2.0
Added
- Group-aware auth, membership enforcement & lifecycle hooks (per-group
auth/hooks,auth.enforceGroupMembership). - Domain route groups (
{organization}.example.com) + route-group conflict validation.
Fixed
- Membership is now enforced at
/auth/login— a non-member is rejected with 403MEMBERSHIP_DENIED(token revoked, never returned) instead of authenticating and only being blocked on the first resource request. Brings NestJS to parity with the Laravel/Rails stacks. - Org-less / single-tenant apps can authenticate (guarded
userRolesinclude).
Full Changelog: v4.0.0...v4.2.0
v4.1.0
Rhino 4.1.0
Domain-aware route groups
Route groups can declare a domain to scope their routes to a host — literal
(admin.example.com) or parameterized ({organization}.example.com) for
subdomain multitenancy. Combines with prefix; parameterized domains feed
organization resolution.
Route group conflict validation
Boot-time validation throws when two route groups would silently shadow each
other (same prefix + intersecting host-set + overlapping models), with a clear
message and remediation.
Group-aware auth, membership & lifecycle hooks (opt-in)
- Group membership on
user_rolesvia a nullableroute_groupcolumn
(NULL = wildcard), gated byenforce_group_membership. When on, a request's
group requires a matching membership (else 403) and permissions resolve
from the matching row. - Group-aware auth — groups with
auth: trueregister their own auth route
set; the legacy auth endpoints are preserved. - Invitations carry the route group; accept populates the membership.
- Lifecycle hooks run after each auth action and may reject, revoking the
just-issued token.afterPasswordRecoverrejection is swallowed to prevent
email enumeration.
All new behavior is opt-in — with the flags off, behavior is unchanged.
v4.0.0
Full Changelog: https://github.com/rhino-project/rhino-nestjs/commits/v4.0.0