Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
"overrides": {
"typescript": "5.5.4",
"@types/node": "20.14.14",
"@types/react": "18.2.69",
"@types/react-dom": "18.2.7",
Comment on lines +93 to +94
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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check latest 18.x versions of React type packages

echo "=== `@types/react` latest 18.x version ==="
npm view `@types/react` versions --json | jq -r '.[]' | grep '^18\.' | tail -1

echo -e "\n=== `@types/react-dom` latest 18.x version ==="
npm view `@types/react-dom` versions --json | jq -r '.[]' | grep '^18\.' | tail -1

echo -e "\n=== Checking for security advisories ==="
gh api graphql -f query='
{
  securityVulnerabilities(first: 5, ecosystem: NPM, package: "`@types/react`") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
      firstPatchedVersion {
        identifier
      }
    }
  }
}'

Repository: triggerdotdev/trigger.dev

Length of output: 262


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Checking security advisories for `@types/react-dom` ==="
gh api graphql -f query='
{
  securityVulnerabilities(first: 5, ecosystem: NPM, package: "`@types/react-dom`") {
    nodes {
      advisory { summary severity publishedAt }
      vulnerableVersionRange
      firstPatchedVersion { identifier }
    }
  }
}'

Repository: triggerdotdev/trigger.dev

Length of output: 176


Bump pinned React type packages to the latest 18.x patch versions

  • @types/react is pinned to 18.2.69, but the latest 18.x patch is 18.3.30.
  • @types/react-dom is pinned to 18.2.7, but the latest 18.x patch is 18.3.7.
  • No GitHub-reported security advisories were found for either package in the vulnerability lookup.
🤖 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 `@package.json` around lines 93 - 94, The package.json pins for TypeScript
React types are out of date: update the versions for `@types/react` and
`@types/react-dom` to the latest 18.x patch releases; specifically change
`@types/react` from 18.2.69 to 18.3.30 and `@types/react-dom` from 18.2.7 to 18.3.7,
then run your package manager install (npm/yarn/pnpm) and rebuild to ensure type
compatibility; confirm no breaking type changes affect functions/components that
rely on react/react-dom type declarations.

Comment on lines +93 to +94
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.

🚩 Override silently downgrades trigger-sdk from @types/react 19 to 18

packages/trigger-sdk/package.json declares @types/react: ^19.2.14 as a devDependency, but this override forces it to 18.2.69. This is a significant version downgrade (React 19 → 18 types). I verified that the only React usage in the SDK (packages/trigger-sdk/src/v3/chat-react.ts) uses basic hooks (useCallback, useEffect, useRef, useState) that are fully compatible with React 18 types. However, the explicit ^19.2.14 pin was presumably added intentionally — future code additions to chat-react.ts using React 19 features (e.g., useActionState, use(), or the new ref prop pattern) would silently fail to typecheck correctly since the override masks the package-level declaration. Consider updating the trigger-sdk's package.json devDependency to 18.2.69 to make the intent explicit rather than relying on a global override to silently downgrade it.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

"express@^4>body-parser": "1.20.3",
"@remix-run/dev@2.17.4>tar-fs": "2.1.4",
"tar@>=7 <7.5.11": "^7.5.11",
Expand Down