Skip to content

chore: updating to node 22#75

Merged
fritogotlayed merged 2 commits into
MadDonkeySoftware:mainfrom
fritogotlayed:update-node-22
May 9, 2025
Merged

chore: updating to node 22#75
fritogotlayed merged 2 commits into
MadDonkeySoftware:mainfrom
fritogotlayed:update-node-22

Conversation

@fritogotlayed

@fritogotlayed fritogotlayed commented May 9, 2025

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Updated project environment to use Node.js version 22.
    • Added configuration to specify Node.js 22 for development tools and workflows.
    • Updated TypeScript settings to align with Node.js 22 compatibility.

@coderabbitai

coderabbitai Bot commented May 9, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The project was updated to use Node.js version 22 across its development, build, and CI environments. This included updating the GitHub Actions workflow, adding an .nvmrc file, changing the TypeScript configuration to extend Node.js 22 presets, and adding the corresponding TypeScript config package to development dependencies.

Changes

File(s) Change Summary
.github/workflows/commit-checks.yml Updated Node.js version in CI workflow from 18.x to 22.x and upgraded setup-node action from v2 to v3.
.nvmrc Added file specifying Node.js version 22 for local development.
package.json Added @tsconfig/node22 as a new dev dependency.
tsconfig.json Changed TypeScript config to extend from Node.js 22 preset instead of Node.js 16.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant LocalEnv
    participant GitHubActions
    participant TypeScript

    Developer->>LocalEnv: Reads .nvmrc (Node 22)
    LocalEnv->>Developer: Sets Node.js version to 22

    Developer->>GitHubActions: Pushes code
    GitHubActions->>GitHubActions: Sets up Node.js 22.x
    GitHubActions->>TypeScript: Uses @tsconfig/node22 for build
    TypeScript-->>GitHubActions: Compiles code with Node 22 assumptions
Loading

Poem

🐇
Hop, hop, a leap to twenty-two,
Node and TypeScript, shiny and new!
The workflow’s tuned, the configs aligned,
With .nvmrc, our versions entwined.
A modern warren, fast and bright—
Let’s code ahead, from day to night!
🌱✨

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

15-16: Consider updating module settings to NodeNext.
Since Node.js 22 has first-class ESM support, you might switch "module" and "moduleResolution" from "Node16" to "NodeNext" to leverage full ESM semantics.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 26030f0 and 9fd1cf5.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (4)
  • .github/workflows/commit-checks.yml (1 hunks)
  • .nvmrc (1 hunks)
  • package.json (1 hunks)
  • tsconfig.json (1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/commit-checks.yml

14-14: the runner of "actions/setup-node@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🔇 Additional comments (5)
.nvmrc (1)

1-1: Pin Node.js version in .nvmrc.
The .nvmrc file correctly specifies Node.js v22, ensuring local and CI environments stay in sync with the project’s runtime target.

package.json (1)

40-42: Align TypeScript preset with Node.js 22.
Adding "@tsconfig/node22": "^22.0.1" under devDependencies ensures your TypeScript compiler options extend the correct preset for Node.js v22.

tsconfig.json (1)

3-3: Extend the Node.js 22 TypeScript config.
Updating "extends": "@tsconfig/node22/tsconfig.json" brings your compiler options in line with the Node.js v22 environment.

.github/workflows/commit-checks.yml (2)

13-13: Update workflow step name to reflect Node.js 22.
Renaming the setup step to “Use Node 22.x” accurately documents the runtime version your CI will use.


16-16: Pin CI to Node.js 22.x.
Setting node-version: '22.x' aligns your GitHub Actions runner with the project’s .nvmrc and local development environments.

Comment thread .github/workflows/commit-checks.yml Outdated
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/commit-checks.yml (1)

13-16: Optional: Enable npm caching to speed up installs
You can add a cache input to reuse dependencies between runs:

      - name: Use Node 22.x
        uses: actions/setup-node@v3
        with:
          node-version: '22.x'
+         cache: 'npm'

This caches ~/.npm across jobs and can significantly reduce CI time.

🧰 Tools
🪛 actionlint (1.7.4)

14-14: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9fd1cf5 and 3ef1c74.

📒 Files selected for processing (1)
  • .github/workflows/commit-checks.yml (1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/commit-checks.yml

14-14: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🔇 Additional comments (1)
.github/workflows/commit-checks.yml (1)

13-16: Approved: Upgraded to Node.js 22 using setup-node@v3
This aligns with the new .nvmrc and TypeScript presets (@tsconfig/node22), and the ubuntu-latest runner fully supports Node 22. Great catch updating both the action and version!

🧰 Tools
🪛 actionlint (1.7.4)

14-14: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

@fritogotlayed fritogotlayed added this pull request to the merge queue May 9, 2025
Merged via the queue into MadDonkeySoftware:main with commit 735db12 May 9, 2025
@fritogotlayed fritogotlayed deleted the update-node-22 branch May 9, 2025 00:53
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