-
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
Sails references deprecated dependencies #3582
Comments
Seconded. Sails currently seems to be in some stormy weather when it comes to npm version >= 3.0.0 and the outdated dependencies. |
@SonofNun15 The lodash and async dependencies definitely matter inasmuch as it affects folks using the automatically-provided global. We're looking at a more flexible way to expose that for Sails v1 (i.e. being able to control the version of the auto-exposed global), so if you or @nilswiersema have an idea on how you'd like to see that implemented, please open a proposal PR. As far as the other dependencies, while I dislike those deprecation warnings as much as anyone else, for the good of the framework, we don't update dependencies of Sails core unless there are security, stability, or major performance issues that affect Sails (a bit more background on that here as well). tldr; Whether or not one of our NPM dependencies is officially supported by any other individual or company, they are supported by our core team. We are absolutely committed to fixing any issues with documented features of Sails-- whether they happen to result from the particular versions of dependencies we're using or not. |
@nilswiersema You bring up a good point as far as perception. The culprit is I don't really have a good solution for this, perception-wise. It's not the kind of thing we can afford to spend our time focusing on-- there is too much more important work to be done (improving the documentation, enabling lower-level access to the database through Waterline, continuing down the Sails v1 roadmap, etc.) But if anyone has an idea on how we can improve here, given what I explained above, please let me know. |
@mikermcneil: Very good response, thanks. I can respect that. The primary concern is that deprecated versions will be less stable and not well supported. But you have adderssed the concerns here with the exception of the perception issue, which is not exactly your problem. I personally don't intend to use the lodash global, so that won't be an issue, but will have to resort to referencing multiple versions of lodash so that application code can use lodash 4. Thanks again. |
@SonofNun15 Hmm, I can definitely look into that-- but first to make sure I'm understanding you right: Do you mean that if in your project you do: npm install lodash@latest --save --save-exact Then lodash 4.x functions are not available if e.g. in a controller you do:
|
I see what you are saying. Because the application references lodash 2.4.1, any code within that application is stuck on the same version. That is definitely unfortunate. I think it would be advantageous to eventually at least move lodash to 4.* since lodash is a front-facing library commonly used. All of the other older deps are backend pieces that sails can pretty much hide anyway. |
@SonofNun15 Ah, sorry-- what I mean is that this is not how it's supposed to work in NPM-- if it is working that way, something is wrong. In the example code I wrote up above, Lodash 4.x functions should be available. To use Lodash 4.x in your Sails app, just run I totally misunderstood you, apologies for the confusion! (I thought meant that you were experiencing a bug where that wasn't the case, potentially due to some kind of unexpected global leak or install issue that I hadn't seen locally) To put my mind at ease, I tried this out with:
And fortunately, I was able to verify that this works as expected in every case, so you should be good to go. I'm going to go ahead and assume this is resolved, but if you notice anomalous behavior, please give it a troubleshooting pass with a clean install and if you still see it, open a new issue with specifics + a link back here and I'll dig in deeper. Thanks! |
👍 |
For future reference, you can find more details about this dependencies in Sails core (and other related packages) in #3969 (comment) |
When installing sails via npm, I am warned about several sails dependencies that are now deprecated:
Would be ideal to upgrade to lodash 4 in particular.
The text was updated successfully, but these errors were encountered: