Skip to content

v1.1.1

Choose a tag to compare

@3M1RY33T 3M1RY33T released this 28 May 02:04
· 14 commits to main since this release
2a4c2e6

Urthreads v1.1.1

This release improves setup safety, environment syncing, dashboard installation, cleanup behavior, and CLI polish.

Highlights

  • Added hosted dashboard build/update commands:
    • urthreads dashboard set <local-path> <endpoint>
    • urthreads dashboard build
    • urthreads dashboard update
  • Dashboard builds now remember DASHBOARD_LOCAL_PATH and DASHBOARD_ENDPOINT in .env.
  • dashboard build prompts for missing path settings and asks before creating a missing output path.
  • Cleanup now removes copied dashboard files, while preserving directories and unrelated site files.
  • Allowed origins now sync more safely between .env and wrangler.toml.
  • admin-session now updates both .env and wrangler.toml, then offers to deploy.
  • clean-all now cancels fully if Worker or D1 deletion is cancelled, and prints commands for finishing cleanup later.
  • Removed test-only CLI commands for manually creating/updating comments and forcing like counts.

Setup And Environment

  • urthreads env add-origin now preserves existing origins across .env and wrangler.toml.
  • Origins can be added to staging and production together:
urthreads env add-origin https://example.com --staging --production
  • Setup defaults allowed origins to localhost-only values for extra safety.
  • Shared values such as Worker URL, Worker name, D1 values, admin session TTL, and runtime settings sync to wrangler.toml when applicable.

Dashboard

You can now install the dashboard into a static site output directory directly from the CLI:

urthreads dashboard set ./public urthreads

Refresh that same dashboard after package updates:

urthreads dashboard build

If no saved dashboard path exists, dashboard build prompts for one and saves it. If the output path does not exist, the CLI asks before creating it.

Cleanup

Back-out commands now include copied dashboard files in cleanup:

urthreads clean
urthreads clean-all

Dashboard cleanup removes only known urthreads dashboard files and copied urthreads assets. It does not remove dashboard directories, asset directories, or unrelated site files.

CLI Cleanup

Removed test-only commands from the public CLI:

  • set-like
  • increment-like
  • create-comment
  • update-comment

Public comment creation through the browser client and Worker API is unchanged.

Validation

Validated with:

npm run check
npm test