Comments (19)
I'd really like for latest
or last
to work. Useful also in examples of how to use libraries.
from cdnjs.
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.
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.
- 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.
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.
Thanks @hpatoio
from cdnjs.
from cdnjs.
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.
π It will be a cool and needed feature.
from cdnjs.
Tagging in #987
from cdnjs.
π nice idea ;)
whats your schedule for do it ?
from cdnjs.
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.
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.
Do you forgot this feature/issue ?!
from cdnjs.
π
from cdnjs.
+1
from cdnjs.
+1
from cdnjs.
+1
from cdnjs.
Closing, there is no feasible way to implement this whilst we have a focus on asset integrity with SRI.
from cdnjs.
Related Issues (20)
- I don't understand HOT 1
- amisεΊηΌΊε°εΏ θ¦ηζδ»Ά HOT 1
- git-sync is failing HOT 11
- Sponsoring your project HOT 6
- how to add files to cdnjs, or some aplication like cdns can upload javascript file HOT 1
- Fonts from "primevue" library not in the cdnjs distribution HOT 4
- Some versions of devextreme are missed HOT 9
- Loading Files Issue (Egypt) HOT 2
- Sponsoring HOT 1
- DevExtreme 23.1.3: missing *.js files HOT 1
- SRI hashes changed on multiple libraries yesterday and some SRI hashes are wrong HOT 30
- https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.34/moment-timezone-with-data.min.js 404 / missing HOT 9
- Some versions of hexo-theme-anzhiyu are missing HOT 3
- SRI hash for moment.js/2.29.4 does not match HOT 3
- cd pentmenu
- How to set the Video Autoplay? HOT 1
- Advertising HOT 2
- cdnjsdl HOT 2
- CDNε ¬ε ±εΊ HOT 2
- Include package deprecation information in API response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdnjs.