🦋 New version release#56
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/file@2.2.10
Patch Changes
7ab63cc: SMOODEV-967: Lazy streaming support in Rust, Go, and .NET.
The Python port shipped lazy streaming in SMOODEV-952; this change brings the same semantics to the other three ports. Constructing a file from a large stream no longer requires buffering the whole payload in memory.
File::from_stream_lazy(reader, hint)that takes anyAsyncRead + Send + Unpin + 'staticand pulls only the first 64 KB (LAZY_HEAD_BYTES) for magic-byte detection. The tail stays in the reader and is consumed byread(),iter_bytes(), orupload_to_s3(). Uploads spool through a temp file so the AWS SDK gets a seekable body without RAM-buffering the payload.NewFromStreamLazy(reader, hints...)and a publicIterBytes(ctx) (<-chan []byte, <-chan error)method.UploadToS3WithContextstreams lazy files through a temp-file spool.CreateFromStreamAsync(stream, ..., lazy: true)(and aCreateFromStreamLazyAsyncshorthand). NewOpenReadStream()returns aHeadAndTailStreamview that yields the detection head followed by the lazy tail.S3SmooFile.UploadToS3AsyncusesTransferUtility(multipart streaming) for lazy files.100 MB streaming tests in all three languages assert RSS/heap delta stays under 50 MB.