Skip to content

Conversation

@panteliselef
Copy link
Member

@panteliselef panteliselef commented Aug 21, 2025

Description

There's a moderate security issue in the existing version the template is ussing.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Chores
    • Updated Node adapter dependency (@astrojs/node) in the Astro Hybrid template to the 9.x line.
    • Expect improved stability and support for recent runtime features in local development and deployment.
    • No other configuration or dependency changes; reinstall dependencies after pulling the update.

@changeset-bot
Copy link

changeset-bot bot commented Aug 21, 2025

⚠️ No Changeset found

Latest commit: b338e68

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Aug 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clerk-js-sandbox Ready Ready Preview Comment Aug 22, 2025 8:37am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 21, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6598

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@6598

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@6598

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@6598

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@6598

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6598

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6598

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@6598

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@6598

@clerk/express

npm i https://pkg.pr.new/@clerk/express@6598

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@6598

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@6598

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@6598

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@6598

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@6598

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@6598

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6598

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@6598

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@6598

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@6598

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6598

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6598

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@6598

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@6598

commit: b338e68

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 21, 2025

📝 Walkthrough

Walkthrough

Updated dependency in integration/templates/astro-hybrid/package.json: @astrojs/node changed from ^8.3.4 to ^9.4.2. No other files, configuration, or code changes were made.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 264d932 and b338e68.

📒 Files selected for processing (1)
  • integration/templates/astro-hybrid/package.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • integration/templates/astro-hybrid/package.json
integration/**

📄 CodeRabbit inference engine (.cursor/rules/global.mdc)

Framework integration templates and E2E tests should be placed under the integration/ directory

Files:

  • integration/templates/astro-hybrid/package.json
integration/**/*

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

End-to-end tests and integration templates must be located in the 'integration/' directory.

Files:

  • integration/templates/astro-hybrid/package.json
**/*

⚙️ CodeRabbit configuration file

If there are no tests added or modified as part of the PR, please suggest that tests be added to cover the changes.

Files:

  • integration/templates/astro-hybrid/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (22)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (tanstack-react-router, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Static analysis
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan

🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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
Contributor

@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

🧹 Nitpick comments (2)
integration/templates/astro-hybrid/package.json (2)

1-12: Add an engines constraint to communicate required Node version.

Helpful for contributors and CI. Adjust the version after confirming adapter/astro requirements.

Apply:

 {
   "name": "astro-clerk-hybrid-playground",
   "version": "0.0.1",
   "type": "module",
+  "engines": {
+    "node": ">=20.0.0"
+  },
   "scripts": {

If you decide to stay on Astro 4 + adapter 8.x, relax this to a compatible minimum (e.g., Node 18.x) based on verified peer deps.


5-11: Optional: Align “start” with production behavior for Node adapter.

Currently "start" runs the dev server. For templates that showcase the Node adapter, consider using astro preview (prod output) or a Node entry script after build. This avoids confusion between dev and prod modes.

Example:

   "scripts": {
     "astro": "astro",
-    "build": "astro check && astro build",
+    "build": "astro check && astro build",
     "dev": "astro dev",
-    "preview": "astro preview --port $PORT",
-    "start": "astro dev --port $PORT"
+    "preview": "astro preview --port $PORT",
+    "start": "astro preview --port $PORT"
   },

If you keep "start" for dev hosting environments, consider renaming to "start:dev" to be explicit.

📜 Review details

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

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between eb49928 and 34ff2b5.

📒 Files selected for processing (1)
  • integration/templates/astro-hybrid/package.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • integration/templates/astro-hybrid/package.json
integration/**

📄 CodeRabbit inference engine (.cursor/rules/global.mdc)

Framework integration templates and E2E tests should be placed under the integration/ directory

Files:

  • integration/templates/astro-hybrid/package.json
integration/**/*

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

End-to-end tests and integration templates must be located in the 'integration/' directory.

Files:

  • integration/templates/astro-hybrid/package.json
**/*

⚙️ CodeRabbit configuration file

If there are no tests added or modified as part of the PR, please suggest that tests be added to cover the changes.

Files:

  • integration/templates/astro-hybrid/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (25)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (tanstack-react-router, chrome)
  • GitHub Check: Integration Tests (quickstart, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Static analysis
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (1)
integration/templates/astro-hybrid/package.json (1)

1-23: Verify e2e coverage for the astro-hybrid template
The smoke-test script provided fails locally with “astro: not found,” so we can’t confirm that the template actually installs, builds, and previews correctly in this environment. Please manually verify in your CI (or local setup) that dependencies (including the Astro CLI) are installed and that running the following succeeds without error:

pushd integration/templates/astro-hybrid
pnpm install
pnpm run build
pnpm run preview --if-present
popd

Let me know if you’d like assistance wiring this into your CI matrix.

@panteliselef panteliselef enabled auto-merge (squash) August 22, 2025 08:36
@panteliselef panteliselef merged commit 4e15e06 into main Aug 22, 2025
39 checks passed
@panteliselef panteliselef deleted the elef/bump-astro-template-dep branch August 22, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants