Feincms3-cookiecontrol

Latest version: v1.5.3

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.5

- Started clobbering the cookie control data on app startup.
- Updated the pre-commit hooks.
- Updated the esbuild version.
- Changed the build step to also send the CSS through esbuild's minificator.
- Added spanish translations of the cookie banner.
- Added Python 3.12 and Django 5.0.
- Added experimental support for Google Consent Management. Add the `f3cc/gcm.js` asset to pass the users general consent to GA.

1.4

- Allowed overriding the `oembed_json` callable used by the conscious oEmbed
utility; you could e.gg. use `import micawber; providers = micawber.bootstrap_oembed(); embed(..., oembed_json=providers.request)` now.
- Stopped generating an empty `<div class="f3cc"></div>` element if there's
nothing to add inside.
- Moved the privacy policy link into the text instead of adding another
"privacy policy" title at the end.

1.3

- Switched to hatchling.
- Switched to ruff.
- Stopped crashing when `oembed` doesn't succeed.
- Added the slugified provider name to the CSS class of the
`<div class="responsive-embed">` element when using `oembed`.
- Added `rm` (Romansh) translations.
- Further reduced the size of the generated JavaScript.
- Renamed the JavaScript file from `feincms3_cookiecontrol/build.js` to
`f3cc.js` because it's nicer.
- Dropped compatibility with Python 3.8.

1.2

- Updated pre-commit hooks.
- Added Django 4.2a1 and Python 3.11 to the CI.
- Django 5.0 will require Python 3.10 or better, updated the CI to take this
into account.
- Documented a better way to integrate the inject view. (Still only really
useful for special cases.)
- Code golfed the generated JavaScript a bit to shave off a few bytes.
- Added a `oembed` embedder to `feincms3_cookiecontrol.embedding`.

1.1

- Added the `--f3cc-accept-foreground` CSS variable.
- Made it possible to override the default description and button text when
using the `{% wrap %}` template tag.

1.0

- Stopped needlessly post-processing the script tags of embeds, thanks
yoshson.
- Tweaked texts and spacing of embeds.
- Completed the translations.
- Changed the modify button rendering logic: If a HTML element with
`class="f3cc-modify"` exists anywhere on the page (e.g. `<button type="button" class="f3cc-modify">Modify cookie settings</button>`) the
banner revealing functionality is bound to this element and the fixed button
in the bottom right side of the viewport isn't added at all.
- Introduced `{% embed %}` and `{% wrap %}` tags mirroring the embedding
functions.
- Added Google to the list of well-known providers.
- Removed the `*-color` suffix from `--f3cc-background` and
`--f3cc-foreground`.
- Made overriding the CSS variables less confusing. Setting the variables using
`:root {}` now works.
- Added the `--f3cc-button-foreground` CSS variable. It defaults to
`var(--f3cc-foreground)` for backwards compatibility.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.