Vydanie Electron 5.0.0, platformy na vytváranie aplikácií založených na engine Chromium

Pripravené uvedenie platformy Electron 5.0.0, ktorá poskytuje samostatný framework na vývoj multiplatformových používateľských aplikácií, využívajúci komponenty Chromium, V8 a Node.js ako základ. Významná zmena čísla verzie súvisí s aktualizáciou na kódovú základňu Chromium 73, platformy Node.js 12 a JavaScript engine V8 7.3. Previously očakávané ukončenie podpory 32-bitových systémov Linux je zatiaľ odložené a vydanie
5.0 including je dostupný v 32-bitových zostaveniach.

Medzi zmien v API špecifických pre Electron:

  • The API continues the translation of asynchronous handlers that previously used callback calls into a form based on the mechanism Promise. Support for Promise has been added to the Cookies API and to the methods app.getFileIcon, contentTracing.[getCategories| startRecording| stopRecording], debugger.sendCommand,
    shell.openExternal, webContents.[loadFile| loadURL| zoomLevel| zoomFactor] and win.capturePage;
  • The ability to retrieve information about system colors has been added in
    macOS using calls to systemPreferences.getAccentColor,
    systemPreferences.getColor and systemPreferences.getSystemColor;
  • A process.getProcessMemoryInfo function has been added, providing statistics on memory consumption by the current process;
  • In the 'remote' module, which represents the IPC mechanism for interaction between the rendering process of the current page and the main process, additional capabilities have been added for filtering external requests to gain full control over IPC access. Support for filters has been added for calls to remote.getBuiltin, remote.getCurrentWindow, remote.getCurrentWebContents and webview.getWebContents;
  • The ability to manage multiple instances of BrowserViews from a single BrowserWindow object has been added;
  • In packaged applications, the addition of a default application menu is ensured, even if the application does not explicitly define this menu and does not add a window close event handler;
  • Mixed sandbox isolation mode is activated by default, where both the rendering process and the sandbox are started;
  • An environment variable 'ELECTRON_DISABLE_SANDBOX' has been added to disable sandbox isolation, for example, if the application is already running in a Docker-based container;
  • To enhance security, nodeIntegration and webviewTag settings are disabled by default;
  • The Spellchecker API has been transitioned to a non-blocking mode, where the result of the check is returned asynchronously;
  • The following have been deprecated and will be removed in the next release:
    the mksnapshot executables for arm and arm64, ServiceWorker in WebContents, calls to webFrame.setIsolated*, the ability to directly call modules electron.screen,
    child_process,
    fs,
    os and path (now needs to be called through remote.require using a handler in isolated WebContents).

Pripomeňme, že Electron umožňuje vytvárať rôzne grafické aplikácie s využitím webových technológií, ktorých logika fungovania je definovaná na JavaScripte, HTML a CSS a funkcionalita môže byť rozšírená prostredníctvom systému doplnkov. Vývojárom sú k dispozícii moduly Node.js, ako aj rozšírené API na vytváranie natívnych dialógov, integráciu aplikácií, tvorbu kontextových ponúk, integráciu so systémom upozornení, manipuláciu s oknami a interakciu s pod systémami Chromium.

Na rozdiel od webových aplikácií, programy postavené na Electron sú dodávané ako samostatné spustiteľné súbory, nezávislé od prehliadača. Vývojár sa tak nemusí starať o portovanie aplikácie pre rôzne platformy, Electron zabezpečuje možnosť zostavenia pre všetky systémové platformy podporované v Chromium. Electron tiež poskytuje nástroje na organizáciu automatického dodávania a inštalácie aktualizácií (aktualizácie je možné dodávať buď zo samostatného servera, alebo priamo z GitHubu).

Z programov vybudovaných na platforme Electron môžeme spomenúť editor Atom, emailového klienta Nylas, nástroj na prácu s Git GitKraken, systém na analýzu a vizualizáciu SQL dotazov Wagon, systém na blogovanie WordPress Desktop, BitTorrent klient WebTorrent Desktop, ako aj oficiálne klienti pre takéto služby ako Skype, Signal, Slack, Basecamp, Twitch, Ghost, Wire, Wrike, Visual Studio Code a Discord. Celkovo v katalógu programov Electron predstavuje 760 applications. To simplify the development of new applications, a set of templates has been prepared. demonštračných aplikácií, ktoré obsahujú príklady kódu na riešenie rôznych úloh.

Zdroj: opennet.ru

Kúpte si spoľahlivý hosting pre webové stránky s ochranou proti DDoS, VPS VDS servery 🔥 Kúpte si spoľahlivý hosting pre webové stránky s ochranou proti DDoS, VPS VDS servery | ProHoster