-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(gatsby-source-filesystem): update got dependency #18857
chore(gatsby-source-filesystem): update got dependency #18857
Conversation
- This fixes #18433
Depending when this was changed in |
So I went through the releases while debugging this. Unfortunately the first release of Now, the actual fix within I initially thought we could keep the old version of What do you suggest? |
Btw, I see from the existing lockfile that we are already depending on We can also alternatively just remove the dependency on |
We can't really mess with dependencies with packages we don't control. Yarn has some support for this ( https://yarnpkg.com/lang/en/docs/selective-version-resolutions/ ), but npm doesn't support it. I was checking combination of npm aliases and optional dependencies, but
Yeah, you are right. We already use Maybe doing the swap is ok, and it won't disturb the users. I looked up our telemetry stats, and seems like over last month people that run gatsby on Node@>=8.0 && < 8.6 were 0.01% of our userbase. It might be ok to go forward with this, given that we already broke >=8.0 support with contentful plugin itself, but I do need to sleep on it a bit to make decision like that.
Sure, but it also abstract few things that we don't have to handle ourselves. I would be wary of removing it and re-implementing things we need. |
Sure thing. Let me know what you decide is the best way forward. I'll keep this PR open till then. |
@Lemraj I see that you've encountered the same Am I correct in assuming that you happened to land here while searching for this issue? In that case, this issue in |
@EnKrypt You are right! i was searching for this issue and landed here! |
Ok, I think the best move (still not great, but best we can do) is to not merge that yet: Given that this PR gets rid of deprecation warning (and doesn't fix something that is broken), I think it's fair not to make the change yet. So upside of the change is that users on node 12 don't get warning, downside is that users on officially supported >=8.0 <8.6 will have problems with using this package (depending on package manager this can mean either not being able to install the package, to potential build time problems) We will be dropping Node 8 support when it will reach its "end of life" which will happen in ~2 months ( https://nodejs.org/en/about/releases/ ), so that will be great time to make this change. Any thoughts on that? If we can agree on this I would close PR for now, and this can be reoponed on 1st of January 2020, as this would be when we would officially drop node 8 support |
I think you've made a reasonable argument. Alright! Feel free to close this. Now I just have to make sure I'm not too drunk or hungover on New Year's to remember to re-open this issue. Quite the challenge, but I'm up for it. |
Hahaha, I didn't mean to re-open precisely on 1st of January 2020 ;) We will also probably need few days to get rest of our stuff in order (update all engines declaration in all of our packages, docs etc) |
@pieh Re-opened as discussed. If we've dropped support for node 8, I think we should be good to go. |
Can you take a look the conflict and resolve it? |
We're adding a deprecation warning in #20466 and delaying breaking support for another month or so |
Any updates? What are the current stats on our users using Node < 10.13? |
got
dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time to get this in!
got
dependency
Hi, with gatsby 3.0 I am seeing again the same problem. Any suggestion? (node:18172) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated |
Same with gatsby 3.1.2 |
This happened to me as well. Fixed it by adding the latest version of
|
Description
Using
gatsby-source-contentful
with certain options triggers a particular DeprecationWarning in node v12. (For more info, follow issue link below)Bumping
got
to9.6.0
ingatsby-source-filesystem
fixes this.The only side-effect is that this requires min Node v8. I don't think that should be a problem, but feel free to correct me.
Checked with all tests passing.
I'm not sure what the protocol is following this, but I'm guessing after this is merged, it will be reflected when another PR with
chore(release)
bumps all depending package versions to publish.Related Issues
Fixes #18433