NEARBuilders / NEARBuilders/everything-dev
orpc-v2: migrate proposals plugin to the new plugin API (publisher rename)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 6
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Ticket ID: B4d
Parent
#248 — orpc-v2: consolidate fork into everything-dev and migrate platform to oRPC v2 + Effect 4 (epic)
What to build
Stage B, step 4d: migrate the proposals plugin to the new createPlugin API, including its background publisher loops on the renamed @orpc/publisher: publish() is now async (loops must await), and resumeRetentionSeconds becomes resume: { enabled, seconds }. Restart-resume behavior of in-flight publications must be preserved.
Acceptance criteria
- Proposals plugin test suite green on the new API
- Publisher loops await publish correctly; resume-after-restart behavior verified
Blocked by
- #259 — createPlugin restructure
- #260 — migrate all six contracts to the v2 route builder
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the proposals plugin and its test suite after #259 and #260 are complete, then trace its background publisher loops and the new createPlugin API. Verify that publish() is awaited and that resume-after-restart behavior for in-flight publications is preserved. Done means the proposals plugin tests are green and restart-resume behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100