Skip to content

chore: update dependencies#12

Merged
gameroman merged 3 commits into
mainfrom
update-dependencies
May 16, 2026
Merged

chore: update dependencies#12
gameroman merged 3 commits into
mainfrom
update-dependencies

Conversation

@gameroman
Copy link
Copy Markdown
Member

@gameroman gameroman commented May 16, 2026

Summary by CodeRabbit

  • Chores

    • Updated dependencies across the workspace including React, Recharts, Radix UI components, and build tools.
    • Updated compatibility dates for cloud worker environments.
    • Refactored configuration and import path management.
  • Refactor

    • Simplified userscript data loading API by removing unnecessary parameters.

Review Change Stack

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 16, 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
base-elements b288133 Commit Preview URL

Branch Preview URL
May 16 2026, 07:02 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 16, 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
colorproven-userscript b288133 Commit Preview URL

Branch Preview URL
May 16 2026, 07:02 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 16, 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
history b288133 Commit Preview URL

Branch Preview URL
May 16 2026, 07:02 PM

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 16, 2026

Warning

Rate limit exceeded

@gameroman has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 54 minutes and 7 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 069887a3-a2b4-4802-93ff-49d4cd6e96bc

📥 Commits

Reviewing files that changed from the base of the PR and between 77a2cc9 and b288133.

📒 Files selected for processing (2)
  • packages/colorproven-userscript/src/index.ts
  • renovate.json
📝 Walkthrough

Walkthrough

This PR modernizes the workspace build configuration and tooling. The apps/history application migrates from ~/ style imports to a new # alias system defined in its package.json. Core dependencies are pinned to specific versions, TypeScript configurations are consolidated to extend shared presets, and Wrangler compatibility dates are updated to May 2026 across all environments.

Changes

Build system and import alias modernization

Layer / File(s) Summary
Import alias contract and configuration
apps/history/package.json, apps/history/tsconfig.json
New #app, #layout, #styles, and #lib/* import aliases are defined; old ~/* path mapping is removed from TypeScript config.
Import alias migration in history app
apps/history/src/pages/index.astro, apps/history/src/layouts/Layout.astro, apps/history/src/components/DataChart.tsx, apps/history/src/components/ui/button.tsx, apps/history/src/components/ui/chart.tsx, apps/history/src/components/ui/checkbox.tsx, apps/history/src/components/ui/slider.tsx
All component, layout, and page imports switched from ~/ to # aliases.
Layout metadata update
apps/history/src/layouts/Layout.astro
Explicit Open Graph meta tags added to layout head.
Dependency version updates across workspace
package.json, apps/history/package.json, apps/icbe/package.json, packages/colorproven-userscript/package.json
Root catalog dependencies pinned for @tailwindcss/vite, astro, tailwindcss, wrangler. Biome and TypeScript bumped. App-specific runtime and dev dependencies updated.
Configuration modernization
.vscode/settings.json, biome.jsonc, renovate.json
Biome uses local schema with file filtering; VS Code configured for Biome JSON formatting; Renovate extends local config preset.
Wrangler compatibility date updates
apps/history/wrangler.jsonc, apps/icbe/wrangler.jsonc, packages/colorproven-userscript/wrangler.jsonc
compatibility_date updated to 2026-05-11 across all Wrangler configurations.
TypeScript configuration consolidation
apps/icbe/tsconfig.json, packages/colorproven-userscript/tsconfig.json
Explicit Bun types added to apps/icbe. Colorproven config simplified to extend shared @gameroman/config/ts preset.
Function signature and parameter cleanup
packages/colorproven-userscript/src/index.ts, apps/icbe/src/actions/submit-elements.ts
loadData() simplified to take no parameters; all callers updated. Unused context parameters renamed to _context in action handlers.

🎯 3 (Moderate) | ⏱️ ~25 minutes

