Skip to content

Releases

NativeBoat 0.1.0-alpha.7

Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 21:57
9fd1048
  • Bundled applications (electron-vite, vite-plugin-electron, Forge with
    Vite) ship only the files their main process, preloads and forked
    modules name: MarkText's output is back to 27 files from 1,191 with
    0.1.0-alpha.6. In every layout, test folders and their fixtures,
    packages' style sheet sources and native build leftovers stay behind,
    and the application's files exclusions apply to package files, as
    electron-builder applies them.
  • The application's files are in resources\app beside the executable,
    as in a packaged Electron application: app.getAppPath(), __dirname
    and module paths point there. extraResources are in resources and
    extraFiles beside the executable.
  • Scripts that pages build as text from a template literal and insert as
    <script> elements run, compiled ahead of time, as VS Code's webviews
    define acquireVsCodeApi.
  • An inserted classic script runs in a task of its own and fires load
    right after, so AMD loaders get each script's define.
  • fork() children get the module path in process.argv, as in Node.
  • TypeScript that its build compiles to CommonJS calls the module's
    require also when it declares require for TypeScript.
  • CSS: grid-template-areas and named grid lines in grid-area,
    grid-row and grid-column; border-inline-* and border-block-*;
    Chromium's -webkit-margin-* and -webkit-padding-* names. Properties
    with -moz-, -ms- and -o- prefixes are ignored, as Chromium
    ignores them.
  • Text in web fonts that asks for OpenType features, such as
    font-variant-numeric: tabular-nums, is drawn in its font without the
    features instead of as missing-glyph boxes.
  • Repainting a small area, such as a caret's blink, draws only what is in
    that area.

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

NativeBoat 0.1.0-alpha.6

Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 01:40
d30befb
  • Fixes builds that failed with error[E0502]: cannot borrow *realm as mutable in a generated crate, as MarkText's did with 0.1.0-alpha.5:
    functions whose source text the program reads compile again.
  • Pages show <iframe> documents: each frame runs its document's compiled
    scripts in a realm of its own, painted and sized at the frame's box,
    with contentWindow and contentDocument for same-origin frames,
    postMessage between frames, load events, requestAnimationFrame and
    document.open, write and close. Frames are 300 by 150 pixels with
    an inset border unless styled. The documents setting names HTML files
    that pages show in frames by URLs they build while they run.
  • Service workers: pages register them with navigator.serviceWorker,
    and a worker installs, activates, claims its pages and exchanges
    messages with them. Its fetch event answers the fetch() calls,
    images and linked style sheets of the pages it controls, and it has
    clients and in-memory caches. Markup a page writes with
    document.write loads its images, style sheets and handlers.
  • Functions run in the realm that made them, so a frame calling its
    page's listener sees the page's globals.
  • CSS container queries: container-type, container-name, the
    container shorthand and @container rules with size conditions, also
    for ::before and ::after.
  • PerformanceObserver reports the page's marks and measures.
  • net.isOnline() and net.online report whether Windows has a network
    connection, and windows-foreground-love and @vscode/fs-copyfile are
    supported native modules.
  • Paths through app.asar or *.asar.unpacked read the folders those
    archives were packed from, as packaged Electron applications expect.
  • The forks setting names modules a program starts with fork() by
    paths it builds while it runs, and forked modules get files at those
    paths, so programs that check a module exists before they fork it work.
  • The scripts setting names scripts that pages load by URLs they build
    while they run, such as those of HTML the application generates, with
    the source each compiles from.
  • createRequire(import.meta.url) kept as a value, as esbuild's ESM
    bundles keep it, requires modules by name when the application runs.
  • Packages around plugin packages that keep what they share, such as an
    editor's extensions/node_modules, get their dependencies installed.

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

NativeBoat 0.1.0-alpha.5

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:48
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 `protoc...
Read more