Skip to content
What's new

Rent v0.8.10

Rent v0.8.10 improves permission evaluation and fixes two migration lifecycle issues. Existing schemas and generated client APIs remain compatible.

Permission checks with views

A read-only view elsewhere in a schema no longer prevents eligible permission checks on ordinary models from reusing evidence within an operation. Checks that depend on views or other non-repeatable evidence retain their existing restrictions.

Rent batches compatible permission reads across related records, reducing repeated round trips when evaluating access through multiple groups or memberships. Permission decisions, tenant boundaries, and evaluation limits remain enforced. Bounded read-ahead can fetch evidence for a related record that is ultimately unnecessary, so statement savings depend on the permission path.

No new setting is required. Detailed instrumentation remains opt-in.

Arithmetic checks and partial indexes

Migration comparison recognizes equivalent supported arithmetic expressions in checks and partial-index predicates. Applying a migration and planning again no longer proposes the same arithmetic definition because of database formatting differences. Changes to operators, operands, constants, casts, or grouping still receive a migration when needed.

PostgreSQL reset and application functions

rent migrate reset now removes application functions in the selected schema scope before replaying migration history. It handles overloaded functions and dependencies while preserving extension-owned functions and objects outside the selected scope.

A dependency outside the cleanup set can prevent reset. Rent reports the failure and rolls back cleanup rather than cascading into unrelated objects. Resolve the dependency before retrying. Reset remains destructive and is intended for disposable databases.

Upgrade

Use v0.8.10 for the CLI and every Rent crate, regenerate each configured client, and commit your application's lockfile. This upgrade itself requires no schema migration. Review newly planned migrations normally. See installation.