Truncating a file to empty now actually empties it instead of doing nothing.
What's wrong with this entry?
The append helper previously routed to the storage backend only when there was content to write, so a write in truncating mode with an empty payload did nothing. It now routes on mode as well, and the file is emptied as asked.
r === "w" || t.length > 0
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.223
Atomic file writes no longer copy through the temp file on the fallback path
Both mention file write
-
v2.1.242
Artifact
write_dbaccepts a batch of writes under one approvalBoth mention write
-
v2.1.239
File uploads report why they failed and stop retrying forever
Both mention file