adamchainz/django-cors-headers
### [`v4.0.0`](https://togithub.com/adamchainz/django-cors-headers/blob/HEAD/CHANGELOG.rst#400-2023-05-12)
[Compare Source](https://togithub.com/adamchainz/django-cors-headers/compare/3.14.0...4.0.0)
- Add `CORS_ALLOW_PRIVATE_NETWORK_ACCESS` setting, which enables support for the Local Network Access draft specification.
Thanks to Issac Kelly in `PR #745 `\__ and jjurgens0 in `PR #833 `\__.
- Remove three headers from the default "accept list": `accept-encoding`, `dnt`, and `origin`.
These are `Forbidden header names `\__, which means requests JavaScript can never set them.
Consequently, allowing them via CORS has no effect.
Thanks to jub0bs for the report in `Issue #842 `\__.
- Drop the `CORS_REPLACE_HTTPS_REFERER` setting and `CorsPostCsrfMiddleware`.
Since Django 1.9, the `CSRF_TRUSTED_ORIGINS` setting has been the preferred solution to making CSRF checks pass for CORS requests.
The removed setting and middleware only existed as a workaround for Django versions before 1.9.
- Add async support to the middleware, reducing overhead on async views.
getsentry/sentry-python
### [`v1.23.1`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1231)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.23.0...1.23.1)
##### Various fixes & improvements
- Disable Django Cache spans by default. ([#2120](https://togithub.com/getsentry/sentry-python/issues/2120)) by [@antonpirker](https://togithub.com/antonpirker)
### [`v1.23.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1230)
[Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.22.2...1.23.0)
##### Various fixes & improvements
- **New:** Add `loguru` integration ([#1994](https://togithub.com/getsentry/sentry-python/issues/1994)) by [@PerchunPak](https://togithub.com/PerchunPak)
Check [the documentation](https://docs.sentry.io/platforms/python/configuration/integrations/loguru/) for more information.
Usage:
```python
from loguru import logger
import sentry_sdk
from sentry_sdk.integrations.loguru import LoguruIntegration
sentry_sdk.init(
dsn="___PUBLIC_DSN___",
integrations=[
LoguruIntegration(),
],
)
logger.debug("I am ignored")
logger.info("I am a breadcrumb")
logger.error("I am an event", extra=dict(bar=43))
logger.exception("An exception happened")
```
- An error event with the message `"I am an event"` will be created.
- `"I am a breadcrumb"` will be attached as a breadcrumb to that event.
- `bar` will end up in the `extra` attributes of that event.
- `"An exception happened"` will send the current exception from `sys.exc_info()` with the stack trace to Sentry. If there's no exception, the current stack will be attached.
- The debug message `"I am ignored"` will not be captured by Sentry. To capture it, set `level` to `DEBUG` or lower in `LoguruIntegration`.
- Do not truncate request body if `request_bodies` is `"always"` ([#2092](https://togithub.com/getsentry/sentry-python/issues/2092)) by [@sentrivana](https://togithub.com/sentrivana)
- Fixed Celery headers for Beat auto-instrumentation ([#2102](https://togithub.com/getsentry/sentry-python/issues/2102)) by [@antonpirker](https://togithub.com/antonpirker)
- Add `db.operation` to Redis and MongoDB spans ([#2089](https://togithub.com/getsentry/sentry-python/issues/2089)) by [@antonpirker](https://togithub.com/antonpirker)
- Make sure we're importing `redis` the library ([#2106](https://togithub.com/getsentry/sentry-python/issues/2106)) by [@sentrivana](https://togithub.com/sentrivana)
- Add `include_source_context` option ([#2020](https://togithub.com/getsentry/sentry-python/issues/2020)) by [@farhat-nawaz](https://togithub.com/farhat-nawaz) and [@sentrivana](https://togithub.com/sentrivana)
- Import `Markup` from `markupsafe` ([#2047](https://togithub.com/getsentry/sentry-python/issues/2047)) by [@rco-ableton](https://togithub.com/rco-ableton)
- Fix `__qualname__` missing attribute in asyncio integration ([#2105](https://togithub.com/getsentry/sentry-python/issues/2105)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py)
- Remove relay extension from AWS Layer ([#2068](https://togithub.com/getsentry/sentry-python/issues/2068)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py)
- Add a note about `pip freeze` to the bug template ([#2103](https://togithub.com/getsentry/sentry-python/issues/2103)) by [@sentrivana](https://togithub.com/sentrivana)
Configuration
📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR contains the following updates:
==3.14.0
->==4.0.0
==1.22.2
->==1.23.1
Release Notes
adamchainz/django-cors-headers
### [`v4.0.0`](https://togithub.com/adamchainz/django-cors-headers/blob/HEAD/CHANGELOG.rst#400-2023-05-12) [Compare Source](https://togithub.com/adamchainz/django-cors-headers/compare/3.14.0...4.0.0) - Add `CORS_ALLOW_PRIVATE_NETWORK_ACCESS` setting, which enables support for the Local Network Access draft specification. Thanks to Issac Kelly in `PR #745getsentry/sentry-python
### [`v1.23.1`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1231) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.23.0...1.23.1) ##### Various fixes & improvements - Disable Django Cache spans by default. ([#2120](https://togithub.com/getsentry/sentry-python/issues/2120)) by [@antonpirker](https://togithub.com/antonpirker) ### [`v1.23.0`](https://togithub.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#1230) [Compare Source](https://togithub.com/getsentry/sentry-python/compare/1.22.2...1.23.0) ##### Various fixes & improvements - **New:** Add `loguru` integration ([#1994](https://togithub.com/getsentry/sentry-python/issues/1994)) by [@PerchunPak](https://togithub.com/PerchunPak) Check [the documentation](https://docs.sentry.io/platforms/python/configuration/integrations/loguru/) for more information. Usage: ```python from loguru import logger import sentry_sdk from sentry_sdk.integrations.loguru import LoguruIntegration sentry_sdk.init( dsn="___PUBLIC_DSN___", integrations=[ LoguruIntegration(), ], ) logger.debug("I am ignored") logger.info("I am a breadcrumb") logger.error("I am an event", extra=dict(bar=43)) logger.exception("An exception happened") ``` - An error event with the message `"I am an event"` will be created. - `"I am a breadcrumb"` will be attached as a breadcrumb to that event. - `bar` will end up in the `extra` attributes of that event. - `"An exception happened"` will send the current exception from `sys.exc_info()` with the stack trace to Sentry. If there's no exception, the current stack will be attached. - The debug message `"I am ignored"` will not be captured by Sentry. To capture it, set `level` to `DEBUG` or lower in `LoguruIntegration`. - Do not truncate request body if `request_bodies` is `"always"` ([#2092](https://togithub.com/getsentry/sentry-python/issues/2092)) by [@sentrivana](https://togithub.com/sentrivana) - Fixed Celery headers for Beat auto-instrumentation ([#2102](https://togithub.com/getsentry/sentry-python/issues/2102)) by [@antonpirker](https://togithub.com/antonpirker) - Add `db.operation` to Redis and MongoDB spans ([#2089](https://togithub.com/getsentry/sentry-python/issues/2089)) by [@antonpirker](https://togithub.com/antonpirker) - Make sure we're importing `redis` the library ([#2106](https://togithub.com/getsentry/sentry-python/issues/2106)) by [@sentrivana](https://togithub.com/sentrivana) - Add `include_source_context` option ([#2020](https://togithub.com/getsentry/sentry-python/issues/2020)) by [@farhat-nawaz](https://togithub.com/farhat-nawaz) and [@sentrivana](https://togithub.com/sentrivana) - Import `Markup` from `markupsafe` ([#2047](https://togithub.com/getsentry/sentry-python/issues/2047)) by [@rco-ableton](https://togithub.com/rco-ableton) - Fix `__qualname__` missing attribute in asyncio integration ([#2105](https://togithub.com/getsentry/sentry-python/issues/2105)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py) - Remove relay extension from AWS Layer ([#2068](https://togithub.com/getsentry/sentry-python/issues/2068)) by [@sl0thentr0py](https://togithub.com/sl0thentr0py) - Add a note about `pip freeze` to the bug template ([#2103](https://togithub.com/getsentry/sentry-python/issues/2103)) by [@sentrivana](https://togithub.com/sentrivana)Configuration
📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.