Skip to content

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Aug 3, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Resolved a security issue by replacing a vulnerable dependency.
  • Chores
    • Updated the version number to 29.4.1.

Copy link

coderabbitai bot commented Aug 3, 2025

Walkthrough

This change updates the project to patch release 29.4.1, as documented in the changelog and reflected in the package.json version. The release notes specify a single bug fix: replacing the ejs dependency with handlebars due to security concerns. No other features or breaking changes are introduced.

Changes

Cohort / File(s) Change Summary
Changelog Update
CHANGELOG.md
Documents the new 29.4.1 patch release, specifying the replacement of ejs with handlebars for security reasons.
Version Bump
package.json
Updates the package version from 29.4.0 to 29.4.1.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • kulshekhar

Poem

A patch hops in, so small and neat,
Swapping ejs for handlebars—a tidy feat!
The version bumps, the changelog sings,
Security’s tight, and safety springs.
With every hop, the code grows strong—
🐇 Onward, ts-jest, hop along!

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release/29.4.1

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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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 generate unit tests to generate unit tests for 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.

Copy link

sonarqubecloud bot commented Aug 3, 2025

@ahnpnl ahnpnl marked this pull request as ready for review August 3, 2025 13:19
@ahnpnl ahnpnl requested a review from kulshekhar as a code owner August 3, 2025 13:19
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.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
package.json (1)

54-63: Address remaining “ejs” references in lockfiles

Our search confirmed that ejs is no longer listed in any package.json or imported in source files, but it still appears in the generated lockfiles for several sub-projects. To fully remove the package:

• Regenerate the lockfile in each affected directory (e.g. website/, e2e/, examples/) by running your package manager’s install command there (e.g. npm install, yarn install, or pnpm install).
• Commit the updated package-lock.json (or equivalent) so that no residual ejs entries remain.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 322a3c7 and da21a47.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in the ts-jest project, dependencies are only installed at the root level using the root package-loc...
Learnt from: ahnpnl
PR: kulshekhar/ts-jest#4950
File: .github/actions/setup-workspace/action.yml:28-28
Timestamp: 2025-07-21T14:09:03.234Z
Learning: In the ts-jest project, dependencies are only installed at the root level using the root package-lock.json file. Subdirectory package-lock.json files in e2e/ and examples/ directories don't affect the main workspace dependency installation, so they should not be included in GitHub Actions cache keys for the main workspace.

Applied to files:

  • package.json
🔇 Additional comments (1)
CHANGELOG.md (1)

1-7: Changelog entry is clear and properly linked

The new 29.4.1 section clearly states the security-motivated dependency swap and references the correct commit and issue. No action required.

{
"name": "ts-jest",
"version": "29.4.0",
"version": "29.4.1",
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Double-check downstream artefacts after the version bump

Updating the version field is necessary, but please verify that:

  1. A matching Git tag (v29.4.1) is pushed.
  2. The changelog was generated after the final commit so that the diff URL in CHANGELOG.md points to an existing tag.
  3. The published package on the registry will reflect this same version (CI/CD pipeline sometimes caches the previous build).

Run the quick scan below to ensure no lingering references to the old version are embedded in the repo or build artefacts:


🏁 Script executed:

#!/bin/bash
# Fail if any file (other than package.json / CHANGELOG) still mentions 29.4.0
rg -n '"29\.4\.0"' --color=always --glob '!.*/{package.json,CHANGELOG.md}'

Length of output: 378


Action Required: Regenerate Lockfiles & Verify Release Artifacts

The version bump in package.json uncovered lingering references to 29.4.0 in your lock files. Please:

  • Regenerate and commit updated lockfiles so they reference 29.4.1
    • examples/package-lock.json
    • e2e/package-lock.json
    (e.g. run npm install or npm ci in each folder)

  • Ensure a Git tag matching the new version is pushed:
    git tag v29.4.1 && git push origin v29.4.1

  • Confirm CHANGELOG.md was generated after the final commit so its diff URL points at v29.4.1.

  • Verify your CI/CD publishes the correct package version (caching can sometimes hold onto the previous build).

🤖 Prompt for AI Agents
In package.json at line 3, after updating the version to 29.4.1, you need to
regenerate the lockfiles in examples/package-lock.json and e2e/package-lock.json
by running npm install or npm ci in those directories to update references from
29.4.0 to 29.4.1. Then commit these updated lockfiles. Next, create and push a
Git tag for v29.4.1 using git tag v29.4.1 and git push origin v29.4.1. Also,
ensure the CHANGELOG.md is generated after the final commit so its diff URL
points to v29.4.1. Finally, verify your CI/CD pipeline publishes the correct
package version without caching issues.

@ahnpnl ahnpnl merged commit 9099745 into main Aug 3, 2025
21 checks passed
@ahnpnl ahnpnl deleted the release/29.4.1 branch August 3, 2025 13:29
@coderabbitai coderabbitai bot mentioned this pull request Sep 15, 2025
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.

2 participants