django-commons/django-cookie-consent

JavaScript Integrations enhancement.

Closed this issue ยท 3 comments

acuD1 commented

Hi,

I'm implementing your JS integration, and so far, so good. However, I noticed that you don't expose some useful variables or functions in the cookiebar.module.js.

For example, getCookieStatus. We might want to get the status of a cookie while loading the script, not simply loadCookieGroups, which only retrieves all cookies.

I was wondering if this is intentional for security reasons or other purposes.

I had to reimplement these functions myself, which seems a bit unnecessary since they are already defined in your module.

Thank you! ๐Ÿ˜‰

It was semi-intentional because public exports/API become subject to the SemVer policy, but I'm not against including them if there's an actual need.

I will link this to the 1.0 milestone but likely it may become available sooner - depending on how much time I can set aside for this (this package is easy to lose track off in my notifications)

Thanks, I responded to your comment.

This has now been released in version 0.8.0 (both the PyPI package and the npm package).