René's URL Explorer Experiment


Title: [build] Bundle monorepo dependencies in npm packages · Issue #5886 · getsentry/sentry-javascript · GitHub

Open Graph Title: [build] Bundle monorepo dependencies in npm packages · Issue #5886 · getsentry/sentry-javascript

X Title: [build] Bundle monorepo dependencies in npm packages · Issue #5886 · getsentry/sentry-javascript

Description: Problem Statement In spite of the fact that - theoretically - updating one of our top-level packages (@sentry/browser, @sentry/node, and all framework-specific packages) should also update all monorepo dependencies (@sentry/utils, @sentr...

Open Graph Description: Problem Statement In spite of the fact that - theoretically - updating one of our top-level packages (@sentry/browser, @sentry/node, and all framework-specific packages) should also update all mono...

X Description: Problem Statement In spite of the fact that - theoretically - updating one of our top-level packages (@sentry/browser, @sentry/node, and all framework-specific packages) should also update all mono...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[build] Bundle monorepo dependencies in npm packages","articleBody":"### Problem Statement\r\n\r\nIn spite of the fact that - theoretically - updating one of our top-level packages (`@sentry/browser`, `@sentry/node`, and all framework-specific packages) should also update all monorepo dependencies (`@sentry/utils`, `@sentry/core`, etc), it's come up as a problem multiple times that this doesn't always happen. As a result, people end up with crashes when, for example, a newer version of `@sentry/browser` calls upon a recently-added hub method, an older version of `@sentry/hub` is still installed, and the user ends up with a `undefined is not callable` error.\r\n\r\nThis never comes up as a problem for people using our CDN bundle, because in that case all monorepo dependencies are included in the bundle.\r\n\r\n### Solution Brainstorm\r\n\r\nTo solve this, let's include our monorepo dependencies in our npm packages the same way we do in our bundles. We can still publish the dependencies as separate packages, for anyone who specifically needs them (people building community SDKs for frameworks we don't support, for example), but we'd stop listing them as runtime dependencies.\r\n\r\n\r\n---------\r\n\r\nUPDATE: This is going to be trickier than I thought.\r\n\r\nLeaving a note here for myself, of things I've tried which have not yet worked, for when I come back to this:\r\n(tried with building nextjs SDK and bundling either utils or react packages)\r\n- move package to dev deps, don’t mark dev deps as external (adjust output for templates, loaders, adjust script to copy file to correct location)-> build/esm and build/cjs contain nextjs dir, dir for each non-external package, but doesn't work because other packages only contain esm, not cjs\r\n- symlink src folder from other package as nextjs/src/packages/\u003cpackagename> and change imports to point to that -> files from other package don't get included in build\r\n- symlink src/index.ts from other package into nextjs/src/packages/\u003cpackagename> and change imports to point to `./packages/\u003cpackagename> -> complains it can't find the module (not reading through symlink)\r\n- copy contents of other package src folder into nextjs/src/packages/\u003cpackagename> -> need to add all of other package's deps to nextjs package deps, turn on flags from other package builds (like jsx for react package)\r\n- copy correct files into build/esm and build/cjs folders, use `output.paths` rollup option to rewrite import to point to that folder -> replacement is hardcoded, so doesn't account for differences in relative path\r\n\r\nAlternative option: Crate post-install script to verify versions of all deps, warn or error if out of sync (Not perfect - some people turn off scripts - but a lot better than nothing)","author":{"url":"https://github.com/lobsterkatie","@type":"Person","name":"lobsterkatie"},"datePublished":"2022-10-05T14:12:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/5886"}

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:e4b05b6c-bb14-af12-4108-e80183f49e14
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDAAE:20A7C6:486049:5FFFDD:6B04DA02
html-safe-nonce7d31e9b792ec30befdf3d141ae45818eb1c94aa7ecf133c8494a3c22420aceda
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUFFOjIwQTdDNjo0ODYwNDk6NUZGRkREOjZCMDREQTAyIiwidmlzaXRvcl9pZCI6IjY5MTEzNDE4MTg3ODg0ODAwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2f004dc8ca51347a27d12b2af53189845ad635583087ccf7da3ff70579aecb47
hovercard-subject-tagissue:1397862210
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/5886/issue_layout
twitter:imagehttps://opengraph.githubassets.com/040ff68e1685cd44e815b672b631c92b482190a3940c029bd96534ff96cc093d/getsentry/sentry-javascript/issues/5886
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/040ff68e1685cd44e815b672b631c92b482190a3940c029bd96534ff96cc093d/getsentry/sentry-javascript/issues/5886
og:image:altProblem Statement In spite of the fact that - theoretically - updating one of our top-level packages (@sentry/browser, @sentry/node, and all framework-specific packages) should also update all mono...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelobsterkatie
hostnamegithub.com
expected-hostnamegithub.com
None194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965
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
release6c35540a0a2991ee20bd053ba2601cce33f72cb1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/5886#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F5886
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%2F5886
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/5886
Reloadhttps://github.com/getsentry/sentry-javascript/issues/5886
Reloadhttps://github.com/getsentry/sentry-javascript/issues/5886
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues334 (334)https://github.com/getsentry/sentry-javascript/issues
Pull requests51 (51)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/5886
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/5886
[build] Bundle monorepo dependencies in npm packageshttps://github.com/getsentry/sentry-javascript/issues/5886#top
Dev: Buildhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Dev%3A%20Build%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
8.0.0https://github.com/getsentry/sentry-javascript/milestone/15
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
on Oct 5, 2022https://github.com/getsentry/sentry-javascript/issues/5886#issue-1397862210
lobsterkatiehttps://github.com/lobsterkatie
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
Dev: Buildhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Dev%3A%20Build%22
on Oct 5, 2022https://github.com/getsentry/sentry-javascript/issues/5886#event-7525606247
lobsterkatiehttps://github.com/lobsterkatie
8.0.0https://github.com/getsentry/sentry-javascript/milestone/15
on Oct 5, 2022https://github.com/getsentry/sentry-javascript/issues/5886#event-7525781428
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Mar 6, 2023https://github.com/getsentry/sentry-javascript/issues/5886#issuecomment-1455908341
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 6, 2023https://github.com/getsentry/sentry-javascript/issues/5886#event-8672833130
AbhiPrasadhttps://github.com/AbhiPrasad
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
on Mar 6, 2023https://github.com/getsentry/sentry-javascript/issues/5886#event-8672834346
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/5886
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/5886
Dev: Buildhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Dev%3A%20Build%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
8.0.0https://github.com/getsentry/sentry-javascript/milestone/15
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.