-
Notifications
You must be signed in to change notification settings - Fork 0
Implement an Async Chain, to enable async chain operations #39
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
base: main
Are you sure you want to change the base?
Conversation
JS / TS didnt like the Abstract Class loop we had with the chaining setup."TypeError: Class extends value undefined is not a constructor or null "
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds async chain functionality to the collections module, introducing an AsyncChain class that provides asynchronous operations for collection processing. The PR also removes the previously existing mapValues method from the global object prototype extensions and exports the new async chain functionality.
- Introduces comprehensive async collection processing with
AsyncChainclass - Adds async variants of all existing chain operations (map, filter, reduce, etc.)
- Integrates async chains with the existing synchronous chain API
Reviewed Changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/objects.ts | Removes mapValues method from global object prototype extensions |
| src/index.ts | Exports the new AsyncChain functionality |
| src/collections/AsyncChain.ts | Implements the complete async chain functionality with all collection operations |
| src/collections/AsyncChain.test.ts.md | Test snapshots for async chain functionality |
| src/collections/AsyncChain.test.ts | Comprehensive test suite for async chain operations |
| src/collections.ts | Integrates async chains with existing synchronous chains and updates type exports |
| src/collections.test.ts | Additional tests for async chain integration |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
📦 Published PR as canary version:
3.0.0--canary.39.17122777697.0✨ Test out this PR locally via:
npm install @opencreek/ext@3.0.0--canary.39.17122777697.0 # or yarn add @opencreek/ext@3.0.0--canary.39.17122777697.0