René's URL Explorer Experiment


Title: @sentry/react 11.10.0 to 11.12.0: BrowserOptions is no longer assignable to BrowserClient constructor options (TS2345 on `tunnel`) · Issue #26306 · getsentry/sentry-javascript · GitHub

Open Graph Title: @sentry/react 11.10.0 to 11.12.0: BrowserOptions is no longer assignable to BrowserClient constructor options (TS2345 on `tunnel`) · Issue #26306 · getsentry/sentry-javascript

X Title: @sentry/react 11.10.0 to 11.12.0: BrowserOptions is no longer assignable to BrowserClient constructor options (TS2345 on `tunnel`) · Issue #26306 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26306

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/react 11.10.0 to 11.12.0: BrowserOptions is no longer assignable to BrowserClient constructor options (TS2345 on `tunnel`)","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/react\n\n### SDK Version\n\n11.12.0\n\n### Framework Version\n\nReact 19, TypeScript 6.0.3\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n`repro.ts`:\n\n```ts\nimport {\n  BrowserClient,\n  defaultStackParser,\n  makeFetchTransport,\n  type BrowserOptions,\n} from '@sentry/react';\n\nconst options: BrowserOptions = {\n  dsn: 'https://00000000000000000000000000000000@example.invalid/0',\n  tunnel: '/tunnel',\n};\n\nexport const client = new BrowserClient({\n  ...options,\n  integrations: [],\n  stackParser: defaultStackParser,\n  transport: makeFetchTransport,\n});\n```\n\n`tsconfig.json`:\n\n```json\n{\n  \"compilerOptions\": {\n    \"noEmit\": true,\n    \"target\": \"ESNext\",\n    \"module\": \"NodeNext\",\n    \"moduleResolution\": \"NodeNext\",\n    \"strict\": false,\n    \"lib\": [\"dom\", \"esnext\"],\n    \"skipLibCheck\": true\n  },\n  \"include\": [\"repro.ts\"]\n}\n```\n\n`package.json`:\n\n```json\n{ \"name\": \"repro\", \"private\": true, \"type\": \"module\" }\n```\n\n### Steps to Reproduce\n\n```sh\nnpm install typescript@6.0.3 react@19 @sentry/react@11.9.0\nnpx tsc -p .          # exit 0\nnpm install @sentry/react@11.10.0\nnpx tsc -p .          # TS2345\nnpm install @sentry/react@11.11.0\nnpx tsc -p .          # TS2345\nnpm install @sentry/react@11.12.0\nnpx tsc -p .          # TS2345\n```\n\nIt fails with `strict` off and with `--strict` (only the printed type of `integrations` differs, `undefined[]` against `never[]`). `skipLibCheck` does not hide it, because the error is in user code.\n\n\n### Expected Result\n\nIt compiles, as on 11.9.0. Any one of these would do:\n\n- `BrowserClientOptions.tunnel` accepts what `BrowserOptions.tunnel` accepts, or\n- the SDK exports the function that resolves a `TunnelInit` to the URL string, so a caller constructing a `BrowserClient` can resolve it first, or\n- the change is documented as breaking for callers who build a client from `BrowserOptions`.\n\n### Actual Result\n\nOn 11.10.0, 11.11.0 and 11.12.0 (`strict: false`):\n\n```\nrepro.ts(13,41): error TS2345: Argument of type '{ integrations: undefined[]; stackParser: StackParser; transport: (options: BrowserTransportOptions, nativeFetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise\u003cResponse>) => Transport; ... 49 more ...; routeProvider?: RouteProvider; }' is not assignable to parameter of type 'BrowserClientOptions'.\n  Type '{ integrations: undefined[]; stackParser: StackParser; transport: (options: BrowserTransportOptions, nativeFetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise\u003cResponse>) => Transport; ... 49 more ...; routeProvider?: RouteProvider; }' is not assignable to type 'ClientOptions\u003cBrowserTransportOptions>'.\n    Types of property 'tunnel' are incompatible.\n      Type 'TunnelInit\u003cTunnelOptions> & TunnelInit\u003cBrowserTunnelOptions>' is not assignable to type 'string'.\n        Type 'boolean' is not assignable to type 'string'.\n```\n\n### Additional Context\n\nDescription\n\nSince 11.10.0, `BrowserOptions.tunnel` is typed `TunnelInit\u003cBrowserTunnelOptions>` (`string | true | BrowserTunnelOptions`), while the options that `new BrowserClient(...)` takes (`BrowserClientOptions = ClientOptions\u003cBrowserTransportOptions> & BrowserSpecificOptions`) still type `tunnel` as `string`.\n\nAn object typed as `BrowserOptions` can therefore no longer be spread into the `BrowserClient` constructor. This compiled through 11.9.0. It is a type-level regression in a minor release: code that builds a client by hand from `BrowserOptions` (for example to create a second, isolated client, or to test resolved options) stops compiling.\n\n| `@sentry/react` | `npx tsc -p .` |\n| --- | --- |\n| 11.9.0 | exit 0 |\n| 11.10.0 | TS2345 |\n| 11.11.0 | TS2345 |\n| 11.12.0 (latest) | TS2345 |\n\nEnvironment: TypeScript 6.0.3, Node 24.22.2, react 19.\n\nWhere the two types diverge (11.11.0)\n\n- `@sentry/core/build/types/types/options.d.ts`: `ClientOptions.tunnel?: string;` and `export type TunnelInit\u003cT extends TunnelOptions = TunnelOptions> = string | true | T;`, with `CoreOptions` now omitting `'tunnel'` from `Partial\u003cClientOptions\u003cTO>>` and redeclaring it as `tunnel?: TunnelInit;`\n- `@sentry/browser/build/npm/types/client.d.ts`: `tunnel?: TunnelInit\u003cBrowserTunnelOptions>;` on the browser options, and `export type BrowserClientOptions = ClientOptions\u003cBrowserTransportOptions> & BrowserSpecificOptions;`\n\nPossibly related to the tunnel rework tracked in #25466 and #26193.\n\n### Priority\n\n_No response_","author":{"url":"https://github.com/JoelA510","@type":"Person","name":"JoelA510"},"datePublished":"2026-11-11T15:45:27Z","url":"https://github.com/getsentry/sentry-javascript/issues/26306"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d9088c54-ac69-ed9a-f8c6-8ebc27af9ff7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBFA0:10BC16:1EE0B8:298890:6B043179
html-safe-nonced16306c38a872fa8dfc5a75c9b380e78b8b058348c9ae24e5d3b541e69068ecc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkEwOjEwQkMxNjoxRUUwQjg6Mjk4ODkwOjZCMDQzMTc5IiwidmlzaXRvcl9pZCI6Ijg2MDk5NDM1ODM3MDcxMTU4OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd222808e83fe9d3e461c2537492fc7854d1533b07e9598f0bb26428d67194246
hovercard-subject-tagissue:6331962573
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/26306/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5189f1576d0ad8dbbaff012c8ce590f51d565576b64ba330def0062ca0fd6c92/getsentry/sentry-javascript/issues/26306
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5189f1576d0ad8dbbaff012c8ce590f51d565576b64ba330def0062ca0fd6c92/getsentry/sentry-javascript/issues/26306
og:image:altIs there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJoelA510
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/26306#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F26306
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F26306
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/26306
Reloadhttps://github.com/getsentry/sentry-javascript/issues/26306
Reloadhttps://github.com/getsentry/sentry-javascript/issues/26306
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/26306
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/26306
#26313https://github.com/getsentry/sentry-javascript/pull/26313
@sentry/react 11.10.0 to 11.12.0: BrowserOptions is no longer assignable to BrowserClient constructor options (TS2345 on tunnel)https://github.com/getsentry/sentry-javascript/issues/26306#top
#26313https://github.com/getsentry/sentry-javascript/pull/26313
https://github.com/logaretm
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Reacthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22React%22
https://github.com/JoelA510
JoelA510https://github.com/JoelA510
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#issue-6331962573
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
#25466https://github.com/getsentry/sentry-javascript/issues/25466
#26193https://github.com/getsentry/sentry-javascript/issues/26193
JoelA510https://github.com/JoelA510
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35815606975
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35815611313
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#issuecomment-6800312207
Linear Codehttps://linear.app
JS-4099https://linear.app/getsentry/issue/JS-4099
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35815619740
github-actionshttps://github.com/apps/github-actions
Reacthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22React%22
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35815620281
https://github.com/bunnysayzz
bunnysayzzhttps://github.com/bunnysayzz
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#issuecomment-6801288421
JoelA510https://github.com/JoelA510
on Nov 11, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35825368146
chore(deps): the @sentry/react hold cites the upstream issue and cove…https://github.com/JoelA510/SquadLogic/commit/8bc4daa47d89845665dee2fd1e474c8cfb6746f1
8bc4daahttps://github.com/JoelA510/SquadLogic/commit/8bc4daa47d89845665dee2fd1e474c8cfb6746f1
msonnbhttps://github.com/msonnb
msonnbhttps://github.com/msonnb
logaretmhttps://github.com/logaretm
msonnbhttps://github.com/msonnb
on Nov 12, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35888724809
https://github.com/logaretm
logaretmhttps://github.com/logaretm
on Nov 12, 2026https://github.com/getsentry/sentry-javascript/issues/26306#issuecomment-6819561067
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 12, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35893777853
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 12, 2026https://github.com/getsentry/sentry-javascript/issues/26306
logaretmhttps://github.com/logaretm
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#26313https://github.com/getsentry/sentry-javascript/pull/26313
on Nov 12, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-35901575102
RulaKhaledhttps://github.com/RulaKhaled
on Nov 16, 2026https://github.com/getsentry/sentry-javascript/issues/26306#event-36286809371
fix(browser): Accept managed tunnel options in the `BrowserClient` co…https://github.com/pcbeingused333/sentry-javascript/commit/5e291eac8320d85d8250359ac96958c8e3d8049c
https://docs.github.com/articles/closing-issues-via-commit-messages
5e291eahttps://github.com/pcbeingused333/sentry-javascript/commit/5e291eac8320d85d8250359ac96958c8e3d8049c
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 16, 2026https://github.com/getsentry/sentry-javascript/issues/26306#issuecomment-6922347263
GitHub Actionshttps://help.github.com/en/actions
#26313https://github.com/getsentry/sentry-javascript/pull/26313
11.13.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.13.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/26306
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/26306
logaretmhttps://github.com/logaretm
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Reacthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22React%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.