v0.6.0
Overview
This is a breaking change for the Web API packTar function where the returned data property can now either be undefined or a Uint8Array.
This is needed since we need to be able to differentiate bodyless entries like directory which have no data, or empty files which instead needs to be represented as Uint8Array(0) 🪴
/**
* Represents an extracted entry with fully buffered content.
*
* For bodyless entries (directories, symlinks, hardlinks), `data` will be `undefined`.
* For files (including empty files), `data` will be a `Uint8Array`.
*/
export interface ParsedTarEntryWithData {
header: TarHeader;
- data: Uint8Array;
+ data?: Uint8Array;
}Full Changelog: v0.5.5...v0.6.0