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.
Can you add a link to #899? So people can easily know why we are doing this.
Fixes #899
Fixes #990
Checklist
ava+electronyet)