Node.js 15.0 ya zo tare da sabuntawa zuwa NPM, V8 da ƙari

Node-js

Sabon sigar Node.js 15.0 an riga an sake shi kuma ana samun sa ga kowa. Node. Js 15 zai maye gurbin Node.js 14 azaman sigar "yanzu", yayin Node.js 14 za a inganta shi zuwa LTS a karshen wannan watan. Node.js 14 zai karɓi matsayin LTS kuma za'a tallafawa shi har zuwa Afrilu 2023. Kula da reshen LTS na baya na Node.js 12.0 zai kasance har zuwa Afrilu 2022 da wanda ke gaban reshe na ƙarshe LTS 10.0 har zuwa Afrilu 2021.

Tunda wannan lambar sigar ce mara kyau, Node.js 15 ba za a haɓaka zuwa LTS ba. Sabili da haka, yakamata a kula da wannan, saboda aikin ƙarƙashin theungiyar OpenJS Foundation gabaɗaya yana ba da shawarar yin amfani da layin sakin layi na LTS don tura abubuwan samarwa.

Ga wadanda basu san Node.js ba, ya kamata ku san hakan dandamali ne don aikace-aikacen cibiyar sadarwa a cikin JavaScript.

Ka tuna cewa ana iya amfani da dandamali na Node.js duka don kiyaye sabar aikace-aikacen gidan yanar gizo da kuma ƙirƙirar abokin ciniki na yau da kullun da kuma tsarin sadarwar sabar.

Don fadada ayyukan aikace-aikacen don Node.js, an shirya manyan tarin kayayyaki, wanda zaku iya samun kayayyaki tare da aiwatar da HTTP, SMTP, XMPP, DNS, FTP, IMAP, sabobin POP3 da abokan ciniki, kayayyaki don hadewa tare da tsare-tsaren yanar gizo daban-daban, WebSocket da masu kula da Ajax, masu haɗin DBMS (MySQL, PostgreSQL, SQLite, MongoDB), injunan samfuri, injunan CSS, aiwatar da crypto-algorithm da tsarin ba da izini (OAuth), masu bincike na XML.

Babban sabon fasali na Node.js 15.0

A cikin wannan sabon sigar kara da aiwatar da gwaji na ajin AbortController, wanda ya dogara da AbortController API na yanar gizo kuma ya ba da izinin soke sigina a cikin zaɓaɓɓun API ɗin wa'adin.

La N-API (API don haɓaka plugins) an sabunta shi zuwa na 7, wanda ya hada da sababbin hanyoyi don aiki tare da ArrayBuffers.

Motar V8 an sabunta shi zuwa sigar 8.6, menene yana ba da damar Node.js 15 don aiwatar da ayyuka kamar Alƙawari.any-

Canza zuwa sabon sigar na mai kula da kunshin NPM 7.0, inda akwai tallafi ga Wuraren aiki don haɗawa da masu dogaro da fakiti da yawa cikin fakiti ɗaya, da shigarwa ta atomatik na masu dogaro da tsara, nau'i na biyu na tsarin kulle (kunshin-lock.json v2) da yarn.lock makullin fayil ɗin tallafi.

An canza mai kula da kin karbar wuta don amfani da tsoffin "jefa" maimakon gargadin "gargadi".

A cikin yanayin "jefa", in babu mai bayanin ma'ana a bayyane, ƙi kulawa yanzu jefa wani uncaught banda, amma idan an saita mai sarrafawa, halayyar ba zata canza ba. An bayar da tutar "–unhandled-rejections = gargadi" don sake juya halayen da suka gabata.

Beenara goyan bayan gwaji don yarjejeniyar QUIC a cikin tsarin "Net", wanda shine tushen HTTP / 3 kuma ana ɗaukar shi azaman madadin TCP + TLS ɗaure don Gidan yanar gizo, wanda ke warware matsalolin tare da dogon saiti da lokutan tattaunawa na haɗin TCP kuma yana kawar da jinkirin asarar fakiti yayin canja wurin bayanai. Don bawa damar QUIC tallafi a cikin Node.js, ana buƙatar taro.

QUIC fulogi ne akan UDP wanda ke tallafawa ninkurin yawaitar hanyoyin sadarwa da yawa kuma yana samar da hanyoyin ɓoyewa kwatankwacin TLS / SSL.

Yadda ake girka Node.JS akan Linux?

Ga waɗanda suke da sha'awar iya shigar da wannan sabon nau'in Node.JS, ya kamata su san cewa aikin yana da sauƙi, don wannan kawai Dole ne su bude tasha a cikin tsarin kuma a ciki za su rubuta daya daga cikin wadannan umarnin, ya danganta da damuwarku.

Game da waɗanda suke masu amfani da Debian, Ubuntu da Kalam, kawai sun rubuta waɗannan masu zuwa:

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

Duk da yake ga waɗanda suke amfani da Arch Linux, Manjaro, Arco Linux ko wani abin da ya samo daga Arch:

sudo pacman -S nodejs npm

Masu amfani da OpenSUSE, kawai rubuta waɗannan:

sudo zypper ar \
http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_13.1/ \
Node.js
sudo zypper in nodejs nodejs-devel

A ƙarshe ga waɗanda suke amfani Fedora, RHEL, Centos da abubuwan da suka samo asali:

sudo dnf -i nodejs npm


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Kasance na farko don yin sharhi

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

bool (gaskiya)