A rabbit hops through the imports with glee,
Aliases from ~ now dance as #! 🐰
Dependencies pinned, configs take flight,
The workspace aligns—all feels quite right! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
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 (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'chore: update dependencies' accurately summarizes the main changes across the changeset, which involve updating multiple dependency versions, paths, and configurations throughout the workspace.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 update-dependencies

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/history/src/components/DataChart.tsx (1)

166-170: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Replace non-null assertion with optional chaining to satisfy Biome's noNonNullAssertion rule.

The ! on dataPointsForChart[dataPointsForChart.length - 1]! triggers a style warning in Biome. Since the guard clause on the previous line ensures dataPointsForChart.length > 0, using optional chaining (?.) is safe and maintains the same behavior.

Suggested patch
-          dataPointsForChart[dataPointsForChart.length - 1]!.timestamp ===
+          dataPointsForChart[dataPointsForChart.length - 1]?.timestamp ===
             timeRange[1]
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/history/src/components/DataChart.tsx` around lines 166 - 170, The
non-null assertion on dataPointsForChart[dataPointsForChart.length - 1]! in
DataChart.tsx violates the noNonNullAssertion rule; change that expression to
use optional chaining (e.g., dataPointsForChart[dataPointsForChart.length -
1]?.timestamp) so the guard (dataPointsForChart.length > 0) behavior is
preserved while removing the `!`; update the conditional that compares to
timeRange[1] to use the optional-chained access to timestamp.
🧹 Nitpick comments (2)
.vscode/settings.json (1)

2-4: ⚡ Quick win

Add a JSONC formatter scope for workspace config files.

Line 2 only configures [json], so *.jsonc files won’t get the same formatter behavior.

Proposed change
 {
   "[json]": {
     "editor.defaultFormatter": "biomejs.biome"
+  },
+  "[jsonc]": {
+    "editor.defaultFormatter": "biomejs.biome"
   }
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.vscode/settings.json around lines 2 - 4, The workspace settings only set a
formatter scope for "[json]" so JSONC files aren't covered; update the settings
to also include a "[jsonc]" scope with the same "editor.defaultFormatter":
"biomejs.biome" (or combine scopes like "[json, jsonc]") so that both JSON and
JSONC workspace config files use the biome formatter.
apps/history/src/components/DataChart.tsx (1)

56-67: ⚡ Quick win

Stabilize helper references used by useMemo.

formatDate and interpolateValue are recreated every render, which is why exhaustive-deps warns. Hoist them outside the component (or wrap with useCallback) to keep dependencies explicit and stable.

Also applies to: 70-76, 78-187

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/history/src/components/DataChart.tsx` around lines 56 - 67, The helper
functions formatDate and interpolateValue are recreated on every render causing
useMemo dependency warnings; either move these functions out of the component
scope (hoist them to module-level) or wrap them with useCallback so their
references are stable, then update any useMemo that lists
formatDate/interpolateValue to rely on the stable references; specifically
locate and modify the functions named formatDate and interpolateValue in
DataChart (and any other duplicated helpers between lines ~70-187) so they are
module-level functions or consts returned from useCallback, ensuring the useMemo
dependency arrays no longer include changing function references.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 13: Update the Astro dependency in package.json from "astro": "6.3.3" to
the stable "6.3.2"; modify the version string for the "astro" entry and then
regenerate your lockfile (npm/yarn/pnpm install) so the lockfile reflects the
pinned stable release.

In `@packages/colorproven-userscript/src/index.ts`:
- Line 18: The function declaration for loadData contains stray backticks after
the opening brace (async function loadData(): Promise<ElementsData> {``) causing
a syntax error; remove the extra backticks so the signature reads async function
loadData(): Promise<ElementsData> { and ensure the function body follows
normally; verify no other stray/backtick characters remain in the file
(particularly near loadData and its surrounding lines) and run the
formatter/linter to confirm the syntax error is resolved.

In `@renovate.json`:
- Line 3: The current renovate.json uses an invalid preset
"local>gameroman/config" which will break Renovate; either restore the standard
preset by changing the "extends" entry back to include "config:recommended" (or
add it alongside local>gameroman/config) so Renovate inherits default rules, or
update the `@gameroman/config` package to be a proper Renovate preset by adding a
valid "renovate-config" field in that package.json; locate the "extends" array
in renovate.json and either reintroduce "config:recommended" or ensure the
referenced package exposes "renovate-config" before merging.

---

Outside diff comments:
In `@apps/history/src/components/DataChart.tsx`:
- Around line 166-170: The non-null assertion on
dataPointsForChart[dataPointsForChart.length - 1]! in DataChart.tsx violates the
noNonNullAssertion rule; change that expression to use optional chaining (e.g.,
dataPointsForChart[dataPointsForChart.length - 1]?.timestamp) so the guard
(dataPointsForChart.length > 0) behavior is preserved while removing the `!`;
update the conditional that compares to timeRange[1] to use the optional-chained
access to timestamp.

---

Nitpick comments:
In @.vscode/settings.json:
- Around line 2-4: The workspace settings only set a formatter scope for
"[json]" so JSONC files aren't covered; update the settings to also include a
"[jsonc]" scope with the same "editor.defaultFormatter": "biomejs.biome" (or
combine scopes like "[json, jsonc]") so that both JSON and JSONC workspace
config files use the biome formatter.

In `@apps/history/src/components/DataChart.tsx`:
- Around line 56-67: The helper functions formatDate and interpolateValue are
recreated on every render causing useMemo dependency warnings; either move these
functions out of the component scope (hoist them to module-level) or wrap them
with useCallback so their references are stable, then update any useMemo that
lists formatDate/interpolateValue to rely on the stable references; specifically
locate and modify the functions named formatDate and interpolateValue in
DataChart (and any other duplicated helpers between lines ~70-187) so they are
module-level functions or consts returned from useCallback, ensuring the useMemo
dependency arrays no longer include changing function references.
🪄 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: 0da0d476-5a2c-495e-9e0c-bf26055c6b70

📥 Commits

Reviewing files that changed from the base of the PR and between e1565fb and 77a2cc9.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (23)
  • .vscode/settings.json
  • apps/history/components.json
  • apps/history/package.json
  • apps/history/src/components/DataChart.tsx
  • apps/history/src/components/ui/button.tsx
  • apps/history/src/components/ui/chart.tsx
  • apps/history/src/components/ui/checkbox.tsx
  • apps/history/src/components/ui/slider.tsx
  • apps/history/src/layouts/Layout.astro
  • apps/history/src/pages/index.astro
  • apps/history/tsconfig.json
  • apps/history/wrangler.jsonc
  • apps/icbe/package.json
  • apps/icbe/src/actions/submit-elements.ts
  • apps/icbe/tsconfig.json
  • apps/icbe/wrangler.jsonc
  • biome.jsonc
  • package.json
  • packages/colorproven-userscript/package.json
  • packages/colorproven-userscript/src/index.ts
  • packages/colorproven-userscript/tsconfig.json
  • packages/colorproven-userscript/wrangler.jsonc
  • renovate.json
💤 Files with no reviewable changes (2)
  • apps/history/components.json
  • apps/history/tsconfig.json

Comment thread package.json
Comment thread packages/colorproven-userscript/src/index.ts Outdated
Comment thread renovate.json Outdated
@gameroman gameroman merged commit 8fa04a0 into main May 16, 2026
5 checks passed
@gameroman gameroman deleted the update-dependencies branch May 20, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant