Skip to content

0.1.0-beta.7

Pre-release
Pre-release

Choose a tag to compare

@WillTDA WillTDA released this 03 Oct 23:47
· 46 commits to master since this release
24669d5

@diamonddigitaldev/electron-kit | Beta Preview (v0.1.0-beta.7)

Important

A beta: the API can still change between 0.x versions. It's published under npm's next tag.

An app can keep a launch it handles itself out of files:opened, and the log never names the files an app is opened with. The log kept on disk has a size limit. An app on 0.1.0-beta.6 runs on it without a change.

npm install @diamonddigitaldev/electron-kit@next

New

  • start({ files: { except: ["--upload"] } }): a launch, first or second, with one of those switches is the app's to handle, so none of its files reach the page as files:opened. Dropgate's "Share with Dropgate" (the file, then --upload) uploads in the background instead. A second launch still brings the main window back. files: true is as before.

Changed

  • The log says how many files the app was opened with, never which. The line kept the files' names after redaction, and a file's name can say as much about a person as its folder.
  • The memory log's debug.log, kept on disk, holds at most twice the lines kept in memory after the banner. Past that, it's written again from the banner and the run's last lines, so a long run can't grow it without end.

Docs

  • The Main Process: One Instance and Files (files.except), and The Log (the file's limit).

The docs are in the repository: start at docs/README.md.

Found something wrong? Open an issue.