-
-
Notifications
You must be signed in to change notification settings - Fork 956
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
Deprecate Electron support #995
Conversation
This comment has been minimized.
This comment has been minimized.
Can you move the changes that fixes #990 into a separate PR? |
Can you remove the added Electron workarounds? There's no point in fixing Electron issues now that we're deprecating support for it. |
Will do, I just did so because without these changes Electron support is fully broken though. |
All the other fixes are required except the |
Some other unnecessary fixes:
The |
It’s not about the amount of lines, but rather that everything adds complexity, and we have a lot of complexity already. Doesn’t really make sense to add complexity for something we intend to remove. These fixes might even cause problems to other things. |
Summary: The last known Got version that was Electron-compatible was v9.6.0. At the time the Electron version was electron/electron@2a37934 kicked in and broke reading error responses. |
I don't think so, I've tested it locally. Anyway, I'll remove those fixes :) People who switched to Electron 7 two months ago or switched to Got 10 this month - had to disable |
Is that really needed? It's not so complicated. Basically the fix is this: https://github.com/sindresorhus/got/pull/995/files#diff-7bf54112e60a8714e49d3e1e98cf4e2bR32-R36 |
It's not about how complicated it is. It's weird having that change in a commit (when merged to master) called "Deprecate Electron support", when it's totally unrelated. This also makes it harder when I do release notes, as I have to remember to mention that change manually instead of
Looks like it's also: https://github.com/sindresorhus/got/pull/995/files#diff-267e4380ccf0cfebc8b885a948acf226L142-L149 And some other smaller changes. |
Regarding the fix for #990, feel free to just commit that directly to master. It doesn't have to be a PR, just a commit with a good title. |
source/normalize-arguments.ts
Outdated
options.request = electron.net.request ?? electron.remote.net.request; | ||
options.request = deprecate( | ||
electron.net.request ?? electron.remote.net.request, | ||
'Electron support has been deprecated and will be removed in Got 11', |
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.
Can you add a link to #899? So people can easily know why we are doing this.
Fixes #899
Fixes #990
Checklist
ava
+electron
yet)