Skip to content

refactor(publisher,bun,cloudflare)!: rename replay option to resume#1711

Merged
dinwwwh merged 1 commit into
middleapi:mainfrom
dinwwwh:claude/publisher-reply-resume-rename-0e1f51
Jul 23, 2026
Merged

refactor(publisher,bun,cloudflare)!: rename replay option to resume#1711
dinwwwh merged 1 commit into
middleapi:mainfrom
dinwwwh:claude/publisher-reply-resume-rename-0e1f51

Conversation

@dinwwwh

@dinwwwh dinwwwh commented Jul 22, 2026

Copy link
Copy Markdown
Member

Renames the event replay feature to resume across all publisher adapters. The feature lets subscribers continue from lastEventId after a disconnect — resume matches that purpose (and the v1 naming), while replay suggested full event-history replay.

const publisher = new MemoryPublisher<Events>({
  resume: { // [!code ++]
  replay: { // [!code --]
    enabled: true,
    seconds: 300,
  },
})
  • replay option → resume in MemoryPublisher, RedisPublisher, UpstashPublisher, BunRedisPublisher, and DurablePublisherObject
  • DurablePublisherObjectReplayOptions type → DurablePublisherObjectResumeOptions
  • Docs, playgrounds, and internal names updated to match

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
orpc Ready Ready Preview, Comment Jul 22, 2026 12:06pm

@pkg-pr-new

pkg-pr-new Bot commented Jul 22, 2026

Copy link
Copy Markdown
More templates

@orpc/ai-sdk

npm i https://pkg.pr.new/middleapi/orpc/@orpc/ai-sdk@1711

@orpc/arktype

npm i https://pkg.pr.new/middleapi/orpc/@orpc/arktype@1711

@orpc/bun

npm i https://pkg.pr.new/middleapi/orpc/@orpc/bun@1711

@orpc/client

npm i https://pkg.pr.new/middleapi/orpc/@orpc/client@1711

@orpc/cloudflare

npm i https://pkg.pr.new/middleapi/orpc/@orpc/cloudflare@1711

@orpc/contract

npm i https://pkg.pr.new/middleapi/orpc/@orpc/contract@1711

@orpc/experimental-effect

npm i https://pkg.pr.new/middleapi/orpc/@orpc/experimental-effect@1711

@orpc/evlog

npm i https://pkg.pr.new/middleapi/orpc/@orpc/evlog@1711

@orpc/json-schema

npm i https://pkg.pr.new/middleapi/orpc/@orpc/json-schema@1711

@orpc/nest

npm i https://pkg.pr.new/middleapi/orpc/@orpc/nest@1711

@orpc/next

npm i https://pkg.pr.new/middleapi/orpc/@orpc/next@1711

@orpc/openapi

npm i https://pkg.pr.new/middleapi/orpc/@orpc/openapi@1711

@orpc/opentelemetry

npm i https://pkg.pr.new/middleapi/orpc/@orpc/opentelemetry@1711

@orpc/pinia-colada

npm i https://pkg.pr.new/middleapi/orpc/@orpc/pinia-colada@1711

@orpc/pino

npm i https://pkg.pr.new/middleapi/orpc/@orpc/pino@1711

@orpc/publisher

npm i https://pkg.pr.new/middleapi/orpc/@orpc/publisher@1711

@orpc/ratelimit

npm i https://pkg.pr.new/middleapi/orpc/@orpc/ratelimit@1711

@orpc/server

npm i https://pkg.pr.new/middleapi/orpc/@orpc/server@1711

@orpc/shared

npm i https://pkg.pr.new/middleapi/orpc/@orpc/shared@1711

@orpc/tanstack-query

npm i https://pkg.pr.new/middleapi/orpc/@orpc/tanstack-query@1711

@orpc/trpc

npm i https://pkg.pr.new/middleapi/orpc/@orpc/trpc@1711

@orpc/valibot

npm i https://pkg.pr.new/middleapi/orpc/@orpc/valibot@1711

@orpc/zod

npm i https://pkg.pr.new/middleapi/orpc/@orpc/zod@1711

commit: ec1e0d6

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — This mechanical breaking change renames the event-resumption replay option to resume across all publisher adapters (MemoryPublisher, RedisPublisher, UpstashPublisher, BunRedisPublisher) and the Cloudflare DurablePublisherObject, plus their tests, docs, and playgrounds.

  • Renamed public option — Every adapter now accepts resume: { enabled, seconds } instead of replay.
  • Renamed Cloudflare types and storage classDurablePublisherObjectReplayOptions is now DurablePublisherObjectResumeOptions; the internal storage class is now named ResumeStorage.
  • Updated test fixtures and bindings — Cloudflare worker test durable-object names and wrangler bindings moved from PublisherReplay3sDO/PUBLISHER_REPLAY3S_DON to PublisherResume3sDO/PUBLISHER_RESUME3S_DON.
  • Docs and playgrounds updated — All VitePress publisher examples and every playground context file use the new resume option.

Pullfrog  | View workflow run | Using Kimi K2 (free via Pullfrog for OSS) | 𝕏

@codspeed-hq

codspeed-hq Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 18 untouched benchmarks


Comparing dinwwwh:claude/publisher-reply-resume-rename-0e1f51 (ec1e0d6) with main (428ad93)

Open in CodSpeed

@dinwwwh
dinwwwh merged commit be82b92 into middleapi:main Jul 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant