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
This update involves two major version upgrades with significant breaking changes. The tap upgrade is particularly extensive and will require careful migration.
tap 11.1.5 → 18.0.0 (High Risk)
This is a very large version jump for the tap testing framework, introducing numerous breaking changes across versions 12 through 18. Key changes include a complete rewrite in TypeScript, a new plugin-based architecture, and fundamental shifts in configuration and behavior.
Key Breaking Changes:
Node.js Support: Support for Node.js versions below 14 has been dropped.
Configuration: The configuration system has been overhauled. test-regexp is replaced by include/exclude globs, and many CLI flags related to coverage and execution have been removed or changed.
Coverage: Coverage is now enabled and checked by default, with 100% coverage being the default minimum. Missing coverage is treated as a test failure. The nyc dependency has been replaced with c8.
API & Behavior:
Many assertion aliases have been removed and moved to an optional @tapjs/synonyms plugin.
beforeEach/afterEach no longer accept a callback and must return a promise for async operations.
The entire system was rewritten in TypeScript for v18, improving ESM and CJS support but changing the internal architecture to be plugin-based.
Recommendation:
Due to the extensive nature of these changes, a dedicated effort will be required to migrate tests. Start by reviewing the official upgrade guide, updating your configuration files (.taprc), and addressing deprecated APIs. Expect to refactor test setup, especially around coverage and async hooks.
body-parser 1.9.0 → 1.20.6 (Medium Risk)
While this is also a major version jump, the breaking changes for body-parser are well-documented and primarily relate to changes that happened many years ago. Modern Express.js applications may not even need this package directly.
Key Breaking Changes:
Express Integration: Since Express 4.16.0+, the functionality of body-parser is built-in via express.json() and express.urlencoded(). Direct use of the body-parser package is often no longer necessary.
API Splitting: The generic bodyParser() middleware was deprecated and removed. You must now use specific middleware for the content type, such as bodyParser.json() or bodyParser.urlencoded().
urlencodedextended Option: The extended option for urlencoded must be explicitly set to true or false, as it no longer has a default value.
Recommendation:
Review your application's Express version. If it is 4.16.0 or newer, consider removing the body-parser dependency entirely and replacing its usage with the built-in express.json() and express.urlencoded({ extended: true }) middleware. If you must keep it, ensure you are calling the specific parser functions and have explicitly set the extended option.
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 2 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonpackage-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-JSYAML-17900054
SNYK-JS-BODYPARSER-17906397
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:
🦉 Allocation of Resources Without Limits or Throttling