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

feat: use workers for streamListDiff #31

Merged
merged 1 commit into from
Nov 2, 2024
Merged

feat: use workers for streamListDiff #31

merged 1 commit into from
Nov 2, 2024

Conversation

DoneDeal0
Copy link
Owner

@DoneDeal0 DoneDeal0 commented Oct 28, 2024

FEATURE

  • Add a useWorker option to streamListDiff. If set to true, the diff will be run in a worker for maximum performance. Only recommended for large lists (e.g. +100,000 items). true by default.
const diff = streamListDiff(hugeListA, hugeListB, "id", { chunksSize: 100_000,  useWorker: true });

CHORE

  • Add a showWarnings option to streamListDiff
  • Allow enum and unions for LIST_STATUS
  • Clean models
  • Enums standardization
    • OBJECT_STATUS becomes ObjectStatus
    • LIST_STATUS becomes ListStatus
    • GRANULARITY becomes Granularity
  • Fix client and server import subpaths
  • Convert Jest config to Typescript
  • Update dev dependencies
  • Update README.md

@DoneDeal0 DoneDeal0 self-assigned this Oct 28, 2024
@DoneDeal0 DoneDeal0 added the enhancement New feature or request label Oct 28, 2024
@DoneDeal0 DoneDeal0 force-pushed the use-workers branch 2 times, most recently from 2a8cec2 to daf06fe Compare October 30, 2024 21:40
@DoneDeal0 DoneDeal0 changed the title [DRAFT] feat: use workers for streamListDiff feat: use workers for streamListDiff Oct 30, 2024
@DoneDeal0 DoneDeal0 marked this pull request as ready for review October 30, 2024 21:40
@DoneDeal0 DoneDeal0 force-pushed the use-workers branch 8 times, most recently from a917786 to 268dc6a Compare November 2, 2024 16:55
@DoneDeal0 DoneDeal0 merged commit 40094fc into master Nov 2, 2024
1 check passed
@DoneDeal0 DoneDeal0 deleted the use-workers branch November 2, 2024 17:05
Copy link

github-actions bot commented Nov 2, 2024

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant