Skip to content

Update dependency tar to v8 - #1418

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/tar-8.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/tar-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
tar ^7.5.22 → ^8.0.3 age confidence

Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.


Release Notes

isaacs/node-tar (tar)

v8.0.3

Compare Source

  • ci: update the actions, and Node.js for the typedoc workflow (ad483b7)
  • typedoc uses node 26 (78032db)
  • docs: add benchmark numbers to the README (8cd8fe6)
  • ci: create a GitHub release when a tag is pushed (d2579de)
  • ci: mark the GitHub release of a prerelease tag as a prerelease (68686a3)
  • ci: retry the Pages deploy when the artifact is not listed yet (85cdfc9)
  • parser: read the same entries as other tar programs after a bad header (816f946)

v8.0.2

Compare Source

  • parser: ignore the size of a global PAX header (58df09f)
  • limit the memory that long paths use in an async extraction (de87900)

v8.0.1

Compare Source

  • unpack: check the parent directories again after an entry is made (5ef1702)

v8.0.0

Compare Source

A new API. See "Migration from version 7" in the README.

Breaking changes
  • Drop support for node <22
  • Remove callbacks and Node.js streams. Each command returns a promise. create() with no file returns a web ReadableStream. list() and extract() read the input option, or a file.
  • Remove the sync option. Use createSync, extractSync, listSync, replaceSync, and updateSync.
  • Rename onReadEntry to onEntry, which is awaited. onReadEntry and onentry are aliases of it.
  • The option aliases (C, f, z, P, U, k, m, p, L, h, strip-components, keep-newer, keep-existing, no-mtime, their camelCase forms, and noChmod) work in the commands only. entries(), Pack, Unpack, and Parser take only the names of the options.
  • Remove the options noResume, ondone, dirCache, linkCache, readdirCache, and statCache.
  • ReadEntry and WriteEntry are not streams. A ReadEntry has the shape of a Response: body, bytes(), arrayBuffer(), text(), and blob(). A WriteEntry is metadata and a body.
  • Parser, Pack, and Unpack are not streams. Parser is a state machine with push() and next(). Pack is an async iterator of chunks. Unpack has an extract(input) method.
  • Remove WriteEntrySync and WriteEntryTar.
  • Use Uint8Array, not Buffer. Header#block and the result of Pax#encode() are a Uint8Array.
  • transform returns a TransformStream, or an object with a readable and a writable web stream. In extractSync(), it returns a function that changes a chunk. For a Node.js Transform stream, return codecStream(stream).
  • In strict mode, extraction stops at the first error.
  • The first null block is the end of the archive, as it is for bsdtar. Data after it is dropped with no warning, also when no second null block comes after it. Version 7 read the entries after a single null block, so it read archives that were joined end to end. Split such a file into its archives before you read it.
  • update() adds a file only if it is newer than the entry of the same path. It does not add a file that has the same time as the entry, or a time that differs only by a part of a second.
  • A jobs or maxReadSize option that is not 0, a positive integer, or Infinity is a TypeError. 0 gives the default.
  • A uid or gid option of extract() that is not an unsigned 32-bit integer is a TypeError. Before, it was ignored, and the owner in the archive was used.
  • create() gives a TAR_ENTRY_UNSUPPORTED warning for a path that is not a file, a directory, or a symbolic link, such as a socket, a FIFO, or a device. Before, it skipped the path with no warning. With strict, it is an error.
  • extract() with strip skips an entry that has no part of its path left, as GNU tar and bsdtar do. Before, a directory entry such as package/ with strip: 1 set its mode, owner, and times on the extraction directory.
  • In create(), replace(), and update(), a path that does not exist is a TAR_ENTRY_ERROR warning, as it is for bsdtar. The other paths are added. Before, it was an error that stopped the command. Set strict to get the error.
  • extract() and list() give a TAR_ENTRY_ERROR warning for each path in files that no entry of the archive matches. With strict, it is an error after the archive is read.
  • The readers detect the compression format. The brotli and zstd options are only for create().
  • Remove the subpath exports (tar/create, tar/extract, tar/parse, and the others). The exports are tar, tar/core, tar/raw, and tar/core/raw.
  • Remove all runtime dependencies: minipass, minizlib, @isaacs/fs-minipass, chownr, and yallist.
New features
  • delete() and deleteSync() remove entries from an archive file: the paths in a list, the entries that a filter accepts, or both. The archive keeps its compression.
  • Add the tar/core entry point, the runtime-neutral core. It runs in a browser, a worker, or another runtime with web streams. It uses no node: module, and it needs the fs and cwd options for work on files. It has no sync commands.
  • tar is the entry point for server-side runtimes: Node.js, and each other runtime that has the node: modules. It has all of the core, the sync commands, and the defaults (node:fs, node:zlib, the working directory, the platform, and the user of the process).
  • tar/raw and tar/core/raw are the same two entry points as separate modules that are not minified.
  • Add the fs option. All file system work goes through it, so a caller can give another file system.
  • Add the input option, and entries() and entriesSync(), which read a Uint8Array, an ArrayBuffer, a Blob, a ReadableStream, or an iterable of chunks.
  • Add entries from memory to an archive: the file list of create(), replace(), and update() takes WriteEntry objects, ReadEntry objects, and iterables of entries.
  • Add the Codec type and the codecs option, to add a compression format. tar has gzip, brotli, and zstd from node:zlib. tar/core has gzip.
  • create() writes the names of a directory in sorted order, so the archive is the same on each runtime and file system.
  • list() and extract() with a file do not read the body of an entry that nothing reads. A listing of an archive of large files reads only the headers.
  • Add the compress option of create(). It takes a Codec, or [codec, options], and writes the archive with that codec.
  • The options platform, processUid, processGid, processUname, and processUmask give the facts of the process to tar/core.
  • In tar/core, the cwd of create() and of extract() must be an absolute path. A path that is not absolute is a TypeError. The tar entry point makes a relative cwd absolute first.
  • Nothing is read before the consumer asks for it: the readers read input, and create() reads files, only on demand.
  • The async extraction writes up to 16 entries at one time (the jobs option).
  • replace() and update() read PAX and GNU long name headers when they find the place to append, and refuse an archive in any known compressed format.
  • Export CwdError and SymlinkError.
  • create() reads the dev and ino of a file with more than one link as bigint values when the numbers are not safe integers. On Windows, two files can have the same ino number. Before, the second file was then written as a hard link to the first, and its content was lost. With follow, a directory gets the same exact values for the check that it is not in itself.
  • The error of create() for a file that has fewer or more bytes than its lstat size names the path and the size in its message.
  • extract() works with a cwd that is a root of the file system, such as / or c:\.
Security fixes
Bug fixes
  • On Windows, extract() with preservePaths sets the owner of each directory that it makes, not only of the last one.
  • update() checks the paths in a directory also when the time of the directory did not change. A directory is always added again.
  • A path in the files of list() and extract() matches an entry at each depth in that directory, not only 100 levels.
  • create() does not write a file that has more than one link as a hard link to itself when its path is added two times.
  • extract() keeps an existing directory for a GNUDumpDir entry, as it does for a Directory entry.
  • With two GNU long name headers before one entry, the readers use the last one, as GNU tar does.

v7.5.24

Compare Source

v7.5.23

Compare Source


Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot enabled auto-merge (squash) November 28, 2026 06:50
@github-actions

Copy link
Copy Markdown

@renovate
renovate Bot force-pushed the renovate/tar-8.x branch from 7128135 to 8ea6cb8 Compare November 30, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants