cdnjs / packages

📦 Package configurations - The #1 free and open source CDN built to make life easier for developers.
https://cdnjs.com
MIT License
364 stars 354 forks source link

Update date-fns w/ npm auto-update #1843

Closed JSkimming closed 2 months ago

JSkimming commented 3 months ago

Releases since 2.0.0-alpha0 have not picked up any files; see release 2.20.0.

After highlighting this with the author, @kossnocorp, in issue date-fns/date-fns#3791, he gave the green light to try to fix it.

I've changed the following:

  1. Autoupdate from npm.
  2. Pick up files beginning with cdn. in all folders.
  3. Ignore versions containing a hyphen, as this seems to indicate pre-releases.
  4. Don't optimize JS files, as minified versions come with the package

Note

I could not find documentation for the ignore format, so I based my pattern on examples I found elsewhere.