You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upgrade from Puppeteer v24 to v25 is a major version with significant breaking changes that require developer action.
Key Breaking Changes:
ESM Only: Puppeteer and its related packages are now ESM-only. This means you must update your import statements from const puppeteer = require('puppeteer') to import puppeteer from 'puppeteer'. Your project may need to be configured to handle ESM modules (e.g., by setting "type": "module" in your package.json).
Node.js Version: The minimum required Node.js version has been increased to v20.19+. Projects running on older Node.js versions will fail.
API Removals & Changes:
Several deprecated methods have been removed, including Puppeteer.product, MouseOptions.clickCount, and Browser.isConnected().
executablePath() and defaultArgs() now return a Promise and must be awaited.
Header handling has changed: newline-separated headers are now normalized to a comma-separated format.
Recommendation:
This upgrade requires significant code and environment changes. Before merging, you must:
Update your import syntax to ESM (import).
Ensure your environment is running Node.js v20.19 or newer.
Review your codebase for usage of the removed APIs (.product, .clickCount, .isConnected()) and update calls to executablePath() and defaultArgs() to use await.
Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-EXTRACTZIP-17660777
Breaking Change Risk
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Directory Traversal