Skip to content

[Snyk] Security upgrade starlette from 0.27.0 to 1.0.1#8

Open
noom-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-2d98e89ca6852d80cc08f09869d25b52
Open

[Snyk] Security upgrade starlette from 0.27.0 to 1.0.1#8
noom-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-2d98e89ca6852d80cc08f09869d25b52

Conversation

@noom-snyk-bot

Copy link
Copy Markdown

snyk-top-banner

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

Snyk changed the following file(s):

  • requirements.txt
⚠️ Warning
fastapi 0.103.2 requires starlette, which is not installed.
databricks-sql-connector 2.9.6 requires pyarrow, which is not installed.

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-STARLETTE-16881242
@noom-snyk-bot

Copy link
Copy Markdown
Author

Merge Risk: High

This is a major version upgrade from 0.x to 1.x, which introduces significant breaking changes by removing features and functions that have been deprecated over several years.

Key Breaking Changes:

  • Python Support: Support for Python 3.7 has been dropped. The release notes for the next version (1.0.0) indicate a requirement for Python 3.9+.
  • Lifespan API: The on_startup and on_shutdown parameters, along with the on_event() decorator and add_event_handler() method, have been removed. You must migrate to using the lifespan context manager.
  • Routing: The @app.route() and @app.websocket_route() decorators have been removed. Routes must now be declared within the routes parameter.
  • GraphQL: Built-in GraphQL support (GraphQLApp) has been removed and must be replaced with third-party libraries.
  • File Uploads: The file attribute on UploadFile is now a required argument, which may impact file handling logic.

Recommendation:

Due to the removal of long-deprecated APIs and changes to core functionalities like application lifecycle events and routing, a thorough review and testing of your application is required. Developers must refactor code to use the new lifespan API and declarative routing. Given the number of breaking changes, this upgrade should be handled with care.

Source: Starlette 1.0 Release Notes

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