Skip to content

[Snyk] Security upgrade protobuf from 4.24.4 to 5.29.6 - #10

Open
noom-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-600abe7eed85e080f2e16be167531e4f
Open

noom-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-600abe7eed85e080f2e16be167531e4f

Conversation

@noom-snyk-bot

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • samples/model-builder/requirements.txt

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.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

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:

🦉 Uncontrolled Recursion

@noom-snyk-bot

Copy link
Copy Markdown
Author

Merge Risk: High

This is a major version upgrade from 4.x to 5.x that introduces several breaking changes, primarily focused on stricter type enforcement and the removal of deprecated APIs.

Key Breaking Changes:

  • Stricter Type Enforcement:
    • Assigning a boolean value to an integer or enum field will now raise an error.
    • Attempting to convert an object that is not a datetime to a Timestamp, or a non-timedelta to a Duration, will now raise a TypeError.
  • API Removals:
    • The deprecated FieldDescriptor.label() method has been removed.
    • In the text_format module, float_format and double_format have been removed.
    • In the json_format module, float_precision has been removed.

Recommendation:
Developers must review their code for usage of the removed APIs, especially in custom text or JSON serialization logic. Code that relies on implicit type conversions (e.g., bool to int) will need to be updated to be explicit.

Source: Protocol Buffers GitHub Releases

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

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