cdnjs / new-website

🖥 cdnjs.com website
https://cdnjs.com
ISC License
451 stars 213 forks source link

Handle renamed libraries via redirection. #179

Open PeterDaveHello opened 7 years ago

PeterDaveHello commented 7 years ago

Currently we use symbolic links to make sure both new/old names work on CDN, but it'll not work on the website as there is no record in public/packages.min.json.

To implement this feature, we need to add a function in cdnjs/cdnjs's build/packages.json.js to add record of libraries with symbolic links, and implement 302/301 redirect route in webServer.js app

cc https://github.com/cdnjs/cdnjs/issues/4627

PeterDaveHello commented 7 years ago

Libraries with symbolic links currently:

angular-morris-chart -> angular-morris
bower-angular-translate -> angular-translate
bower-angular-translate-loader-partial -> angular-translate-loader-partial
bower-angular-translate-loader-static-files -> angular-translate-loader-static-files
bower-angular-translate-loader-url -> angular-translate-loader-url
nicescroll -> jquery.nicescroll
pie -> css3pie
zocial -> css-social-buttons
MattIPv4 commented 4 years ago

Going to keep this open as this is something we should still consider down the road once we've rewritten the auto-update system.

PeterDaveHello commented 4 years ago

Feel free to open a new issue for it, as I was removed from the organization without any discussion and respect, just like some other members(I know it's not by you and you're not the one who's in charge for that), I'm now closing ancient issues I'm not working on so that I don't need to receive unnecessary notifications, thanks.

MattIPv4 commented 4 years ago

As mentioned here and here, please use the unsubscribe button in this issue if you no longer wish to receive notifications for it. However, please leave this issue open as it is still needed.