smart_repository 0.8.0 copy "smart_repository: ^0.8.0" to clipboard
smart_repository: ^0.8.0 copied to clipboard

Policy-driven coordination for remote and local repository data.

0.8.0 #

  • Added value-based page sync, create, update, and delete recipes that generate request maps, DTO conversion, local commits, and optional 404 cleanup.
  • Added automatic Either<Failure, T> result adaptation.
  • Added direct one- or two-argument error-mapper tear-offs.
  • Added item-level local stream mapping with RepositoryLocalStream.mapEach.
  • Preserved all callback-based generators and manual repository APIs.

0.7.1 #

  • Added action error side effects that preserve original failures.

0.7.0 #

  • Added @GenerateRepository metadata for generating data-layer repository implementations directly from annotation-free domain contracts.
  • Added compact RepoMethod read-policy recipes.
  • Kept every manual, declarative coordinator, and direct implementation API.

0.6.0 #

  • Added RepositoryActionExecutor for sync/create/update/delete operations whose public result differs from remote and locally persisted values.
  • Added in-flight action deduplication without retaining completed request keys.
  • Added raw error recovery through RepositoryRecovery, including recovered values that continue through mapping and local commit.
  • Preserved all read/cache repository APIs and behavior.

0.5.2 #

  • Added @GenerateRepositoryImplementation for generating concrete Clean Architecture repository implementations instead of separate coordinators.
  • Added request-body generation, application result adapters, class-level mapping defaults, automatic local-source forwarding, and generated disposal.

0.5.1 #

  • Added multi-parameter methods using generated composite record keys while preserving positional, named, optional, and default arguments.
  • Added retainKeyedRepository: false for one-shot or sensitive requests that must release their generated key and state after completion.

0.5.0 #

  • Added declarative @GenerateSmartRepository<Remote, Local>() definitions.
  • Added @RepositoryMethod plus policy annotations: @NetworkOnly, @CacheOnly, @CacheFirst, @NetworkFirst, @StaleWhileRevalidate, and @CacheAndNetwork.
  • Added generated single-value/keyed coordinators with automatic SmartRepository/MappedRepository selection from source return types.
  • Added mapper symbols, source-method overrides, writer inference, max-age, persistence, fallback, error mapping, core access, and disposal.
  • Added runnable Clean Architecture example with generated mapped cache flow.
  • Kept all 0.4.1 manual and adapter-mixin APIs compatible.

0.4.1 #

  • Expanded API documentation for policies, configuration, results, states, sources, observers, mapping adapters, and generated hooks.
  • Improved setup and code-generation guidance.
  • Kept all manual SmartRepository, MappedRepository, and family APIs unchanged.

0.4.0 #

  • Added optional generator annotations for single and keyed mapped repository delegates. Existing manual construction APIs remain unchanged.

0.3.0 #

  • Added MappedRepository<T, R, L> and keyed mapped repositories for clean DTO/local-model/domain-entity boundaries.
  • Added RepositoryResult.fold, match, and getOrThrow adapters.
  • Added explicit setLocal coordination for mutation results.

0.2.0 #

  • Added SmartRepositoryFamily<K, T> for isolated keyed repositories.
  • Added framework-neutral RepositoryObserver<T> lifecycle hooks.
  • Added keyed observer context and safe observer error isolation.
  • Added family removal, bulk invalidation, and lifecycle management.

0.1.0 #

  • Initial policy-driven repository release.
0
likes
160
points
476
downloads

Documentation

API reference

Publisher

verified publisherpinz.dev

Weekly Downloads

Policy-driven coordination for remote and local repository data.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on smart_repository