Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Mild Shock Newsgroups: comp.lang.javascript Subject: Re: ANN: Dogelog Player 1.1.6 (HTTP Client) Date: Wed, 13 Mar 2024 12:54:21 +0100 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 13 Mar 2024 11:54:20 -0000 (UTC) Injection-Info: solani.org; logging-data="1380754"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.1 Cancel-Lock: sha1:cRcbBdFIQOC7pMuLbt8sLckm1UE= In-Reply-To: X-User-ID: eJwNyskBwDAIA7CVoLWBjEM49h+h1Vt8Ta0cRgOXW2c6k8BFSWOCvqmhFsGSEnU5kQ9qmXb78Ri0zK38q6V/YSEV8w== Xref: csiph.com comp.lang.javascript:124294 Please go see a psychatrist, the point of departure of my post was this advertisement, which adresses the problem how to have a single application code base for both browser and node.JS, which you can also archive by using 3rd party node XHR API module. Or the 3rd party library AXIOS is yet another alternative: > Axios is a promise-based HTTP Client for node.js > and the browser. It is isomorphic (= it can run in > the browser and nodejs with the same codebase). > On the server-side it uses the native node.js http > module, while on the client (browser) it uses XMLHttpRequests. https://axios-http.com/docs/intro I then remarked that AXIOS isn't necessary anymore, since fetch() is also isomorphic among Browser and Node.js since release 21.x.x. With the benefit that you wont have any 3rd party dependency anymore, with fetch() everything will be native, in the browser and in node.JS: > Notable Changes - Oct 17, 2023 > The recent update to Node.js, version 21, includes > an important change to the fetch module as well as > WebStreams . Both modules were marked as stable > after a recent update. https://nodejs.org/en/blog/announcements/v21-release-announce What don't you understand here? How stupid on a scale of 1-1000 are you? Level 9000 stupid? Lawrence D'Oliveiro schrieb: > On Wed, 13 Mar 2024 02:05:10 +0100, Mild Shock wrote: > >> Natively Node.js does not provide the browser XHR API. > > Browsers do, though. >