Skip to content

✨ Added onKey() and onValue() callbacks#4

Open
iMrDJAi wants to merge 12 commits into
joeltg:mainfrom
iMrDJAi:main
Open

✨ Added onKey() and onValue() callbacks#4
iMrDJAi wants to merge 12 commits into
joeltg:mainfrom
iMrDJAi:main

Conversation

@iMrDJAi
Copy link
Copy Markdown

@iMrDJAi iMrDJAi commented Mar 15, 2026

@joeltg This PR is mainly for adding onKey() and onValue() callbacks for key mapping and value validation/transformation. Please refer to README for more details.

In the process, I have fixed many bugs including backpressure in streams and tested against both Bun and Node (Although, I haven't really written tests, feel free to get @claude to generate them if you want).

I also had to revert #2, as I found a simpler solution that eliminates unnecessary allocations.

While I made sure to keep the API backwards compatible, I guess the new features and changes deserve having a new major release for this project.

I know it took me a while, but I ran across multiple bugs in both Bun and Node regarding fetch() streams that made me rethink the backpressure implementation from the ground up. And at the end, I delivered 🎉.

@iMrDJAi
Copy link
Copy Markdown
Author

iMrDJAi commented Apr 15, 2026

@joeltg Hi. Sorry for the ping. Could you please take a look and tell me what you think?

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