Skip to content

chore: update dependencies#10

Merged
gameroman merged 2 commits intomainfrom
deps
Mar 30, 2026
Merged

chore: update dependencies#10
gameroman merged 2 commits intomainfrom
deps

Conversation

@gameroman
Copy link
Copy Markdown
Contributor

@gameroman gameroman commented Mar 30, 2026

Summary by CodeRabbit

  • Chores

    • Bumped several developer dependencies and tooling for improved compatibility and performance
    • Updated platform compatibility date
  • Refactor

    • Introduced a top-level import alias map for consistent module paths across the app
    • Consolidated TypeScript config to a shared workspace preset
    • Reworked CLI entry/dispatch structure and packaging exports for a clearer CLI experience
  • Style

    • Moved formatting/lint config into a new JSONC file format

@gameroman gameroman self-assigned this Mar 30, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 30, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
u 3c81b4a Commit Preview URL

Branch Preview URL
Mar 30 2026, 12:16 PM

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 904b3112-41c9-478d-b04e-0419f722a5e0

📥 Commits

Reviewing files that changed from the base of the PR and between bf47b7e and 3c81b4a.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json

📝 Walkthrough

Walkthrough

Replaces ~-based import paths with new # import aliases across the monorepo, adds package-level imports maps, centralizes TypeScript config inheritance, migrates Biome config to biome.jsonc, restructures the usts CLI entrypoints/exports, and bumps several tooling dependencies and manifest export entries.

Changes

