Skip to content
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

chore(deps): update all non-major dependencies #1064

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Type Update
@vue/tsconfig ^0.1.3 -> ^0.5.0 age adoption passing confidence devDependencies minor
SQLAlchemy (changelog) ==2.0.22 -> ==2.0.25 age adoption passing confidence patch
SQLAlchemy (changelog) ==2.0.23 -> ==2.0.25 age adoption passing confidence patch
authlib ==1.2.1 -> ==1.3.0 age adoption passing confidence minor
black (changelog) ==22.10.0 -> ==22.12.0 age adoption passing confidence minor
cryptography (changelog) ==41.0.6 -> ==41.0.7 age adoption passing confidence patch
email-validator ==2.0.0.post2 -> ==2.1.0.post1 age adoption passing confidence minor
fastapi ==0.100.0 -> ==0.108.0 age adoption passing confidence minor
fastapi ==0.104.1 -> ==0.108.0 age adoption passing confidence minor
flake8 (changelog) ==6.0.0 -> ==6.1.0 age adoption passing confidence minor
httpx (changelog) ==0.24.1 -> ==0.26.0 age adoption passing confidence minor
mypy (source, changelog) ==1.5.1 -> ==1.8.0 age adoption passing confidence minor
primevue (source) 3.34.0 -> 3.45.0 age adoption passing confidence dependencies minor
psycopg2-binary (source, changelog) ==2.9.7 -> ==2.9.9 age adoption passing confidence patch
pycryptodome (source, changelog) ==3.16.0 -> ==3.19.1 age adoption passing confidence minor
pydantic (changelog) ==2.4.2 -> ==2.5.3 age adoption passing confidence minor
pydantic-core ==2.10.1 -> ==2.14.6 age adoption passing confidence minor
pydantic_core ==2.10.1 -> ==2.14.6 age adoption passing confidence minor
python 3.8 -> 3.12 age adoption passing confidence final minor
typescript (source) ~4.7.4 -> ~4.9.0 age adoption passing confidence devDependencies minor
unplugin-vue-components ^0.24.1 -> ^0.26.0 age adoption passing confidence devDependencies minor
uvicorn (changelog) ==0.23.2 -> ==0.25.0 age adoption passing confidence minor
uvicorn (changelog) ==0.24.0 -> ==0.25.0 age adoption passing confidence minor

Release Notes

vuejs/tsconfig (@​vue/tsconfig)

v0.5.1

Compare Source

v0.5.0

Compare Source

v0.4.0

Compare Source

v0.3.2

Compare Source

v0.3.1

Compare Source

v0.3.0

Compare Source

v0.2.0

Compare Source

lepture/authlib (authlib)

v1.3.0: Version 1.3.0

Compare Source

Bug fixes

Breaking changes

psf/black (black)

v22.12.0

Compare Source

