Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(deps): update dependency flask-cors to v6.0.1 #13420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2025

Conversation

renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
flask-cors ==5.0.0 -> ==6.0.1 age adoption passing confidence
flask-cors ==6.0.0 -> ==6.0.1 age adoption passing confidence

Release Notes

corydolphin/flask-cors (flask-cors)

v6.0.0

Compare Source

Breaking

Path specificity ordering has changed to improve specificity. This may break users who expected the previous incorrect ordering.

What's Changed

Full Changelog: corydolphin/flask-cors@5.0.1...6.0.0

v5.0.1

Compare Source

What's Changed

This primarily changes packaging to use uv and a new release pipeline, along with some small documentation improvements

New Contributors

Full Changelog: corydolphin/flask-cors@5.0.0...5.0.01


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners June 11, 2025 01:44
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jun 11, 2025
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: endpoints Issues related to the Cloud Endpoints API. labels Jun 11, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request is an automated dependency update managed by Renovate. Its primary purpose is to upgrade the flask-cors library to its latest patch version, 6.0.1. This brings in recent fixes and changes from the upstream library, including important security patches and behavioral changes introduced in v6.0.0.

Highlights

  • Dependency Update: I've updated the flask-cors dependency to version 6.0.1 in requirements.txt.
  • Version Specificity: The update applies to both Python 3.9+ (from 6.0.0) and Python 3.8 (from 5.0.0), consolidating both conditions to use 6.0.1.
  • Included Fixes: This update includes changes from v5.0.1 (packaging improvements) and v6.0.0 (breaking changes related to path specificity ordering, CVE fixes for path matching and unquoting, and case-sensitive path matching).
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configureGemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 11, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This PR updates flask-cors to v6.0.1, which includes security fixes and consolidates the dependency version across different Python environments. Be aware that flask-cors v6.0.0 (part of v6.0.1) introduced breaking changes related to path matching (specificity, case-sensitivity, URL unquoting). Review these and ensure they don't negatively impact the application, particularly for Python 3.8 users who are upgrading from v5.0.0. The requirements.txt can be simplified by merging the two flask-cors lines into one, as v6.0.1 supports Python 3.8+.

Comment on lines 2 to 3
flask-cors==6.0.1; python_version >= "3.9"
flask-cors==6.0.1; python_version == "3.8"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This update transitions flask-cors from v5.0.0 to v6.0.1 for Python 3.8 environments, and from v6.0.0 to v6.0.1 for Python 3.9+.

flask-cors v6.0.0 (incorporated into v6.0.1) introduced breaking changes:

  • Path specificity ordering was altered to enhance specificity.
  • Paths are now matched in a case-sensitive manner.
  • urllib.parse.unquote_plus was switched to urllib.parse.unquote.

Confirm that the application's behavior, particularly for the /auth/info/firebase endpoint and its clients, remains correct after this update. Give special attention to path casing and the handling of any + characters in URLs, if relevant to your client interactions or path configurations. Ensure that existing tests, such as test_cors, sufficiently cover the expected CORS behavior with the new version.

Comment on lines 2 to 3
flask-cors==6.0.1; python_version >= "3.9"
flask-cors==6.0.1; python_version == "3.8"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider simplifying the flask-cors dependency declaration. Since flask-cors version 6.0.1 requires Python >=3.8 according to PyPI, it's compatible with all Python versions targeted by these constraints (Python 3.8 and Python >= 3.9).

flask-cors==6.0.1

matches comment, prevents issues with EOL package updates
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 11, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 11, 2025
Copy link

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 11, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 11, 2025
@glasnt glasnt merged commit 901b7c3 into GoogleCloudPlatform:main Jun 11, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: endpoints Issues related to the Cloud Endpoints API. owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants