Skip to content

chore(deps-dev): bump tar from 7.5.22 to 8.0.0 - #2886

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tar-8.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tar-8.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps tar from 7.5.22 to 8.0.0.

Release notes

Sourced from tar's releases.

v8.0.0

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.

... (truncated)

Changelog

Sourced from tar's changelog.

Changelog

8.0

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.

... (truncated)

Commits
  • 64456aa 8.0.0
  • c289c0c add the delete and deleteSync commands
  • 7edf2ba rename zlibStream to codecStream
  • d84c285 pack: ask for exact dev and ino only where a wrong match loses data
  • b6cd5f0 docs: a recipe to remove an entry from an archive
  • 0e881d5 docs: how to make the same archive bytes from the same content
  • 6872741 warn for a path that does not exist, in create, extract, and list
  • 2add742 pack: use exact dev and ino values to identify a file
  • 2e6d8e4 unpack: skip an entry whose path is empty after strip
  • ca73829 pack: warn for a path that is not a file, a directory, or a link
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for tar since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.22 to 8.0.0.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v7.5.22...v8.0.0)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 8.0.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants