Skip to content

Update dependencies - #67

Open
brionmario wants to merge 1 commit into
thunder-id:mainfrom
brionmario:main
Open

Update dependencies#67
brionmario wants to merge 1 commit into
thunder-id:mainfrom
brionmario:main

Conversation

@brionmario

@brionmario brionmario commented Aug 11, 2026

Copy link
Copy Markdown
Member

Approach

$subject

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Tests provided. (Add links if there are any)
  • Unit Tests
  • Integration Tests
  • Breaking changes. (Fill if applicable)
  • Breaking changes section filled.
  • breaking change label added.

Security checks

  • Followed secure coding standards.
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.

Summary by CodeRabbit

  • Security

    • Added automated pull-request auditing for high-severity dependency vulnerabilities.
    • Applied security updates and safeguards for vulnerable transitive packages.
  • Dependency Updates

    • Updated Next.js, Nuxt, React Router, Vitest, DOMPurify, and related tooling.
    • Refreshed dependency versions in framework packages and quickstart samples.
    • Added browser-based testing support for TanStack Router.
  • Tests

    • Improved style-injection test isolation and reliability.

- Removed temporary minimum release age exclusions for eslint-plugin and prettier-config.
- Added various overrides to address security vulnerabilities in dependencies including body-parser, brace-expansion, js-yaml, nanoid, postcss, sharp, shell-quote, svgo, and tar.
- Updated catalog dependencies for @thunderid/eslint-plugin and @thunderid/prettier-config to version 1.0.0.
- Updated @vitest/browser-playwright to version 4.1.10, dompurify to 3.4.13, react-router to 7.18.2, and vitest to 4.1.10.
- Added minimum release age exclusion for all @ThunderID packages.

chore: upgrade Next.js in nextjs quickstart sample

- Updated Next.js dependency from ^15.3.3 to ^15.5.23 in samples/nextjs/quickstart/package.json.

chore: upgrade Nuxt in nuxt quickstart sample

- Updated Nuxt dependency from ^4.4.8 to ^4.5.2 in samples/nuxt/quickstart/package.json.

chore: upgrade react-router in react quickstart sample

- Updated react-router dependency from ^7.6.2 to ^7.18.2 in samples/react/quickstart/package.json.
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds a pull-request security audit, updates workspace dependency policies and package versions, adds browser test tooling, updates quickstart dependencies, and resets document head state before Vue style tests.

Changes

Dependency maintenance

Layer / File(s) Summary
Audit workflow and dependency policy
.github/workflows/pr-builder.yml, pnpm-workspace.yaml
The pull-request workflow runs a high-severity pnpm audit. The workspace adds dependency overrides and an audit ignore.
Workspace catalog updates
pnpm-workspace.yaml
Catalog versions and minimum-release-age exclusions are updated for ThunderID packages, Vitest browser Playwright, DOMPurify, React Router, and Vitest.
Package and sample dependency updates
packages/nextjs/package.json, packages/nuxt/package.json, packages/tanstack-router/package.json, samples/*/quickstart/package.json
Package manifests and quickstart samples use updated Next.js, Nuxt, React Router, and browser Playwright versions.
Style test isolation
packages/vue/src/styles/__tests__/injectStyles.test.ts
The tests clear document.head before each test.

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the primary dependency updates, although it does not mention the related security audit changes.
Description check ✅ Passed The description covers the purpose, approach, related items, checklist, and security checks, but the checklist items remain unconfirmed.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with 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.

Inline comments:
In @.github/workflows/pr-builder.yml:
- Around line 17-23: Update the audit job to restrict its GITHUB_TOKEN with
job-level permissions allowing only contents read access, and configure the
actions/checkout step to disable credential persistence via persist-credentials:
false.
- Around line 30-34: Update the pnpm setup step using pnpm/action-setup to set
version to the declared 11.9.0 value, matching package.json’s
devEngines.packageManager.version, and replace the floating latest setting.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a9702735-e9d7-4461-b6d4-1049ff8709bc

📥 Commits

Reviewing files that changed from the base of the PR and between 60577d3 and 938b759.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (9)
  • .github/workflows/pr-builder.yml
  • packages/nextjs/package.json
  • packages/nuxt/package.json
  • packages/tanstack-router/package.json
  • packages/vue/src/styles/__tests__/injectStyles.test.ts
  • pnpm-workspace.yaml
  • samples/nextjs/quickstart/package.json
  • samples/nuxt/quickstart/package.json
  • samples/react/quickstart/package.json

Comment on lines +17 to +23
audit:
name: 🔍 Security Audit
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 📥 Checkout Code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Restrict the audit job token and disable credential persistence.

This job uses default GITHUB_TOKEN permissions. actions/checkout also persists the token by default. pnpm audit only needs repository read access. Set permissions: contents: read for this job and set persist-credentials: false on checkout.

Proposed fix
   audit:
     name: 🔍 Security Audit
+    permissions:
+      contents: read
     runs-on: ubuntu-latest
@@
       - name: 📥 Checkout Code
         uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+        with:
+          persist-credentials: false
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
audit:
name: 🔍 Security Audit
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 📥 Checkout Code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
audit:
name: 🔍 Security Audit
permissions:
contents: read
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 📥 Checkout Code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
🧰 Tools
🪛 zizmor (1.29.0)

[warning] 22-23: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[warning] 17-37: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

🤖 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 @.github/workflows/pr-builder.yml around lines 17 - 23, Update the audit job
to restrict its GITHUB_TOKEN with job-level permissions allowing only contents
read access, and configure the actions/checkout step to disable credential
persistence via persist-credentials: false.

Source: Linters/SAST tools

Comment on lines +30 to +34
- name: 📦 Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: latest
run_install: false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 2 '"packageManager"|"pnpm"|PNPM_VERSION' \
  package.json pnpm-workspace.yaml .github/workflows/pr-builder.yml .github/workflows/release.yml 2>/dev/null || true

Repository: thunder-id/javascript-sdks

Length of output: 361


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- workflow ---'
cat -n .github/workflows/pr-builder.yml | sed -n '1,80p'

printf '%s\n' '--- declared version ---'
python3 - <<'PY'
import json
from pathlib import Path

package = json.loads(Path("package.json").read_text())
declared = package.get("devEngines", {}).get("packageManager", {})
print(declared)
PY

printf '%s\n' '--- version consistency ---'
python3 - <<'PY'
import json
from pathlib import Path

workflow = Path(".github/workflows/pr-builder.yml").read_text()
package = json.loads(Path("package.json").read_text())
declared = package["devEngines"]["packageManager"]["version"]
print(f'workflow_uses_latest={\'version: latest\' in workflow}')
print(f'declared_pnpm_version={declared}')
PY

Repository: thunder-id/javascript-sdks

Length of output: 3441


Use the declared pnpm version

Set version: 11.9.0 to match package.jsondevEngines.packageManager.version instead of using the floating latest version.

🤖 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 @.github/workflows/pr-builder.yml around lines 30 - 34, Update the pnpm setup
step using pnpm/action-setup to set version to the declared 11.9.0 value,
matching package.json’s devEngines.packageManager.version, and replace the
floating latest setting.

@brionmario brionmario changed the title ### Purpose Update dependencies Aug 11, 2026
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