Skip to content

🦋 New version release - #85

Merged
brentrager merged 1 commit into
mainfrom
changeset-release/main
Aug 20, 2026
Merged

brentrager merged 1 commit into
mainfrom
changeset-release/main

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

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.19

Patch Changes

  • edc71da: Add the zero-byte case to the lazy-streaming contract, and give Go a way to say "size not measured".

    spec/lazy-stream-contract.json pinned 1 KiB, 64 KiB and 1 MiB sources but not the 0-byte boundary, where "shorter than the detection head" degenerates. Empty S3 objects and zero-length uploads are real — this repo already ships empty.txt as a fixture.

    Adding it immediately failed the Go loader, for a real reason: Size() int64 cannot express "unknown". Go has no optional integer, so Size() == 0 was doing double duty for an empty file and for a lazy stream whose tail nobody had counted — the other four ports say the latter with nil / None / undefined. New (*File).SizeKnown() bool separates them. Additive and non-breaking: the field's zero value means "known", so every eager constructor stays correct untouched.

@brentrager
brentrager merged commit 7f7078b into main Aug 20, 2026
1 check passed
@brentrager
brentrager deleted the changeset-release/main branch August 20, 2026 19:27
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