You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which meant code like this (pseudo) was perfectly valid:
constfile=awaitenv.MY_BUCKET.get('file.txt');letchecksum: ArrayBuffer|null=null;if(file?.checksums?.md5){checksum=file.checksums.md5.slice(0,8);// not really how this would work, but illustrates the change}
Previously (
[email protected]
), R2 checksums were defined like this:which meant code like this (pseudo) was perfectly valid:
Now (
[email protected]
), it's defined like this:which implies you have to do
.buffer
on each of the checksums to access it, like:but this then throws a TypeError:
TypeError: Cannot read properties of undefined (reading 'slice')
I suspect this was caused by #2201. cc @jasnell
The text was updated successfully, but these errors were encountered: