Skip to content

feat(nodejs-lib): harden pipeline mapper typings#146

Merged
frodi-karlsson merged 3 commits into
mainfrom
harden-pipeline-mapper-typings
Jun 4, 2026
Merged

feat(nodejs-lib): harden pipeline mapper typings#146
frodi-karlsson merged 3 commits into
mainfrom
harden-pipeline-mapper-typings

Conversation

@frodi-karlsson

@frodi-karlsson frodi-karlsson commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

In practice we use END on forEach internally, I think the type should reflect it. Similarly, tap should do no transformation, so I think void is appropriate, and having void still allows stuff like () => rows++ in db-lib

@kirillgroshkov kirillgroshkov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with a suggestion

Comment thread packages/nodejs-lib/src/stream/pipeline.ts Outdated
frodi-karlsson and others added 2 commits June 4, 2026 19:30
Co-authored-by: Kirill Groshkov <kirill.groshkov@naturalcycles.com>
@frodi-karlsson frodi-karlsson merged commit da3b361 into main Jun 4, 2026
3 checks passed
@frodi-karlsson frodi-karlsson deleted the harden-pipeline-mapper-typings branch June 4, 2026 17:49
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

🎉 This PR is included in version @naturalcycles/nodejs-lib-v15.112.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants