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 13:01:06 +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 12:01:05 -0000 (UTC) Injection-Info: solani.org; logging-data="1381040"; 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:CoWRU/k7Dfjjo8gX8atMQsmYqOk= X-User-ID: eJwFwYcBwDAIA7CXGDYJ56SM/0+oRA+NOggGuFy3vT3KDa3raMmvXppR5qHQ0RV+sa3jtUJ5hqRgXM+65A9VpRUo In-Reply-To: Xref: csiph.com comp.lang.javascript:124296 Maybe its a language problem, what is your native language Lawrence D'Oliveiro . Do you understand what AXIOS advertizes, and what they mean when they write "same codebase"? Any idea what "same [application] codebase [across browser and node.JS"] could mean? Or are you simply too lazy to read what people cite? Mild Shock schrieb: > 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. >> >