@refinest/file-storage
v0.2.0
Published
Refinest: storage port for file fields — adapters, mappers, contract suite
Readme
@refinest/file-storage
Storage port for file fields — adapters, mappers, and a contract suite that every
backend implementation must pass. This package is being built out incrementally;
see the design spec at
docs/superpowers/specs/2026-07-27-file-storage-design.md
for the full architecture and rollout plan.
inheritFileMapperBaseline(source, target) copies the opaque edit capability
from a decoded record to a freshly assembled form payload. It does not expose
the retained backend value, is non-enumerable, and does not survive object
spread or JSON serialization. Ordinary ResourceForm submissions apply it
automatically; custom form assemblers can call it explicitly.