Cohort / File(s) Summary
Registry imports & layout
apps/registry/package.json, apps/registry/src/layouts/Layout.astro, apps/registry/src/pages/index.astro, apps/registry/src/pages/404.astro, apps/registry/src/pages/500.astro
Added imports map with #styles, #layout, #components/*; updated Astro files to import via # aliases; removed Open Graph/Twitter comment markers from Layout head.
USTS package manifest & imports
packages/usts/package.json, packages/usts/tsdown.config.ts
Added imports map for #core/* and #config/*; shifted CLI export/subpath from ./bin/cli./cli; added/adjusted bin mapping to ./dist/cli.mjs.
CLI refactor (usts)
packages/usts/src/bin/cli.ts, packages/usts/src/cli/cli.ts, packages/usts/src/cli/index.ts
Removed old runtime-gated bootstrap in src/bin/cli.ts; added new src/cli/cli.ts that implements CLI parsing and command routing; moved environment validation and executable bootstrap into src/cli/index.ts.
Import path updates (usts core/build & cli)
packages/usts/src/cli/build/index.ts, packages/usts/src/core/build/index.ts, packages/usts/src/core/build/meta-header.ts, packages/usts/src/core/build/options.ts, packages/usts/src/core/build/watch.ts
Replaced ~ path imports with #config/* and #core/* aliases for runtime and type-only imports.
TypeScript configs
apps/registry/tsconfig.json, packages/usts/tsconfig.json, tsconfig.json
Removed package-level ~/* path alias from registry tsconfig; packages/usts/tsconfig.json now extends root ../../tsconfig.json; added root tsconfig.json that extends @gameroman/config/tsconfig.
Biome config file change
biome.json, biome.jsonc
Deleted biome.json; added biome.jsonc that extends @gameroman/config/biome and declares the Biome schema.
Dependency/tooling bumps & config
package.json, apps/registry/wrangler.jsonc
Bumped various workspace and root devDependency versions (Astro, plugins, wrangler, biome tooling, @gameroman/config); updated compatibility_date in wrangler to 2026-03-17.

Sequence Diagram(s)

sequenceDiagram
    participant Runtime as Runtime Environment
    participant Entry as src/cli/index (bootstrap)
    participant CLI as src/cli/cli (parser)
    participant BuildMod as build module

    Runtime->>Entry: Execute package binary (process.argv)
    Entry->>Entry: Validate environment (Bun semver OR Node >=24)
    alt Environment valid
        Entry->>CLI: Import ./cli and call cli(process.argv)
        CLI->>CLI: parseArgs -> determine command & flags
        alt command == build
            CLI->>BuildMod: dynamic import ./build/index.js
            CLI->>BuildMod: invoke build({ watch })
            BuildMod-->>CLI: build result / errors
        else command == help
            CLI-->>Runtime: print help
        end
        CLI-->>Entry: finish
        Entry->>Runtime: exit 0
    else Environment invalid
        Entry-->>Runtime: print error & exit 1
    end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐰
From tildes I leap to hashes bright,
Paths aligned beneath moonlight,
A CLI reborn to parse and run,
Configs gathered, updates done,
I hop away — the code looks light! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'chore: update dependencies' only partially describes the changeset. While dependency updates are present, the changes include significant refactoring: import alias migration (~/* to #*), CLI restructuring, tsconfig consolidation, and Biome config migration—making the title misleading about the scope. Use a more accurate title like 'chore: update dependencies and refactor import aliases' or 'refactor: modernize import system and update dependencies' to reflect all major changes.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deps

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
package.json (1)

42-44: Consider pinning to specific versions instead of latest.

Using "latest" for picomatch and @cloudflare/vite-plugin in overrides can lead to non-deterministic builds and unexpected breaking changes. Consider pinning to specific versions after verifying compatibility.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` around lines 42 - 44, The overrides block currently pins
"picomatch" and "@cloudflare/vite-plugin" to "latest", which causes
non-deterministic builds; replace these with specific, tested version strings
(e.g., exact semver like "6.0.4" or a caret-locked version after verifying
compatibility) in the package.json overrides so builds are reproducible—update
the "picomatch" and "@cloudflare/vite-plugin" entries and run your lockfile
install (npm/yarn/pnpm) to regenerate the lockfile and verify the project builds
and tests pass.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/usts/src/cli/index.ts`:
- Line 21: Replace unconditional process.exit calls in the CLI entry (remove
calls to process.exit() and any process.exit(0)) and refactor the top-level
invocation to an async/await flow with a single top-level try/catch that logs
errors (including the thrown "Unsupported Node version. Please upgrade Node.\n"
error) and sets process.exitCode = 1 on failure; ensure successful completion
does not call process.exit so watch-mode can run and I/O can flush, and remove
the outer .catch that currently silently exits in favor of the centralized error
handler that logs the error before setting process.exitCode.

In `@packages/usts/tsdown.config.ts`:
- Around line 10-13: Remove the unsupported exports.bin setting from the tsdown
config: delete any usage of "bin" inside the exports object and keep only
supported keys (e.g., exports.customExports). Instead, define CLI binaries in
package.json's "bin" field and, if you need standalone executables, enable exe:
true in the relevant tsdown target (use exe: true available since v0.21.0);
update references in tsdown.config.ts around the exports object and any build
targets that attempted to use exports.bin or relied on it.

---

Nitpick comments:
In `@package.json`:
- Around line 42-44: The overrides block currently pins "picomatch" and
"@cloudflare/vite-plugin" to "latest", which causes non-deterministic builds;
replace these with specific, tested version strings (e.g., exact semver like
"6.0.4" or a caret-locked version after verifying compatibility) in the
package.json overrides so builds are reproducible—update the "picomatch" and
"@cloudflare/vite-plugin" entries and run your lockfile install (npm/yarn/pnpm)
to regenerate the lockfile and verify the project builds and tests pass.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 54a6b4b4-3faa-439f-a547-0f5eed705b25

📥 Commits

Reviewing files that changed from the base of the PR and between fa6069f and bf47b7e.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (22)
  • apps/registry/package.json
  • apps/registry/src/layouts/Layout.astro
  • apps/registry/src/pages/404.astro
  • apps/registry/src/pages/500.astro
  • apps/registry/src/pages/index.astro
  • apps/registry/tsconfig.json
  • apps/registry/wrangler.jsonc
  • biome.json
  • biome.jsonc
  • package.json
  • packages/usts/package.json
  • packages/usts/src/bin/cli.ts
  • packages/usts/src/cli/build/index.ts
  • packages/usts/src/cli/cli.ts
  • packages/usts/src/cli/index.ts
  • packages/usts/src/core/build/index.ts
  • packages/usts/src/core/build/meta-header.ts
  • packages/usts/src/core/build/options.ts
  • packages/usts/src/core/build/watch.ts
  • packages/usts/tsconfig.json
  • packages/usts/tsdown.config.ts
  • tsconfig.json
💤 Files with no reviewable changes (3)
  • apps/registry/tsconfig.json
  • biome.json
  • packages/usts/src/bin/cli.ts

@gameroman gameroman added the chore Routine tasks, maintenance, or tooling changes that don't modify source or test files label Mar 30, 2026
@gameroman gameroman merged commit e44c604 into main Mar 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Routine tasks, maintenance, or tooling changes that don't modify source or test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant