Skip to content

chore(deps): update dependency tar@>=7.0.0 <7.5.8 to v8 - #4409

Closed
renovate[bot] wants to merge 1 commit into
stagingfrom
renovate/tar-=7.0.0-7.5.8-8.x
Closed

renovate[bot] wants to merge 1 commit into
stagingfrom
renovate/tar-=7.0.0-7.5.8-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
tar@>=7.0.0 <7.5.8 7.5.24 → 8.0.1 age confidence

Release Notes

isaacs/node-tar (tar@>=7.0.0 <7.5.8)

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.

Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ 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.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate
renovate Bot deployed to preview November 29, 2026 05:14 Active
@KATO-Hiro KATO-Hiro closed this Nov 29, 2026
@renovate

renovate Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 8.x releases. But if you manually upgrade to 8.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate
renovate Bot deleted the renovate/tar-=7.0.0-7.5.8-8.x branch November 29, 2026 10:02

This branch was successfully deployed

1 active deployment
preview — 8c5ef167 Deployed Nov 29, 2026 by renovate[bot] via preview #9454
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant