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.
Not sure if you guys accept public pull requests, but no one is able to file issues so I thought a pull request might help speed the process along. I'm thinking about migrating to customer.io so I'm doing some initial research on the library support.
Issue
The
flush()method does not exist as documented in the customer.io docs. Not sure if this is just on the backlog still or was missed, but it is currently documented so I would call this a bug in the documentation or the library.Solution
I did this fairly quickly so it may be naive, as there is some fairly complex queue/emitter stuff going on I don't 100% understand. Let me know what you think, and if this public PRs are helpful or just annoying.
Other thoughts
v14.21.3(in the mise.toml file, and I think some of the tests are failing locally on my local version - 22). You probably already know but v14 is marked as end of life (since 2023). What are the current supported versions - will this work for example with v21/22?