## Summary
- Replace auto-running `service` constructors with explicit `make(...).pipe(thenRun)` lifecycle pipelines.
- Add scoped, schedule-driven Query refreshes with `Query.withScheduledRefresh`.
- Upgrade the Effect v4 stack to beta 102.
- Add `@effect-view/vite-plugin` to the publish workflow.
- Update examples and documentation for the new APIs.
## Breaking changes
The following constructors have been replaced:
- `Query.service(options)` → `Query.make(options).pipe(Query.thenRun)`
- `QueryClient.service(options)` → `QueryClient.make(options).pipe(QueryClient.thenRun)`
- `MutationForm.service(options)` → `MutationForm.make(options).pipe(MutationForm.thenRun)`
- `LensForm.service(options)` → `LensForm.make(options).pipe(LensForm.thenRun)`
This separates object construction from starting its scoped background behavior.
## Scheduled Query refreshes
Queries can now be refreshed with any Effect `Schedule`:
```ts
const query = yield* Query.make(options).pipe(
Query.thenRun,
Query.withScheduledRefresh(Schedule.spaced("5 minutes")),
)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
serviceconstructors with explicitmake(...).pipe(thenRun)lifecycle pipelines.Query.withScheduledRefresh.@effect-view/vite-pluginto the publish workflow.Breaking changes
The following constructors have been replaced:
Query.service(options)→Query.make(options).pipe(Query.thenRun)QueryClient.service(options)→QueryClient.make(options).pipe(QueryClient.thenRun)MutationForm.service(options)→MutationForm.make(options).pipe(MutationForm.thenRun)LensForm.service(options)→LensForm.make(options).pipe(LensForm.thenRun)This separates object construction from starting its scoped background behavior.
Scheduled Query refreshes
Queries can now be refreshed with any Effect
Schedule: