Skip to content

Releases: danielloader/flashpoint

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 02 Oct 17:02
cc2c169

flashpoint v0.4.1

Fixes

  • An unknown word no longer starts a stack. flashpoint relaod used to pass relaod to your server and launch everything. It now exits 2 with unknown command "relaod" (did you mean reload?). Server arguments go after --.
  • api.env / web.env can hold defaults. Values expand $VAR, ${VAR} and ${VAR:-default} against the caller's environment, so DATABASE_URL = "${DATABASE_URL:-postgres://…}" is a default the caller can override. A plain value still overrides.

New

  • flashpoint status prints the running instance's state and URLs. Pass --json to get GET /status as JSON. It exits 4 when nothing is running.

Changelog

  • cc2c169 fix: reject unknown commands; add status; expand env

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.4.1, or download a binary below (macOS and Linux, amd64 and arm64).

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 16:47
bc70d79

flashpoint v0.4.0

Ports are declared, not injected. flashpoint no longer sets PORT, FLASHPOINT_API_URL, FLASHPOINT_WEB_URL or FLASHPOINT_WEB_PORT, and no longer adds --port/--strictPort to your dev script. Your app runs exactly as it does without flashpoint, with its own ports and its own Vite proxy config.

Tell flashpoint which ports your app listens on with --api-port / --web-port or api.port / web.port in flashpoint.toml. They default to 8080 and 5173, so most projects need no config. flashpoint uses them only to observe:

  • the status bar URLs;
  • readiness, which is the port accepting a connection;
  • waiting for the API port before a restart;
  • the 503 page while no server is up.

If a port never comes up, it says "API not listening on :8080 (check --api-port)".

Upgrading

  • If your server read PORT, or your Vite config read FLASHPOINT_API_URL, give them their own values, then tell flashpoint the ports.
  • api.health, api.host, api.port_env, the FLASHPOINT_API_PORT / FLASHPOINT_WEB_PORT variables, port 0 and the {port} / {api_url} placeholders in web.command are gone.

Changelog

  • 6169e68 feat!: declare the app's ports instead of injecting them

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.4.0, or download a binary below (macOS and Linux, amd64 and arm64).

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 02 Oct 16:03
70a9ce7

flashpoint v0.3.1

Removes the macOS pre-run of each new build. A restart is now just: build, stop the old server, start the new one. To keep the gap short on macOS, enable your terminal under System Settings → Privacy & Security → Developer Tools; macOS otherwise scans the first launch of each new binary (about 0.3–1s).

Changelog

  • 70a9ce7 refactor: drop the macOS pre-run of new builds

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.3.1, or download a binary below (macOS and Linux, amd64 and arm64).

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 15:54
1bc2815

flashpoint v0.3.0

Simpler restarts. On save, flashpoint builds the new server while the old one keeps serving. Then it stops the old one, waits for the port, and starts the new one on the same port. The gap is the new server's start-up, typically a few tens of milliseconds.

Removed

  • The socket handoff: the github.com/danielloader/flashpoint/listen package, fd-3 inheritance and the LISTEN_FDS variables. Servers just bind PORT, so delete the listen import and use net.Listen or http.ListenAndServe.
  • The browser-reload Vite plugin (flashpoint-reload.ts) and FLASHPOINT_RELOAD_FILE.

Kept: build-while-serving, the old server staying up on a failed build, the go list watch set, the identical-binary skip, the TUI, SIGUSR1 / flashpoint reload [--wait] / the control socket, per-stream log files, and the 503 page while no server runs.

Changelog

  • 1bc2815 feat!: plain stop-and-start restarts

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.3.0, or download a binary below (macOS and Linux, amd64 and arm64).

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 14:58
4fa57e9

Changelog

  • b14cdb9 feat: reload on request and per-stream log files

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.2.0, or download a binary below (macOS and Linux, amd64 and arm64).

v0.1.0

Choose a tag to compare

@danielloader danielloader released this 02 Oct 14:29
e86af26

Changelog

  • adfdef5 feat: add a basic Go + Vite React example
  • ec8ae07 feat: hot-reload runner for Go APIs and Vite apps
  • e86af26 fix(example): wait for Shutdown before exiting

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.1.0, or download a binary below (macOS and Linux, amd64 and arm64).