Enhance file upload with resumable support and concurrency options#19
Merged
Enhance file upload with resumable support and concurrency options#19
Conversation
…hunks (#7) - Extend FileUploadOptions with resumeFrom (0-based chunk index) and concurrency (max parallel chunks, windowed Promise.all batching) - Extend UploadResponse with uploadedChunks and totalChunks for resume support - Clamp edge cases: chunkSize<=0 falls back to 5 MB default, concurrency<1 -> 1, resumeFrom<0 -> 0, resumeFrom>=totalChunks -> immediate success (zero fetches) - Progress baseline pre-initialised from skipped chunks so percentage is accurate across the entire file when resuming - All changes are non-breaking (all new fields optional, default concurrency=1 preserves original sequential behaviour) - 21 tests passing (9 existing + 12 new covering US1/US2/US3 + edge cases) - Add examples/resumable-upload.ts demonstrating all three user stories - Add specs/007-resumable-uploads/ planning artifacts (plan, research, data-model, contracts, quickstart, tasks)
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
Contributor
📦 Bundle Size ReportTotal dist size: 1.3M View detailed breakdown |
|
Contributor
📊 Code Coverage ReportCoverage: 88.13% ✅ Great coverage! |
Contributor
📊 Code Coverage ReportCoverage: % ❌ Low coverage - please add more tests |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



…hunks (#7)
Description
Related Issue
Fixes #(issue number)
Type of Change
Changes Made
Testing
Coverage
Screenshots
Checklist
Breaking Changes
Additional Notes