NEARBuilders / NEARBuilders/everything-dev

orpc-v2: migrate proposals plugin to the new plugin API (publisher rename)

Open
#264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ready-for-agent
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.