Skip to content

[Snyk] Fix for 1 vulnerabilities - #3013

Open
simlarsen wants to merge 1 commit into
masterfrom
snyk-fix-ee6b551bc6191aea8dd7d608604cae44
Open

[Snyk] Fix for 1 vulnerabilities#3013
simlarsen wants to merge 1 commit into
masterfrom
snyk-fix-ee6b551bc6191aea8dd7d608604cae44

Conversation

@simlarsen

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • Common/package.json
  • Common/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-BRACEEXPANSION-18512280

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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

@simlarsen

Copy link
Copy Markdown
Contributor Author

Merge Risk: High

This update includes major version upgrades for typeorm and archiver, both of which introduce significant breaking changes.

Top 2 Most Impactful Upgrades

1. typeorm@0.3.30 → typeorm@1.0.0

This is a high-risk major upgrade that modernizes the library but requires significant developer action. It is the first major version release since the project began in 2016.

Key Breaking Changes:

  • Node.js Requirement: Support for Node.js versions below 20 has been dropped. The library now targets ES2023.
  • API Renaming: The Connection class has been renamed to DataSource. The connection property in various classes is now dataSource.
  • Removed APIs: Many long-deprecated APIs and global convenience functions (e.g., getConnection) have been removed entirely.
  • Configuration: Support for configuration via environment variables has been removed.
  • Driver Support: The mysql driver is no longer supported; projects must use mysql2.

Recommendation:
An official codemod package, @typeorm/codemod, is available to automate most of the required code changes. It is highly recommended to run this tool and consult the official upgrading guide.

npx @typeorm/codemod v1 src/

Source: Release Notes, Upgrading Guide

2. archiver@7.0.1 → archiver@8.0.0

This is a high-risk major version upgrade with breaking changes related to platform support and module imports.

Key Breaking Changes:

  • Node.js Requirement: Node.js v18 or higher is now required for ESM usage.
  • ESM Import Changes: The way the module is imported and instantiated has changed significantly. This was not explicitly detailed in the release notes but is a critical breaking change for projects using ES modules.

Example Migration:

  • Before (CJS): const archive = require('archiver')('zip', ...);
  • After (ESM): import { ZipArchive } from '@archiver/archiver'; const archive = new ZipArchive(...);

Recommendation:
Review all import and instantiation calls to archiver to align with the new class-based structure, especially in ESM projects.

Source: Release Notes

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@simlarsen

Copy link
Copy Markdown
Contributor Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

2 participants