Skip to content
Open
Prev Previous commit
Next Next commit
docs(bb-file-bucket): drop the listVersions claim already covered by …
…another changeset
  • Loading branch information
xyos committed Nov 9, 2026
commit 9b6620130217bce881533d49bc57bbd16ed44620
2 changes: 1 addition & 1 deletion .changeset/bb-file-bucket-mock-phantom-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@aws-blocks/bb-file-bucket': patch
---

The local `FileBucket` mock now treats a key that is only a prefix of other keys as missing, matching AWS. With only `docs/readme.txt` written, `get('docs')` and `get('docs', { versionId: 'readme.txt' })` return `null` instead of throwing `EISDIR`, `listVersions('docs')` returns `[]`, and `restoreVersion('docs', ...)` throws `VersionNotFound`.
The local `FileBucket` mock now treats a key that is only a prefix of other keys as missing, matching AWS. With only `docs/readme.txt` written, `get('docs')` and `get('docs', { versionId: 'readme.txt' })` return `null` instead of throwing `EISDIR`, and `restoreVersion('docs', ...)` throws `VersionNotFound`.
Loading