Skip to content

3.3.5#117

Merged
matteobruni merged 7 commits intomainfrom
dev
Mar 11, 2026
Merged

3.3.5#117
matteobruni merged 7 commits intomainfrom
dev

Conversation

@matteobruni
Copy link
Contributor

@matteobruni matteobruni commented Mar 11, 2026

Summary by CodeRabbit

  • Chores

    • Bumped version to 3.3.5
    • Updated package manager to pnpm@10.32.1
    • Updated internal build dependencies to ^3.3.2
    • Added ESLint cache files to .gitignore
  • Refactor

    • Optimized build process to write files only when content changes
    • Enhanced ESLint caching for improved build performance
    • Improved build utility code consistency and reduced duplication

Copilot AI review requested due to automatic review settings March 11, 2026 14:16
@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

Warning

Rate limit exceeded

@matteobruni has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 37 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: 764afb2f-4da9-4a8f-84bd-6a1ceff8aabd

📥 Commits

Reviewing files that changed from the base of the PR and between 6eb62d3 and 5d34c6a.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • .gitignore
  • files/empty-project/package.json
  • package.json
  • src/build/build-distfiles.ts
  • src/build/build-eslint.ts
  • src/build/build-prettier.ts
📝 Walkthrough

Walkthrough

Project version bumped from 3.3.3 to 3.3.5, @tsparticles dependencies updated from ^3.3.1 to ^3.3.2, and package manager upgraded to pnpm@10.32.1. ESLint caching enabled via cache flags. Build system refactored to perform conditional file writes and extract Prettier formatting logic into reusable helpers.

Changes

Cohort / File(s) Summary
Configuration and Version Updates
.gitignore, package.json, files/empty-project/package.json
Version bump to 3.3.5, ESLint cache directory added to .gitignore, @tsparticles dependencies updated to ^3.3.2, package manager upgraded to pnpm@10.32.1, and lint scripts enhanced with --cache, --cache-location, and --cache-strategy flags.
Build System Refactoring
src/build/build-distfiles.ts
Conditional file writes implemented: reads existing content and only overwrites package.dist.json and root files when new serialized content differs, reducing unnecessary file I/O.
ESLint Build Integration
src/build/build-eslint.ts
ESLint caching configuration added with cache enabled, cacheLocation set to ".cache/eslint/.eslintcache", and cacheStrategy set to "metadata".
Prettier Refactoring
src/build/build-prettier.ts
New helper functions introduced: getPrettierOptions() to compute and merge Prettier configuration, and formatOrCheckFile() to unify formatting/checking logic. Repetitive code across prettify steps consolidated, supporting typescript, json, and markdown parsers with consistent option handling.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • 3.0.14 #74: Modifies ESLint configuration in src/build/build-eslint.ts and updates @tsparticles/\* dependency versions in package.json files in parallel.
  • 3.3.1 #110: Refactors src/build/build-prettier.ts with parameter and formatting flow changes related to this PR's Prettier abstraction improvements.

Poem

🐰 Hop, hop! Cache and configs align,
Dependencies dance in version design.
Prettier helpers hop clean and spare,
Build optimized with conditional care!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

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.

@matteobruni matteobruni enabled auto-merge March 11, 2026 14:17
@matteobruni matteobruni merged commit 573ef58 into main Mar 11, 2026
2 checks passed
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

Release bump to 3.3.5, updating internal tooling to be a bit more efficient (less unnecessary writes) and speeding up lint runs via ESLint caching.

Changes:

  • Refactors build-time Prettier formatting into reusable helpers and avoids rewriting files when unchanged.
  • Enables ESLint caching in both the build script and npm scripts (with a custom cache location).
  • Updates package versions/lockfile for the 3.3.5 release.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/build/build-prettier.ts Extracts Prettier option resolution + format/check into helper functions and reduces redundant writes.
src/build/build-eslint.ts Enables ESLint cache with a custom cache location/strategy.
src/build/build-distfiles.ts Avoids rewriting dist files when content is unchanged.
pnpm-lock.yaml Locks updated dependency graph for the release.
package.json Version bump + dependency bumps + lint scripts updated to use caching.
files/empty-project/package.json Updates template devDependency versions to match release.
.gitignore Adds an ignore entry for eslint cache (but does not match new cache location).
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

const eslint = new ESLint({
fix: !ci,
cache: true,
cacheLocation: ".cache/eslint/.eslintcache",
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

cacheLocation is set to .cache/eslint/.eslintcache, but the PR only adds .eslintcache to .gitignore. Without also ignoring .cache/ (or .cache/eslint/), running lint locally will likely create untracked files under .cache/ in the repo.

Suggested change
cacheLocation: ".cache/eslint/.eslintcache",
cacheLocation: ".eslintcache",

Copilot uses AI. Check for mistakes.
@coderabbitai coderabbitai bot mentioned this pull request Mar 13, 2026
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