Skip to content

fix(stream-transform): honor falsy params in the sync API - #528

Merged
wdavidw merged 2 commits into
adaltas:masterfrom
xiehuanyi:fix/sync-falsy-params-round3
Oct 11, 2026
Merged

wdavidw merged 2 commits into
adaltas:masterfrom
xiehuanyi:fix/sync-falsy-params-round3

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

The synchronous API rejects a two-argument handler when params is 0, false, or an empty string, even though those values are valid parameters in the streaming API. Match the streaming null/undefined check when validating handler arity.

Regression tests cover all three values and confirm that null/undefined still reject callback handlers. Rebuilt the distributed bundles.

Validation: npm test --workspace stream-transform (86 passing), npm run lint:check --workspace stream-transform, and npm run build --workspace stream-transform.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 18:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread packages/stream-transform/test/api.sync.js Outdated
@wdavidw
wdavidw merged commit 605108b into adaltas:master Oct 11, 2026
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.

3 participants