Ho lokolloa ha Electron 12.0.0, sethala sa ho haha ​​​​likopo tse thehiloeng ho enjene ea Chromium

Ho lokolloa ha sethala sa Electron 12.0.0 se lokiselitsoe, se fanang ka moralo o ikemetseng oa ho hlahisa lisebelisoa tsa basebelisi ba li-platform tse ngata, ho sebelisa likarolo tsa Chromium, V8 le Node.js e le motheo. Phetoho e kholo ea nomoro ea phetolelo e bakoa ke ntlafatso ea codebase ea Chromium 89, sethaleng sa Node.js 14.16 le enjene ea V8 8.9 JavaScript.

Tokollong e ncha:

  • Phetoho ho ea lekaleng le lecha la LTS la sethaleng sa Node.js 14 e se e entsoe (pele ho ne ho sebelisoa lekala la 12.x).
  • E kentse webFrameMain API bakeng sa phihlello ho tloha ts'ebetsong ea mantlha ho ea ho tlhahisoleseling mabapi le RenderFrames e sebetsang maemong a mang a WebContents. WebFrameMain API e lekana le webFrame API, empa e ka sebelisoa ho tsoa ka har'a ts'ebetso ea mantlha.
  • BrowserWindow API e kentse BrowserWindow.isTabletMode() le win.setTopBrowserView() mekhoa, hammoho le webPreferences.preferredSizeMode parameter le system-context-menu, e fetotsoeng (Windows/macOS) le liketsahalo tse tsamaileng (Windows).
  • Ka linako tsohle, li-setting tsa contextIsolation le worldSafeExecuteJavaScript lia lumelloa, tse nolofalletsang mekhoa e meng ea ho itšehla thajana le tšireletso ha u sebelisa JavaScript.
  • Ka kamehla, peakanyo ea crashReporter.start({ compress }) ea bulela. E tlositsoe crashReporter API e tlositsoeng.
  • E fane ka bokhoni ba ho fihlella li-API tseo e seng tsa ntho ka mokhoa oa exposeInMainWorld ho contextBridge.
  • Lintlha tse ling tsa chrome.management API li kentsoe ho API ea ntlafatso ea tlatsetso.
  • Mojule oa "remote" o tlositsoeng o nketsoe sebaka ke "@electron/remote".

A re u hopotse hore Electron e u lumella ho etsa lits'ebetso life kapa life tsa graphical u sebelisa mahlale a sebatli, mohopolo oa ona o hlalosoang ho JavaScript, HTML le CSS, mme ts'ebetso e ka atolosoa ka sistimi ea tlatsetso. Bahlahisi ba na le phihlello ea li-module tsa Node.js, hammoho le API e atolositsoeng bakeng sa ho hlahisa lipuisano tsa matsoalloa, ho kopanya lits'ebetso, ho theha menyu ea litaba, ho kopanya le sistimi ea tsebiso, ho tsamaisa lifensetere, le ho sebelisana le li-subsystem tsa Chromium.

Ho fapana le lits'ebetso tsa marang-rang, mananeo a thehiloeng ho Electron a fanoa e le lifaele tse sebetsang tse ikemetseng tse sa tlangoa ho sebatli. Ka nako e ts'oanang, moqapi ha a hloke ho tšoenyeha ka ho kenya kopo bakeng sa li-platform tse fapaneng; Electron e tla fana ka bokhoni ba ho haha ​​​​litsamaiso tsohle tse tšehetsoeng ke Chromium. Electron e boetse e fana ka lisebelisoa tsa ho fana ka othomathike le ho kenya liapdeite (lintlafatso li ka tsamaisoa ho tsoa ho seva e arohaneng kapa ka kotloloho ho tsoa ho GitHub).

Mananeo a hahiloeng sethaleng sa Electron a kenyelletsa mohlophisi oa Atom, bareki ba lengolo-tsoibila la Nylas le Mailspring, GitKraken toolkit bakeng sa ho sebetsa le Git, WordPress Desktop blogging system, WebTorrent Desktop BitTorrent client, hammoho le bareki ba molao ba litšebeletso tse kang Skype, Signal , Slack, Basecamp. , Twitch, Ghost, Wire, Wrike, Visual Studio Code le Discord. Ka kakaretso, lethathamo la lenaneo la Electron le na le lits'ebetso tse 1016. Ho nolofatsa nts'etsopele ea lits'ebetso tse ncha, ho lokiselitsoe lits'ebetso tse tloaelehileng tsa demo, ho kenyelletsa le mehlala ea khoutu bakeng sa ho rarolla mathata a fapaneng.

Source: opennet.ru

Eketsa ka tlhaloso