Skip to content

Fix first yielding ignored if yielded value is identical to the previous #36

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

shtaif
Copy link
Owner

@shtaif shtaif commented Jan 7, 2025

Fix - on the first yield for some iterable that started iteration (in any of the libraries tools), if its value is identical to the last value picked up before that iterable started being iterated the consumer util would ignore it. - but it shouldn't, since although the value is identical to the last, we need to transition from pendingFirst: true to pendingFirst: false in this case since its the initial yield!

@shtaif shtaif self-assigned this Jan 7, 2025
@shtaif shtaif marked this pull request as ready for review January 7, 2025 22:41
@shtaif shtaif force-pushed the fix-first-yield-identical-to-prev-value branch from 4581170 to f4947c4 Compare January 7, 2025 22:43
@shtaif shtaif force-pushed the fix-first-yield-identical-to-prev-value branch from f4947c4 to b2903da Compare January 7, 2025 22:45
@shtaif shtaif merged commit 23ad98c into master Jan 7, 2025
6 checks passed
@shtaif shtaif deleted the fix-first-yield-identical-to-prev-value branch January 7, 2025 22:47
shtaif pushed a commit that referenced this pull request Jan 7, 2025
## [0.4.1](v0.4.0...v0.4.1) (2025-01-07)

### Bug Fixes

* first yielding wrongly ignored if yielded value is identical to the last one stored before ([#36](#36)) ([23ad98c](23ad98c))
Copy link

github-actions bot commented Jan 7, 2025

🎉 This PR is included in version 0.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant