Skip to content

feat(solid,solidstart): Support @solidjs/router v1 - #23162

Merged
andreiborza merged 1 commit into
developfrom
ab/support-solid-router-v1
Aug 7, 2026
Merged

feat(solid,solidstart): Support @solidjs/router v1#23162
andreiborza merged 1 commit into
developfrom
ab/support-solid-router-v1

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Widen the @solidjs/router peer dependency range in @sentry/solid and @sentry/solidstart to >=0.13.4 <2.0.0-0.

  • Adds support for @solidjs/router v0.16 and v1.0.
  • Excludes the in-progress Solid 2 router (2.0.0-next.*) via the -0 upper bound.
  • Bumps the dev dependency to v1 in both packages so unit tests run against it.

Closes: #23160

Why

@sentry/solid capped at v0.15, so it conflicted with @sentry/solidstart on SolidStart 2, which requires router >=0.16.0 <2.0.0-0. Router v1.0 is a version realignment with no code changes from the 0.16 line, and none of the APIs the SDK uses changed.

Widen the `@solidjs/router` peer dependency range to `>=0.13.4 <2.0.0-0` so
v0.16 and v1.0 are supported. `@sentry/solid` previously capped at v0.15, which
broke `@sentry/solidstart` with SolidStart 2 (its router peer is
`>=0.16.0 <2.0.0-0`) even though solidstart's own range already allowed v1.

Bump the dev dependency to v1 in both packages so the unit tests run against it.

Closes: #23160

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.33 kB - -
@sentry/browser - with treeshaking flags 28.54 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.86 kB - -
@sentry/browser (incl. Tracing) 49.08 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 49.1 kB - -
@sentry/browser (incl. Tracing, Profiling) 53.88 kB - -
@sentry/browser (incl. Tracing, Replay) 88.43 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.83 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 93.12 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.81 kB - -
@sentry/browser (incl. Feedback) 47.67 kB - -
@sentry/browser (incl. sendFeedback) 35.16 kB - -
@sentry/browser (incl. FeedbackAsync) 40.33 kB - -
@sentry/browser (incl. Metrics) 31.4 kB - -
@sentry/browser (incl. Logs) 31.65 kB - -
@sentry/browser (incl. Metrics & Logs) 32.31 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 51.27 kB - -
@sentry/vue 35.44 kB - -
@sentry/vue (incl. Tracing) 51.05 kB - -
@sentry/svelte 30.36 kB - -
CDN Bundle 32.34 kB - -
CDN Bundle (incl. Tracing) 49.66 kB - -
CDN Bundle (incl. Logs, Metrics) 33.87 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.97 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.4 kB - -
CDN Bundle (incl. Tracing, Replay) 87.19 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 93.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.33 kB - -
CDN Bundle - uncompressed 95.88 kB - -
CDN Bundle (incl. Tracing) - uncompressed 148.98 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.47 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.96 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.39 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.24 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.94 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.89 kB - -
@sentry/nextjs (client) 53.83 kB - -
@sentry/sveltekit (client) 49.47 kB - -
@sentry/core/server 65.77 kB - -
@sentry/core/browser 52 kB - -
@sentry/node 119.43 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.42 kB - -
@sentry/aws-serverless 92.74 kB +0.01% +1 B 🔺
@sentry/cloudflare (withSentry) - minified 214.89 kB - -
@sentry/cloudflare (withSentry) 530.77 kB - -

View base workflow run

@andreiborza
andreiborza marked this pull request as ready for review August 7, 2026 16:45
@andreiborza
andreiborza requested a review from a team as a code owner August 7, 2026 16:45
@andreiborza
andreiborza requested review from logaretm, mydea, nicohrubec and s1gr1d and removed request for a team and mydea August 7, 2026 16:45
},
"peerDependencies": {
"@solidjs/router": "^0.13.4 || ^0.14.0 || ^0.15.0",
"@solidjs/router": ">=0.13.4 <2.0.0-0",

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.

Bug: The widened peer dependency range for @solidjs/router is not tested against its minimum supported version, risking runtime crashes for users on older router versions.
Severity: HIGH

Suggested Fix

Add a testing step to the CI pipeline that installs and runs the test suite against the minimum supported version of the @solidjs/router dependency (0.13.4). This will validate that the hooks used by the SDK are compatible across the entire declared peer dependency range. Alternatively, narrow the peer dependency range to versions known to be compatible.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: packages/solid/package.json#L62

Potential issue: The peer dependency for `@solidjs/router` was broadened to `>=0.13.4
<2.0.0-0`, but the test suite only validates compatibility against version `1.0.0`. The
SDK integration uses the `useBeforeLeave`, `useCurrentMatches`, and `useLocation` hooks
without any error handling or version checks. If there were any breaking API changes in
`@solidjs/router` between version `0.13.4` and the latest tested version, users with
older, valid versions of the router would experience runtime crashes when the Sentry
integration initializes.

Also affects:

  • packages/solidstart/package.json:74~74

Did we get this right? 👍 / 👎 to inform future reviews.

@andreiborza
andreiborza merged commit c474ad7 into develop Aug 7, 2026
531 of 532 checks passed
@andreiborza
andreiborza deleted the ab/support-solid-router-v1 branch August 7, 2026 16:48
andreiborza added a commit that referenced this pull request Aug 7, 2026
)

## What

Bump `@solidjs/router` from `^0.15.0` to `^1.0.0` in the SolidStart 1
e2e test apps.

- `solidstart`, `solidstart-spa`, `solidstart-top-level-import`,
`solidstart-dynamic-import`

## Why

#23162 widened the `@solidjs/router` peer range to `>=0.13.4 <2.0.0-0`,
but only the `solidstart-2` app ran against v1, so the SolidStart 1 +
router v1 combination the range now advertises had no coverage. The
equivalent bump on v10 (#23163) passes all four suites locally.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
andreiborza added a commit that referenced this pull request Aug 7, 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.

Support @solidjs/router v1.0 in @sentry/solid

2 participants