Skip to content

NativeBoat 0.1.0-alpha.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:48
· 227 commits to main since this release
83b56bc
  • NativeBoat is open source under the MIT license. Its source, releases and
    documentation are in the nativeboat
    repository, and built applications' THIRD-PARTY-NOTICES.txt includes
    NativeBoat's own MIT notice.
  • HTTPS responses stream as they arrive: data events follow the
    download, a response read slowly pauses it, and large downloads such as
    updates no longer wait whole in memory. rejectUnauthorized: false, on
    the request or its agent, and NODE_TLS_REJECT_UNAUTHORIZED=0 accept
    server certificates Windows does not trust, as in Node.
  • Form controls check their constraints as Chromium does: required
    (radio groups and select placeholders included), pattern, email
    addresses and URLs, number and date ranges and number steps, with
    Chromium's messages in validationMessage. :valid and :invalid
    match controls, forms and fieldsets, and setCustomValidity makes a
    control invalid.
  • -webkit-text-fill-color fills text, font-kerning: none keeps glyph
    pairs unkerned, and -webkit-user-drag decides whether pressing and
    moving over an element drags it: none keeps images and links still and
    element drags any element.
  • Drawn selects place their arrow where Chromium does, 8.5 pixels inside
    the right border whatever the padding, and checkboxes and radio buttons
    made fully transparent, as switches lay them over their track, show the
    page beneath them and still take the clicks.
  • ::before and ::after boxes in the flow paint their backgrounds and
    borders, so an empty dot drawn with content: "" shows.
  • Text fields with transparent text show what the page draws beneath
    them, with their caret and placeholder, as fields laid over a
    highlighted copy of their text expect; translucent field text blends as
    CSS colors do.
  • text-underline-offset places underlines that far below the baseline.
  • In preloads, process.nextTick callbacks the page's code queues run
    after the page has rendered, as on Electron's next Node turn, so work a
    library starts that way no longer holds back the page's next frame.
  • Main processes and preloads have Node's global performance: now(),
    timeOrigin, marks and measures with their entries, and toJSON().
  • nativeboat build --config <FILE> reads a settings file for the native
    build, so the project needs no change: its publish names the feed native
    builds update from, before package.json's nativeboat.publish.
  • Checkboxes and radio buttons look as in Chromium, and fill with the
    page's accent-color when checked.
  • The pointer over a form control moves over the page: :hover styles,
    mousemove, mouseover and mouseenter events and the hover look of
    checkboxes follow it, and controls show the cursor their style asks
    for, such as cursor: pointer.
  • child_process.spawnSync works as in Node: it returns the process's
    pid, status, stdout, stderr and output, as Buffers or in the
    encoding asked for, and a program that cannot start gives an error
    with Node's code, such as ENOENT.
  • A label the pointer is over or presses hovers or presses its control
    too, as in Chromium: :hover and :active styles and the hover look of
    a checkbox follow the pointer over its label.
  • nativeboat analyze reports React as Partial and display: contents as
    Supported, as the compatibility list does, and its notes for web fonts
    and web notifications say what works.
  • Applications that keep only some Electron locales with
    electron-builder's electronLanguages take their locale from those, as
    Electron does from the resources it ships: an application keeping only
    en-US reports en-US from app.getLocale() and navigator.language
    on a Chinese Windows, and uses English default fonts. monospace is
    Courier New before Electron 36, which made it Consolas where text uses
    ClearType.
  • Single-line text fields stay in the middle of their line when the page
    around them scrolls or changes size; their text and placeholder used to
    jump to the top of the line.
  • Buttons laid out as blocks or flex containers in the flow of text are
    as wide as their content when their width is auto, as in Chromium,
    rather than as wide as their container.
  • Styled selects are as tall as in Chromium: their label's line is the
    height of the primary font's, whatever fonts the label falls back to,
    with a device pixel above and below it unless appearance: none.
  • app.getPreferredSystemLanguages() lists the languages of Windows'
    language settings, such as zh-Hans-CN, and pages' navigator.languages
    is the application's locale followed by them, as in Electron.
  • nativeboat build prints the project's warnings, such as electron-builder
    settings it does not use. Applications that open no windows, such as tray
    applications, are not warned that no page was found.
  • Message boxes look and answer as Electron's: a message without a
    detail is the dialog's content, buttons named OK, Cancel, Yes, No,
    Retry or Close are the dialog's own and other buttons are command links
    unless noLink is set, an empty title shows the application's name,
    defaultId and cancelId take Electron's defaults, and
    checkboxLabel adds a checkbox whose state the result reports.
    dialog.showOpenDialogSync, showSaveDialogSync and
    showMessageBoxSync are available, and a canceled save dialog gives an
    empty filePath.
  • safeStorage encrypts and decrypts as Electron does on Windows: its key
    is protected for the user by Windows and kept in Local State in the
    user data directory, so text an Electron build of the application
    encrypted decrypts in the native build. powerSaveBlocker keeps the
    computer, or also the display, from sleeping.
  • powerMonitor reports idle time and state, whether the computer runs on
    its battery, and emits suspend, resume, on-ac, on-battery,
    lock-screen and unlock-screen. systemPreferences gives the accent
    color, Windows' system colors, animation settings and media access, and
    emits accent-color-changed and color-changed, as in Electron.
  • The webContents module finds the contents of the application's
    windows: getAllWebContents, fromId and getFocusedWebContents.
  • Windows take the icon option and setIcon, and windows without one
    show the application's icon. autoHideMenuBar hides the menu bar until
    Alt shows it, with setMenuBarVisibility, setAutoHideMenuBar,
    isMenuBarVisible and isMenuBarAutoHide. The transparent,
    alwaysOnTop and skipTaskbar options work, and Electron's macOS-only
    window methods, such as setSimpleFullScreen and isDocumentEdited,
    exist and behave as Electron's do on Windows.
  • Menus look like Electron's: rounded corners, Chromium's shadow, and
    shortcuts and submenu arrows sharing the right column.
  • Rounded corners, elliptical ones included, are antialiased as in
    Chromium, for backgrounds, borders and clipped content. Thin strokes,
    such as those of icons, keep their weight.
  • SVG files work as images again, in <img> and as backgrounds, drawn as
    vectors at any size.
  • Videos show their poster or first frame and report their duration and
    loading events, with Chromium's colors and scaling.
  • nativeImage behaves as Electron's on Windows: JPEG and icon files,
    thumbnails at the size asked for, resize and crop as Chromium does
    them, toJPEG, scale factors and representations, and Electron's
    errors.
  • Shadow DOM: attachShadow, slots, and styles, layout and painting of
    shadow trees, with :host and ::slotted(). Custom elements:
    customElements.define, upgrades and the lifecycle callbacks.
    :lang(), :dir() and :nth-child(An+B of S) match, and @supports
    accepts declarations whose values use var().
  • Pages can start dedicated workers. They run on the page's thread, each
    with a worker global of its own, and exchange messages and errors with
    the page. A worker can be made from a function's text, since
    Function.prototype.toString returns the source of functions a program
    reads as text.
  • Message ports: MessageChannel, MessagePort and BroadcastChannel
    in Node code and in worker_threads. Electron's MessageChannelMain
    ports pass between the main process, preloads and pages through
    webContents.postMessage, and utilityProcess and
    child_process.fork run modules as child processes with message
    channels.
  • Node's crypto module runs on Windows' cryptography (CNG): MD5, SHA-1
    and SHA-2 hashes, HMACs, PBKDF2 and HKDF, AES in ECB, CBC, CTR and GCM
    modes, random values, timingSafeEqual, secret keys and X.509
    certificates. Every page and process has the Web Crypto API:
    getRandomValues, and crypto.subtle with SHA digests, HMAC, AES-GCM,
    AES-CBC, AES-CTR, PBKDF2 and HKDF; other algorithms reject with
    NotSupportedError.
  • Main processes and preloads have Node's WebSocket client for ws:
    and wss: URLs, through the system's TLS and proxy settings.
  • @vscode/sqlite3 databases run on Windows' own SQLite (3.38 or later)
    when the system has it, and otherwise on a built-in engine that covers
    tables, indexes, constraints, queries, upserts, transactions, pragmas and
    ALTER TABLE ... ADD COLUMN and RENAME TO.
  • WebAssembly modules load and run, with the JavaScript API over them.
    They are interpreted, so they run slower than in Electron.
  • More of Node: net servers and clients over Windows named pipes,
    vm contexts (without evaluating code strings), inspector (with no
    debugger attached), module resolve hooks and createRequire,
    diagnostics_channel, perf_hooks, v8, dns, util/types,
    process.memoryUsage, cpuUsage, uptime, availableMemory,
    release and config, and a navigator global outside pages. A child
    process's output streams give Buffers until setEncoding is called.
  • More of Electron: the protocol module's handle,
    registerFileProtocol, registerBufferProtocol and
    registerStringProtocol serve style sheets, images, fonts, media and
    fetch to pages. app has enableSandbox, the logs path, focus,
    metrics, GPU status, jump list settings, accessibility support, proxies
    and protocol clients, and every window shares one default session.
    WebContentsView builds with a warning and throws if used.
  • nativeboat analyze reports Windows named pipes in net, the system
    SQLite behind @vscode/sqlite3, and top-level await as Partial.
  • Native addons the runtime provides in place of their binaries:
    @vscode/windows-registry, @vscode/deviceid, @vscode/windows-mutex,
    @vscode/policy-watcher, @vscode/windows-process-tree,
    @vscode/windows-ca-certs, @vscode/os-proxy-resolver,
    @vscode/spdlog, @vscode/sqlite3, @vscode/native-watchdog,
    @parcel/watcher, node-pty and native-is-elevated.
  • JavaScript and TypeScript: top-level await (a dynamic import() waits
    for the module, a static import does not), using and await using
    declarations, TypeScript classes with experimentalDecorators, enums
    and namespaces as tsc compiles them, import x = require(), and
    import() of a specifier computed when the program runs, among the
    modules the build can find. A require the build cannot satisfy warns
    at build time and throws MODULE_NOT_FOUND when it runs, as in Node.
  • Projects: plugin packages, named by folder globs in the plugins
    setting of a settings file or package.json's nativeboat key, are
    found, get their dependencies installed and compile with the
    application. Projects that download Electron themselves are recognized,
    and gulp or grunt tasks that produce files the project's stylesheets
    name run before compiling. An application's modules and installed
    packages run from the executable's folder, as a packaged application's
    do, with the files its production dependencies read at run time beside
    them.
  • Large applications build: very large modules and long chains of
    operators compile, and long toolchain command lines no longer fail. The
    build cache takes about half the disk it did, and rebuilding one part
    of an application no longer recompiles the parts that depend on it.
    NATIVEBOAT_KEEP_GOING reports every part that fails to compile instead
    of stopping at the first.
  • fs.watch and @parcel/watcher report changes made right after a watch
    starts; on a busy computer the first changes could go unreported. A
    forked child that sends a message and then disconnects, as in
    process.send(message, () => process.disconnect()), delivers the
    message before its parent sees disconnect.
  • nativeboat analyze judges a window's webContents and the default
    session member by member, reports navigator.clipboard.readText and
    writeText as supported and the rest of the Clipboard API as partial,
    leaves Vue's :deep(), :slotted() and :global() to Vue, and parses
    TypeScript as TypeScript.

Download nativeboat-0.1.0-alpha.5-windows-x64.zip, extract it and add the folder to your PATH; see the README. SHA256SUMS.txt holds the archive's checksum.