Node.js 15.0 tuaj txog nrog kho tshiab rau NPM, V8 thiab ntau dua

Tsis-js

Tus tshiab ntawm Node.js 15.0 twb tau tshaj tawm thiab feem ntau muaj rau txhua tus. npe.js 15 yuav hloov Node.js 14 raws li "tam sim no" version, thaum Node.js 14 yuav nce mus rau LTS thaum lub hlis no xaus. Node.js 14 yuav tau txais LTS qhov xwm txheej thiab yuav txhawb nqa kom txog thaum Lub Plaub Hlis 2023. Saib xyuas cov LTS yav dhau los ntawm Node.js 12.0 yuav kav kom txog lub Plaub Hlis 2022 thiab ib qho ua ntej yuav tsum tau kav ceg LTS 10.0 kom txog rau thaum lub Plaub Hlis 2021.

Vim tias qhov no yog tus lej khib, Node.js 15 yuav tsis raug nce rau LTS. Yog li no, qhov no yuav tsum tau coj mus rau hauv tus account, raws li qhov phiaj xwm nyob rau hauv kev txhawb nqa ntawm OpenJS Foundation feem ntau pom zoo siv LTS cov kab tawm rau kev xa tawm ntau lawm.

Rau cov neeg tsis paub nrog Node.js, koj yuav tsum paub qhov ntawd yog ib lub platform rau kev siv network hauv JavaScript.

Nco qab tias Node.js platform tuaj yeem siv ob qho tib si rau web application server maintenance thiab rau tsim cov neeg siv zoo tib yam thiab cov kev pabcuam network.

Txhawm rau txuas ntxiv ntawm kev ua haujlwm ntawm cov ntawv thov rau Node.js, tau sau loj ntawm cov qauv tau npaj, hauv qhov koj tuaj yeem nrhiav cov modules nrog kev siv ntawm HTTP, SMTP, XMPP, DNS, FTP, IMAP, POP3 servers thiab cov neeg siv, cov qauv rau kev sib koom ua ke nrog ntau lub vev xaib, WebSocket thiab Ajax cov tswj tuav, DBMS cov khoom sib txuas (MySQL, PostgreSQL, SQLite, MongoDB), cov tshuab template, CSS xyaw, siv crypto-algorithm thiab cov kev tso cai (OAuth), XML parsers.

Lub ntsiab tshiab tshiab ntawm Node.js 15.0

Hauv cov tshiab no ntxiv qhov kev sim ua ntawm AbortController chav kawm, uas yog los ntawm AbortController lub vev xaib API thiab tso cai rau koj kom tshem tawm cov cim taw qhia hauv cov ntawv cog lus-nce qib APIs.

La N-API (API tsim cov plugins) tau hloov tshiab rau version 7, uas suav nrog cov hau kev tshiab rau kev ua haujlwm nrog ArrayBuffers.

Lub cev muaj zog V8 tau hloov kho rau version 8.6, dab tsi tso cai rau Node.js 15 txhawm rau ua haujlwm xws li Promise.any(), AggregateError, String.prototype.replaceAll (), thiab Boolean cov neeg ua haujlwm muab "&& =", "|| =", thiab "?? =".

Hloov mus rau tus tshiab version ntawm NPM 7.0 tus thawj tswj hwm pob, qhov twg muaj kev txhawb rau Workspaces los sib xyaw cov dependencies ntawm ntau cov pob rau hauv ib pob, tus tsis siv neeg installation ntawm cov phooj ywg cov neeg sib koom, qhov thib ob version ntawm cov hom ntawv kaw (pob-lock.json v2), thiab yarn.lock cov ntaub ntawv lub xauv.

Tus tsis siv tes kov tes kov pauv yog hloov pauv los siv "zam" zam tshwj xeeb tsis txhob siv cov lus ceeb toom "kev ceeb toom".

Nyob rau hauv hom "pov", thaum tsis muaj tus cwj pwm hais meej meej handler, unhandledRejection tam sim no pov ib qho kev tsis suav tshwj, tab sis yog tias tus tswj hwm tau teeb tsa, tus cwj pwm yuav tsis hloov. Daim paib "–unhandled-rejections = ceeb toom" tau muab los thim tus cwj pwm dhau los.

Kev sim pabcuam rau QUIC cov txheej txheem tau ntxiv rau cov qauv "Net", uas yog lub hauv paus rau HTTP / 3 thiab raug suav hais tias yog kev hloov pauv rau TCP + TLS kev khi rau lub vev xaib, uas daws cov teeb meem nrog teeb tsa ntev thiab kev sib tham ntawm lub sij hawm TCP sib txuas thiab tshem tawm cov kev ncua qeeb. ntawm pob ntawv thaum lub sij hawm hloov ntaub ntawv. Txhawm rau kom tau txais QUIC cov kev txhawb nqa hauv Node.js, yuav tsum muaj kev sib sau.

QUIC yog plug-in dhau UDP uas txhawb ntau yam sib txuas thiab muab cov encryption kev sib npaug rau TLS / SSL.

Yuav ua li cas rau nruab Node.JS ntawm Linux?

Rau cov neeg uas txaus siab xav tau los nruab qhov tshiab no ntawm Node.JS, lawv yuav tsum paub tias cov txheej txheem yooj yim heev, rau qhov no nkaus xwb Lawv yuav tsum qhib lub davhlau ya nyob twg hauv lub kaw lus thiab hauv nws lawv yuav ntaus ib ntawm cov kab hauv qab no, nyob ntawm koj distro.

Tus uas yog D cov neeg sivebian, Ubuntu thiab derivatives, lawv tsuas yog yuav tsum ntaus cov hauv qab no:

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

Thaum uas cov neeg siv Arch Linux, Manjaro, Arco Linux lossis lwm yam kev sib txuas ntawm Arch:

sudo pacman -S nodejs npm

Cov neeg siv OpenSUSE, tsuas yog ntaus hauv qab no:

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

Thaum kawg rau cov neeg uas siv Fedora, RHEL, Centos thiab derivatives:

sudo dnf -i nodejs npm


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

Yog thawj tus tuaj tawm tswv yim

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.