Skip to content

packages: add types-only skeleton for the PDR-091 device/server split#2268

Draft
ttypic wants to merge 1 commit into
mainfrom
split
Draft

packages: add types-only skeleton for the PDR-091 device/server split#2268
ttypic wants to merge 1 commit into
mainfrom
split

Conversation

@ttypic

@ttypic ttypic commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Introduce the public type surface and package.json declarations for the
new per-side Pub/Sub packages, so the shape can be reviewed before any
implementation or build wiring lands:

  • @ably/pubsub-common (internal, never published): self-contained copies
    of the cross-side types, with client options decomposed into
    CommonClientOptions/HttpOptions/RealtimeOptions and no value
    declarations
  • @ably/pubsub-device: createClient() returning a realtime client with
    required clientId and device push (activate/deactivate), without push
    admin or stats
  • @ably/pubsub-server: createHttpClient() and createRealtimeClient(),
    with push admin, stats and token revocation, without device push
  • @ably/pubsub-react: the React hooks surface typed against DeviceClient
  • @ably/pubsub-react-native: device client with app-supplied push
    storage/token acquisition; no exports map so
    older Metro resolvers can resolve it

Introduce the public type surface and package.json declarations for the
new per-side Pub/Sub packages, so the shape can be reviewed before any
implementation or build wiring lands:

- @ably/pubsub-common (internal, never published): self-contained copies
  of the cross-side types, with client options decomposed into
  CommonClientOptions/HttpOptions/RealtimeOptions and no value
  declarations
- @ably/pubsub-device: createClient() returning a realtime client with
  required clientId and device push (activate/deactivate), without push
  admin or stats
- @ably/pubsub-server: createHttpClient() and createRealtimeClient(),
  with push admin, stats and token revocation, without device push
- @ably/pubsub-react: the React hooks surface typed against DeviceClient
- @ably/pubsub-react-native: device client with app-supplied push
  storage/token acquisition and push.updateToken(); no exports map so
  older Metro resolvers can resolve it

Factories are declared against interfaces only ("doors, not rooms");
the deprecated v1 surface (callback overloads, device(),
environment/restHost/realtimeHost options) is dropped. The root
package.json gains npm workspaces and a check:packages script that
type-checks all five packages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ttypic, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 34 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a8aa76bd-440f-46d3-8f37-331adfb06c2c

📥 Commits

Reviewing files that changed from the base of the PR and between 95d0b8a and 54904f8.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (15)
  • package.json
  • packages/pubsub-common/channels.d.ts
  • packages/pubsub-common/core.d.ts
  • packages/pubsub-common/index.d.ts
  • packages/pubsub-common/messages.d.ts
  • packages/pubsub-common/package.json
  • packages/pubsub-device/index.d.ts
  • packages/pubsub-device/package.json
  • packages/pubsub-react-native/index.d.ts
  • packages/pubsub-react-native/package.json
  • packages/pubsub-react/index.d.ts
  • packages/pubsub-react/package.json
  • packages/pubsub-server/admin.d.ts
  • packages/pubsub-server/index.d.ts
  • packages/pubsub-server/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch split

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant