Skip to content

chore(deps-dev): bump tar from 7.5.23 to 8.0.2 - #867

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps tar from 7.5.23 to 8.0.2.

Release notes

Sourced from tar's releases.

v8.0.2

  • 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

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

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.

... (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
  • 2f0e25e 8.0.2
  • de87900 limit the memory that long paths use in an async extraction
  • 58df09f parser: ignore the size of a global PAX header
  • fd974b5 8.0.1
  • 5ef1702 unpack: check the parent directories again after an entry is made
  • 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
  • Additional commits viewable in compare view

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.23 to 8.0.2.
- [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.23...v8.0.2)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 8.0.2
  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 2, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T04:16:55.539625Z 9de479d PR opened
🔒 Security Review ✅ Completed 2026-12-02T05:04:58.405540Z 9de479d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9de479ddb0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread package.json
"@types/node": "^26.1.2",
"acorn": "8.19.0",
"tar": "7.5.23",
"tar": "8.0.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Migrate tar consumers before taking the v8 major

This upgrade is incompatible with the repository's existing tar usage: tar v8 removes Node.js stream APIs and changes Parser into a state machine, while ReadEntry objects no longer expose .on()/.resume(). The existing ONNX notice collector calls parser.on(), parser.end(), parser.abort(), and stream methods on entries (scripts/gstack/collect-onnx-dev-notice-sources.mjs:64-88), and the distribution/SDK archive verifiers also call entry.on() (scripts/release/distribution-archive.mjs:17-28, scripts/framework-assurance/sdk-consumer.mjs:125-145). Those CI and release paths will throw at runtime after installing tar 8; either migrate all consumers to the v8 API or retain tar 7 until that work is complete.

Useful? React with 👍 / 👎.

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