Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Async sequence, ES module support and operator updates #38

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

ACertainCoder
Copy link

This PR adds support for use of async functions via the dedicated AsyncSequence, updates the project to support ESM and use up-to-date dependencies and adds/updates/fixes some operators.

Added:

  • ESM support (in addition to CJS and UMD)
  • AsyncSequence (support for asynchronous operators via the AsyncIterator)
  • filterHolistically (filter all elements as a whole - similar to Array#filter; could be removed if Sequency should be limited to functions provided by the Sequences API of Kotlin)
  • onEachIndexed (new intermediate method of Sequences API)

Updated:

  • Project config (package manager specification for corepack, dependency updates, switch to ts-jest, ...)
  • More advanced/granular type declarations in many places
  • Detailed description for JoinConfig
  • filterNotNull uses != instead of !== to filter out null as well as undefined
  • Comparator and ComparatorFactory are now complete classes, which makes it better readable

Fixed:

  • compareByDescending (null values could cause an error)

@ACertainCoder
Copy link
Author

Closes #23

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.

None yet

1 participant