Zulip-desktop: Remove deprecated request module

Created on 3 Mar 2020  路  16Comments  路  Source: zulip/zulip-desktop

The request module is deprecated. Although it is still used by our indirect dependencies, we should replace our direct uses of it.

help wanted in progress

All 16 comments

Damn, just came to know about this. Will have to explore alternatives now.

Moving to something like axios or urlib can be a good solution

Yeah, gotta see if those satisfy our requirements (proxy support etc).

I do feel compelled to ask: given that Electron is, you know, a web browser鈥o we actually need a separate third-party library to make web requests? Can we just use electron.net?

electron.net is another fork of request module, I guess

I don鈥檛 see any evidence of that. But that wouldn鈥檛 matter; the Electron developers will maintain electron.net regardless of what happens to any modules it may or may not be a fork of.

Yeah, it seems like switching to electron.net makes a lot of sense.

@andersk makes sense, can I please work on migrating request to electron.net?

@Bearbobs can you first check if we can use it in the renderer process or not?

on it, will revert back @akashnimare.
Thanks,

@akashnimare yes we can use it for the renderer process, it's quite straight forward as the request package

Anyone working on this already?

@Somtozech me

@akashnimare @timabbott
https://chat.zulip.org/#narrow/stream/16-desktop/topic/GSoC-2020/near/833454

Any updates on this @Bearbobs?

Is this issue claimed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YJDave picture YJDave  路  6Comments

LeSeulArtichaut picture LeSeulArtichaut  路  3Comments

syncopated picture syncopated  路  3Comments

abhigyank picture abhigyank  路  4Comments

skewty picture skewty  路  9Comments