Skip to content

Old code versions provided via CDN #127

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

Open
mkulmer opened this issue May 8, 2025 · 1 comment
Open

Old code versions provided via CDN #127

mkulmer opened this issue May 8, 2025 · 1 comment

Comments

@mkulmer
Copy link

mkulmer commented May 8, 2025

The CDN links point to old versions, at least for django-bootstrap-datepicker-plus which still points to version 5.0.2 even in v5.0.5 of the code itself. Is this intentional?

I found out because I got this warning in the console. "[Deprecation] Listener added for a 'DOMNodeInserted' mutation event..." coming from datepicker-widget.js. Looking at the local Javascript code shipped with 5.0.5, I see that it already uses the MutationObserver API, as mentioned in #115.

But {{ form.media }} still renders links to 5.0.2 code from the CDN that uses DOMNodeInserted.

@mkulmer
Copy link
Author

mkulmer commented May 8, 2025

No, wait, what?

Sorry, but I'm confused. The code in the repository here on github points to 5.0.6?

But in my local installation, using command pip install django-bootstrap-datepicker-plus gives me a file in my environment "/site-packages/bootstrap_datepicker_plus/static/bootstrap_datepicker_plus/js/datepicker-widget.js" that contains code with DOMNodeInserted?

I also uninstalled the package, did pip cache purge, and reinstalled:

Collecting django-bootstrap-datepicker-plus
  Downloading django_bootstrap_datepicker_plus-5.0.5-py3-none-any.whl (13 kB)

Still code with DOMNodeInserted. What is going on here?

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

No branches or pull requests

1 participant