Skip to content

cli v0.4.0

Choose a tag to compare

@github-actions github-actions released this 14 Aug 00:52
· 3 commits to main since this release
2949a59

Minor Changes

  • BREAKING CHANGE: Added an optional static remix.json configuration file for Remix CLI commands, covering database adapters, migrations, and seeds; every remix test setting; and strict mode for remix doctor. The CLI parses the file as JSONC, resolves its relative paths and globs from the config file's directory, and lets explicit flags and positional arguments take precedence. Use the global --config <path> option to select another file. Negative flags such as remix doctor --no-strict, --no-watch, --no-coverage, --no-quiet, --no-browser.open, and --no-browser.echo can override configured true values. The former test-specific meaning of --config and automatic remix-test.config.ts or .js discovery have been removed; move those values under remix.json#test (see #11628, #11638, #11639).

  • Added remix db commands for wiping, migrating, inspecting, seeding, and resetting the current app database. Static remix.json configuration selects a built-in SQLite, PostgreSQL, or MySQL adapter, names environment-backed connection values, and configures migrations, the journal table, and an optional SQL seed file. Database commands find the nearest config from a project subdirectory, while global --config and command flags remain authoritative. Destructive commands (remix db wipe and remix db reset) require --force (see #11608, #11639).

  • New projects now include an npm run hmr command and hmr.ts runner

  • Added complete remix test argument parsing, help, validation, and shell completion to the main Remix CLI. The command delegates typed runner options to @remix-run/test/cli while preserving positional globs, repeated flags, aliases, configuration precedence, coverage, filtering, and watch behavior (see #11623).

Patch Changes

  • Limit remix doctor action checks to the directory and controller paths required by app/routes.ts. Unrelated files and directories under app/actions are ignored, and remix doctor --fix no longer generates action controllers.

  • Scaffold browser-reachable source in colocated public/ directories throughout app/, with the browser runtime entry at app/actions/public/entry.ts, while keeping the shared app/routes.ts contract browser-readable.

  • Bumped @remix-run/* dependencies: