feat: add channels entrypoint - #55
Draft
fratzinger wants to merge 1 commit into
Draft
fratzinger wants to merge 1 commit into
fratzinger wants to merge 1 commit into
Conversation
Add `feathers-utils/channels` with four helpers for composing `app.publish` publishers: - `toChannelLeaves` - normalize the four shapes a publisher may return into a flat list of leaf channels - `filterChannelLeaves` - narrow that list without destroying the payload a channel carries for its connections - `collapseChannels` - turn the list back into something Feathers dispatches correctly - `chainChannels` - compose several publishers into one They ship in their own entry point because they need `@feathersjs/transport-commons`, added as an optional peer dependency, which only an app with a realtime transport has installed. For that reason `channels` is deliberately absent from the root barrel. Also bumps the `@feathersjs/*` packages to ^5.0.50 and excludes `*.fixture.ts` from the published files. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Deploying feathers-utils with
|
| Latest commit: |
e052773
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://521286ab.feathers-utils.pages.dev |
| Branch Preview URL: | https://feat-channels.feathers-utils.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
feathers-utils/channelsentry point with four helpers for writing anapp.publishpublisher that composes with another one.What
toChannelLeavesfilterChannelLeavescollapseChannelschainChannelsWhy its own entry point
The helpers need
@feathersjs/transport-commons, which only an app with a realtime transport has installed. It is added as an optional peer dependency, andchannelsis deliberately absent from the root barrel so it cannot be pulled into a bundle that has no transport.Also in here
@feathersjs/*bumped to^5.0.50, plussocket.io-clientas a dev dependency for the socket test harness*.fixture.tsexcluded from the publishedfileschannelscategory, sidebar entries,<ChannelsTable />and adocs/channels/sectiontest/index.test.tsasserts the new export surfaceTest plan
pnpm test— lint + typecheck + coverage, 139 files / 1513 tests pass🤖 Generated with Claude Code