Preview style
  • Enforce empty lines before classes and functions with sticky leading comments (#​3302)
  • Reformat empty and whitespace-only files as either an empty file (if no newline is
    present) or as a single newline character (if a newline is present) (#​3348)
  • Implicitly concatenated strings used as function args are now wrapped inside
    parentheses (#​3307)
  • For assignment statements, prefer splitting the right hand side if the left hand side
    fits on a single line (#​3368)
  • Correctly handle trailing commas that are inside a line's leading non-nested parens
    (#​3370)
Configuration
  • Fix incorrectly applied .gitignore rules by considering the .gitignore location
    and the relative path to the target file (#​3338)
  • Fix incorrectly ignoring .gitignore presence when more than one source directory is
    specified (#​3336)
Parser
  • Parsing support has been added for walruses inside generator expression that are
    passed as function args (for example,
    any(match := my_re.match(text) for text in texts)) (#​3327).
Integrations
  • Vim plugin: Optionally allow using the system installation of Black via
    let g:black_use_virtualenv = 0(#​3309)
pyca/cryptography (cryptography)

v41.0.7

Compare Source

JoshData/python-email-validator (email-validator)

v2.1.0

  • Python 3.8+ is now required (support for Python 3.7 was dropped).
  • The old email field on the returned ValidatedEmail object, which in the previous version was superseded by normalized, will now raise a deprecation warning if used. See https://stackoverflow.com/q/879173 for strategies to suppress the DeprecationWarning.
  • A __version__ module attribute is added.
  • The email address argument to validate_email is now marked as positional-only to better reflect the documented usage using the new Python 3.8 feature.
tiangolo/fastapi (fastapi)

v0.108.0

Compare Source

Upgrades
  • ⬆️ Upgrade Starlette to >=0.29.0,<0.33.0, update docs and usage of templates with new Starlette arguments. PR #​10846 by @​tiangolo.

v0.107.0

Compare Source

Upgrades
Docs

v0.106.0

Compare Source

Breaking Changes

Using resources from dependencies with yield in background tasks is no longer supported.

This change is what supports the new features, read below. 🤓

Dependencies with yield, HTTPException and Background Tasks

Dependencies with yield now can raise HTTPException and other exceptions after yield. 🎉

Read the new docs here: Dependencies with yield and HTTPException.

from fastapi import Depends, FastAPI, HTTPException
from typing_extensions import Annotated

app = FastAPI()

data = {
    "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
    "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
}

class OwnerError(Exception):
    pass

def get_username():
    try:
        yield "Rick"
    except OwnerError as e:
        raise HTTPException(status_code=400, detail=f"Onwer error: {e}")

@&#8203;app.get("/items/{item_id}")
def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
    if item_id not in data:
        raise HTTPException(status_code=404, detail="Item not found")
    item = data[item_id]
    if item["owner"] != username:
        raise OwnerError(username)
    return item

Before FastAPI 0.106.0, raising exceptions after yield was not possible, the exit code in dependencies with yield was executed after the response was sent, so Exception Handlers would have already run.

This was designed this way mainly to allow using the same objects "yielded" by dependencies inside of background tasks, because the exit code would be executed after the background tasks were finished.

Nevertheless, as this would mean waiting for the response to travel through the network while unnecessarily holding a resource in a dependency with yield (for example a database connection), this was changed in FastAPI 0.106.0.

Additionally, a background task is normally an independent set of logic that should be handled separately, with its own resources (e.g. its own database connection).

If you used to rely on this behavior, now you should create the resources for background tasks inside the background task itself, and use internally only data that doesn't depend on the resources of dependencies with yield.

For example, instead of using the same database session, you would create a new database session inside of the background task, and you would obtain the objects from the database using this new session. And then instead of passing the object from the database as a parameter to the background task function, you would pass the ID of that object and then obtain the object again inside the background task function.

The sequence of execution before FastAPI 0.106.0 was like the diagram in the Release Notes for FastAPI 0.106.0.

The new execution flow can be found in the docs: Execution of dependencies with yield.

v0.105.0

Compare Source

Features
  • ✨ Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()]. PR #​10773 by @​tiangolo.
Refactors
Docs
Internal

v0.104.1

Compare Source

Fixes
  • 📌 Pin Swagger UI version to 5.9.0 temporarily to handle a bug crashing it in 5.9.1. PR #​10529 by @​alejandraklachquin.
    • This is not really a bug in FastAPI but in Swagger UI, nevertheless pinning the version will work while a solution is found on the Swagger UI side.
Docs
Internal

v0.104.0

Compare Source

Features

Upgrades

Internal

v0.103.2

Compare Source

Refactors
  • ⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values. PR #​10344 by @​tiangolo.
Translations
  • 🌐 Add Ukrainian translation for docs/uk/docs/tutorial/extra-data-types.md. PR #​10132 by @​ArtemKhymenko.
  • 🌐 Fix typos in French translations for docs/fr/docs/advanced/path-operation-advanced-configuration.md, docs/fr/docs/alternatives.md, docs/fr/docs/async.md, docs/fr/docs/features.md, docs/fr/docs/help-fastapi.md, docs/fr/docs/index.md, docs/fr/docs/python-types.md, docs/fr/docs/tutorial/body.md, docs/fr/docs/tutorial/first-steps.md, docs/fr/docs/tutorial/query-params.md. PR #​10154 by @​s-rigaud.
  • 🌐 Add Chinese translation for docs/zh/docs/async.md. PR #​5591 by @​mkdir700.
  • 🌐 Update Chinese translation for docs/tutorial/security/simple-oauth2.md. PR #​3844 by @​jaystone776.
  • 🌐 Add Korean translation for docs/ko/docs/deployment/cloud.md. PR #​10191 by @​Sion99.
  • 🌐 Add Japanese translation for docs/ja/docs/deployment/https.md. PR #​10298 by @​tamtam-fitness.
  • 🌐 Fix typo in Russian translation for docs/ru/docs/tutorial/body-fields.md. PR #​10224 by @​AlertRED.
  • 🌐 Add Polish translation for docs/pl/docs/help-fastapi.md. PR #​10121 by @​romabozhanovgithub.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/header-params.md. PR #​10226 by @​AlertRED.
  • 🌐 Add Chinese translation for docs/zh/docs/deployment/versions.md. PR #​10276 by @​xzmeng.
Internal

v0.103.1

Compare Source

Fixes
  • 📌 Pin AnyIO to < 4.0.0 to handle an incompatibility while upgrading to Starlette 0.31.1. PR #​10194 by @​tiangolo.
Docs
Translations
Refactors
Internal

v0.103.0

Compare Source

Features
Docs
  • 📝 Add note to docs about Separate Input and Output Schemas with FastAPI version. PR #​10150 by @​tiangolo.

v0.102.0

Compare Source

Features
Refactors
Docs
Internal

v0.101.1

Compare Source

Fixes
  • ✨ Add ResponseValidationError printable details, to show up in server error logs. PR #​10078 by @​tiangolo.
Refactors
Docs
Translations
Internal

v0.101.0

Compare Source

Features
  • ✨ Enable Pydantic's serialization mode for responses, add support for Pydantic's computed_field, better OpenAPI for response models, proper required attributes, better generated clients. PR #​10011 by @​tiangolo.
Refactors
Upgrades
Translations
Internal

v0.100.1

Compare Source

Fixes
  • 🐛 Replace MultHostUrl to AnyUrl for compatibility with older versions of Pydantic v1. PR #​9852 by @​Kludex.
Docs
  • 📝 Update links for self-hosted Swagger UI, point to v5, for OpenAPI 31.0. PR #​9834 by @​tiangolo.
Translations
Internal
pycqa/flake8 (flake8)

v6.1.0

Compare Source

encode/httpx (httpx)

v0.26.0

Compare Source

Added
  • The proxy argument was added. You should use the proxy argument instead of the deprecated proxies, or use mounts= for more complex configurations. (#​2879)
Deprecated
  • The proxies argument is now deprecated. It will still continue to work, but it will be removed in the future. (#​2879)
Fixed
  • Fix cases of double escaping of URL path components. Allow / as a safe character in the query portion. (#​2990)
  • Handle NO_PROXY envvar cases when a fully qualified URL is supplied as the value. ([#​2741](https://to

Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/all-minor-patch branch 8 times, most recently from bcb8de3 to a0d083a Compare December 11, 2023 18:47
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 6 times, most recently from 9d6f3ef to 827f8ef Compare December 18, 2023 19:18
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 5 times, most recently from 70a275a to 38a978f Compare December 26, 2023 02:49
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 7 times, most recently from c30ca6f to 9f174f4 Compare January 3, 2024 00:45
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 9f174f4 to f41a98a Compare January 3, 2024 20:18
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from f41a98a to 2e6bbd5 Compare January 4, 2024 19:51
Copy link
Contributor Author

renovate bot commented Jan 4, 2024

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.

ianliuwk1019
ianliuwk1019 previously approved these changes Jan 8, 2024
Copy link

sonarqubecloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed for 'nr-forests-access-management_admin'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@MCatherine1994 MCatherine1994 merged commit d12913f into main Jan 8, 2024
10 checks passed
@MCatherine1994 MCatherine1994 deleted the renovate/all-minor-patch branch January 8, 2024 20:13
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