Skip to content

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.

1 participant