-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Proposal] Upgrading express 3 to 4 #3460
Comments
Our approach is that we accept responsibility for our core dependencies-- so if there are problems that affect your usage in Sails, we'll address them and provide a workaround. Rather than upgrading to Express 4, we're interested in using the lower-level modules like Doug Wilson is doing for Express 5. This is covered in more detail in our roadmap. |
So we will need wait expressjs 5 release? You will update sails to expresjs 5 or no? All new module all new features always write only for new version. Expressjs is core. Codeigniter don't want updates to php5 and where he now? |
@udanpe are there any user land features or changes you require from this upgrade? |
For a longer discussion of this, see #3235 (comment) It's easy to overstate the relevance of the Express dependency to Sails, which uses it mainly as a router. I've yet to hear about a specific feature or third-party module that you couldn't use with Sails because the Express version was too old. |
Josebaseba was right. Or you write hooks for use sails with express 4 or change express for other core or sails will be dead. |
@udanpe I'm sorry, I think all the different posts have made this kind of confusing. To be clear, I am not against this kind of an upgrade-- however I don't agree that we should upgrade for no reason. I really appreciate @Josebaba's work, and I wish we could have communicated about it beforehand to evaluate the approach that @dougwilson and I discussed. First of all, I'll reiterate: until we hear about any userland features or changes necessitated by a real-world use case from a Sails user, we cannot upgrade a dependency. Despite it seeming like a good idea, it can be dangerous, risky, and irresponsible to change dependencies just for the sake of a version number-- I've learned that the hard way over the past four years of maintaining this framework.
We will upgrade to Express 5 or share the same relevant lower-level dependencies used by Express 5, since it will mean a tangible gain in the experience of working with Sails apps: lighter core dependencies, faster installs, and the flexibility to much more easily configure Sails (e.g. disable serving of static web assets, only serving static web assets, only using Socket.io, omitting Socket.io... etc.) It also makes it easier to do something which is very important to me: provide a lighter version of Sails core and allow you to make custom builds that include only those dependencies which you are actually using. One of the challenges of being a full-featured framework is providing the ability to customize what your app uses and what it doesn't. As you probably already know, you can disable almost anything in Sails today: but you still have to install it. And that sucks! I want to fix it. But upgrading to Express 4 is a step in the opposite direction. I hope that helps explain where I'm coming from here. Apologies for not spending the time to shed more light before. I really appreciate your patience. In the mean time, if there are problems, incompatibilities in our documentation, or other issues I'm missing here that would be solved by an upgrade to Express 4, please open an issue to let us know. |
@mikermcneil +1 - I agree on not upgrading for the sake of version number |
I understand what you mean but... For example. I create project and use passportjs. Now its work but after 1 month passport will updates (express 3 is deprecated) so new passport support only 4 version. After 2 month we have security bug in old version passportjs or change oauth or something else. Why is fault passport or sails? |
@udanpe is there a security bug you're experiencing currently? If so, please let us know immediately and we'll address it. |
Actually, I think I may have misunderstood you- sorry. Do you mean that @jaredhanson is planning on making Passport no longer work with Express 3? |
I don't know what will happen in future. I Want sleep free of worry. I don't use sails now but i see this project sometimes. If you update all dependence, write new features, change site design i think you will have more users. Now project doesn't look seriously. Maybe it's only my mind. I afraid to use the older dependency and don't want every day rewrite projects |
@Monkeymon Posted some more info on this at #3235 (comment). Let's pick up any other discussion in that thread (going to lock this issue so that we funnel all future discussion into that PR so it's easier to track) |
As express 3 is considered depreciated from ExpressJS website. Are there plans to update the version?
The text was updated successfully, but these errors were encountered: