Skip to content

3.3.6#122

Merged
matteobruni merged 6 commits intomainfrom
dev
Mar 13, 2026
Merged

3.3.6#122
matteobruni merged 6 commits intomainfrom
dev

Conversation

@matteobruni
Copy link
Contributor

@matteobruni matteobruni commented Mar 13, 2026

Summary by CodeRabbit

  • Chores
    • Updated multiple development dependencies to latest versions, including ESLint plugins, Vitest testing framework, Node.js type definitions, and related build tools.
    • Enhanced TypeScript compiler configuration with improved support for type checking in test environments and better development workflow compatibility.
    • Optimized build artifact management and project configuration settings to improve overall consistency and maintainability.

Copilot AI review requested due to automatic review settings March 13, 2026 08:26
@coderabbitai
Copy link

coderabbitai bot commented Mar 13, 2026

Warning

Rate limit exceeded

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

⌛ 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: 94def9c6-341f-44f5-9e14-be3b217e6c31

📥 Commits

Reviewing files that changed from the base of the PR and between 8207eac and f78b500.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • .github/workflows/npm-publish.yml
  • package.json
📝 Walkthrough

Walkthrough

This PR updates project dependencies across multiple packages, modifies ESLint's caching strategy from metadata-based to content-based, reorganizes TypeScript type declarations between main and test configurations, and adds ignore patterns for TypeScript build artifacts.

Changes

Cohort / File(s) Summary
Dependency Updates
package.json
Updated eslint-plugin-jsdoc to ^62.8.0, dependency-cruiser to ^17.3.9, @types/node to ^25.5.0, and vitest to ^4.1.0.
ESLint Build Cache
src/build/build-eslint.ts
Changed ESLint cache behavior from metadata-based to content-based caching strategy.
TypeScript Configuration
tsconfig.json, tests/tsconfig.json
Removed "vitest" from main tsconfig types array; added "node" and "vitest" types to test-specific tsconfig for isolated type declarations.
Build Artifact Ignores
.gitignore
Added patterns to ignore TypeScript build artifacts: *.tsbuildinfo and **/*.tsbuildinfo.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • 3.0.14 #74 — Modifies src/build/build-eslint.ts and package.json dependencies in similar manner
  • 3.3.5 #117 — Changes ESLint caching behavior in src/build/build-eslint.ts (related approach to cache strategy)
  • 3.1.1 #89 — Modifies src/build/build-eslint.ts with related ESLint caching adjustments

Suggested labels

size/L

Poem

🐰 Cache content flows anew,
TypeScript types split clean and true,
Build artifacts hidden away,
Dependencies fresh, let's celebrate today! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title '3.3.6' is vague and generic, appearing to be a version number rather than a meaningful description of the changes made in the pull request. Replace the version number with a descriptive title that summarizes the main changes, such as 'Update dependencies and fix ESLint caching strategy' or 'Configure TypeScript types and update build artifacts ignoring'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev
📝 Coding Plan
  • Generate coding plan for human review comments

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

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates tooling/dependencies (likely for the 3.3.6 cycle), and refines TypeScript/ESLint configuration so test-only types and build artifacts are scoped/ignored more appropriately.

Changes:

  • Move Vitest type definitions from the root tsconfig.json into tests/tsconfig.json.
  • Adjust ESLint cache strategy in the programmatic lint step.
  • Bump dev/tooling dependencies (Vitest, dependency-cruiser, eslint-plugin-jsdoc, @types/node) and update ignore patterns for TS build info.

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Removes vitest from root types to avoid leaking test globals/types into non-test compilation.
tests/tsconfig.json Adds types: ["node", "vitest"] to restore test typing under the tests project.
src/build/build-eslint.ts Changes ESLint cache strategy for the CLI build lint step.
package.json Updates tool/dev dependency versions (Vitest, dependency-cruiser, eslint-plugin-jsdoc, @types/node).
pnpm-lock.yaml Lockfile updates reflecting dependency bumps.
.gitignore Adds tsbuildinfo ignores and keeps ESLint cache ignore entry.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@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.

Caution

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

⚠️ Outside diff range comments (1)
package.json (1)

23-24: ⚠️ Potential issue | 🟡 Minor

Inconsistent ESLint cache strategy between npm scripts and build code.

The lint scripts here use --cache-strategy metadata, but src/build/build-eslint.ts (line 20) was changed to use cacheStrategy: "content". Consider aligning both to use the same strategy for consistent behavior.

🔧 Suggested fix
-    "lint": "eslint src --ext .js,.jsx,.ts,.tsx --cache --cache-location .cache/eslint/.eslintcache --cache-strategy metadata --fix",
-    "lint:ci": "eslint src --ext .js,.jsx,.ts,.tsx --cache --cache-location .cache/eslint/.eslintcache --cache-strategy metadata",
+    "lint": "eslint src --ext .js,.jsx,.ts,.tsx --cache --cache-location .cache/eslint/.eslintcache --cache-strategy content --fix",
+    "lint:ci": "eslint src --ext .js,.jsx,.ts,.tsx --cache --cache-location .cache/eslint/.eslintcache --cache-strategy content",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` around lines 23 - 24, The ESLint cache strategy is
inconsistent: package.json scripts "lint" and "lint:ci" use --cache-strategy
metadata while the programmatic runner in build-eslint.ts sets cacheStrategy:
"content"; update one side so both match. Choose the desired strategy (either
"metadata" or "content") and apply it consistently by changing the package.json
scripts' --cache-strategy flag to the same value as cacheStrategy in
build-eslint.ts or vice versa (update cacheStrategy in build-eslint.ts to
"metadata"), ensuring the scripts "lint" and "lint:ci" and the build-eslint.ts
cacheStrategy setting all use the identical strategy string.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@package.json`:
- Around line 23-24: The ESLint cache strategy is inconsistent: package.json
scripts "lint" and "lint:ci" use --cache-strategy metadata while the
programmatic runner in build-eslint.ts sets cacheStrategy: "content"; update one
side so both match. Choose the desired strategy (either "metadata" or "content")
and apply it consistently by changing the package.json scripts' --cache-strategy
flag to the same value as cacheStrategy in build-eslint.ts or vice versa (update
cacheStrategy in build-eslint.ts to "metadata"), ensuring the scripts "lint" and
"lint:ci" and the build-eslint.ts cacheStrategy setting all use the identical
strategy string.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1ed926dc-17ec-4a80-b81d-7be800ad6a13

📥 Commits

Reviewing files that changed from the base of the PR and between 573ef58 and 8207eac.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • .gitignore
  • package.json
  • src/build/build-eslint.ts
  • tests/tsconfig.json
  • tsconfig.json

@pull-request-size pull-request-size bot added size/M and removed size/S labels Mar 13, 2026
@matteobruni matteobruni enabled auto-merge March 13, 2026 08:38
chore(deps): update pnpm/action-setup action to v4.3.0
auto-merge was automatically disabled March 13, 2026 08:49

Pull Request is not mergeable

@matteobruni matteobruni merged commit b209218 into main Mar 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants