Giter Club home page Giter Club logo

Comments (19)

dandv avatar dandv commented on May 6, 2024 2

I'd really like for latest or last to work. Useful also in examples of how to use libraries.

from cdnjs.

thomasdavis avatar thomasdavis commented on May 6, 2024 1

This is most likely out of our scope for now, we are trying to keep management overheads down.

Though will keep the ticket alive if anyone has any good ideas. Symlinks sounds like the way to go but I'm not sure I want to be managing hundreds of symlinks etc

from cdnjs.

ryankirkman avatar ryankirkman commented on May 6, 2024

So there's a few issues with implementing this:

  • It assumes everyone follows semantic versioning in the same manner
  • Depending on the Cache-Control max-age you might not actually get bug fixes for a long time (e.g. 1 year)
  • I'm not sure how we would implement this from a technical sense
    • Right now everything is just static file serving. Introducing somewhat dynamic script serving will complicate things

In regards to including the version number in the file name, my policy is to include the file exactly as it is provided by the library maintainer, filename and all, e.g. http://code.jquery.com/jquery-1.8.0.min.js

from cdnjs.

reezer avatar reezer commented on May 6, 2024
  • Well, one should of course know the library one uses. It's also not like one would have to include such a version. (and a lot of different libraries for sanity reasons follow this or similar semantics)
  • Isn't that what ETags are for?
  • Would symlinks be an option? That way they'd implemented just like most libraries in Unix systems, which do exactly what I propose here. But I don't know if and how git supports links.

from cdnjs.

blaise-io avatar blaise-io commented on May 6, 2024

I’d also appreciate this, in my case for jQuery as well. It would be great to automatically benefit from bug fix releases (third digit) without having to monitor bug fix releases and updating paths every time.

I understand this may be complicated because it needs adjustments to the existing architecture, but I think it would make a great additional to the service.

from cdnjs.

thomasdavis avatar thomasdavis commented on May 6, 2024

Thanks @hpatoio

from cdnjs.

thomasdavis avatar thomasdavis commented on May 6, 2024

#612

from cdnjs.

fidian avatar fidian commented on May 6, 2024

In #1495 I offered to make a shell script that would manage the multitude of shell scripts and it could be added as part of your build process. @ryankirkman had a concern that any sort of complexity might not work. Have symlinks even been tried? If not, I'd be happy to give a pull request that would add symlinks for a single project to save on clutter. It appears that the CDN might just proxy the first request through to another host, so I suppose it's more important to see if the original host supports symlinks.

from cdnjs.

altmind avatar altmind commented on May 6, 2024

πŸ‘ It will be a cool and needed feature.

from cdnjs.

petecooper avatar petecooper commented on May 6, 2024

Tagging in #987

from cdnjs.

AliMD avatar AliMD commented on May 6, 2024

πŸ‘ nice idea ;)
whats your schedule for do it ?

from cdnjs.

vakata avatar vakata commented on May 6, 2024

If not wild card support, how about using "latest", especially for libs that use the npm hook - in npm there always is a latest tag. That could even promote moving to verified sources (npm) for the libs, and reduce manual submissions.

from cdnjs.

luigimannoni avatar luigimannoni commented on May 6, 2024

Completely agree with that, i guess having a /latest/.js and /latest/.min.js would be easier to maintain rather than using wildcards

from cdnjs.

AliMD avatar AliMD commented on May 6, 2024

Do you forgot this feature/issue ?!

from cdnjs.

eusonlito avatar eusonlito commented on May 6, 2024

πŸ‘

from cdnjs.

Kristinita avatar Kristinita commented on May 6, 2024

+1

from cdnjs.

dhowe avatar dhowe commented on May 6, 2024

+1

from cdnjs.

temandroid avatar temandroid commented on May 6, 2024

+1

from cdnjs.

MattIPv4 avatar MattIPv4 commented on May 6, 2024

Closing, there is no feasible way to implement this whilst we have a focus on asset integrity with SRI.

from cdnjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.