René's URL Explorer Experiment


Title: ref(hub): Convert `Session` class to object and functions by Lms24 · Pull Request #5054 · getsentry/sentry-javascript · GitHub

Open Graph Title: ref(hub): Convert `Session` class to object and functions by Lms24 · Pull Request #5054 · getsentry/sentry-javascript

X Title: ref(hub): Convert `Session` class to object and functions by Lms24 · Pull Request #5054 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: This PR converts the Session class to a more FP style Session object with additional functions that replace the methods of the class. API-wise, This PR makes the following changes: new Session(con...

X Description: This PR converts the Session class to a more FP style Session object with additional functions that replace the methods of the class. API-wise, This PR makes the following changes: new Session(con...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/5054

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9a76fce3-252f-0e7a-d3c9-43de0ff5604c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE82:1CC3D6:34590:468DB:6B042CCE
html-safe-nonceb2ba91f9c31a90609d1dd62b0befa94a1ecdbc2492efadacf2c3578240758535
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTgyOjFDQzNENjozNDU5MDo0NjhEQjo2QjA0MkNDRSIsInZpc2l0b3JfaWQiOiI1NDcxOTU2MTE0NDgwOTM5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac161e0aba1a52cb8e1dfe122132e4230473d901f797807349b2e59786f5172516
hovercard-subject-tagpull_request:931067224
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/5054/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/902086bf9729e4be25a22cded0d78456de41804a3f5b5c5cf3b43e2dd279d204/getsentry/sentry-javascript/pull/5054
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/902086bf9729e4be25a22cded0d78456de41804a3f5b5c5cf3b43e2dd279d204/getsentry/sentry-javascript/pull/5054
og:image:altThis PR converts the Session class to a more FP style Session object with additional functions that replace the methods of the class. API-wise, This PR makes the following changes: new Session(con...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLms24
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/5054#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F5054
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%2Fpull%2F5054
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/5054
Reloadhttps://github.com/getsentry/sentry-javascript/pull/5054
Reloadhttps://github.com/getsentry/sentry-javascript/pull/5054
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 requests57 (57)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
Lms24https://github.com/Lms24
7.xhttps://github.com/getsentry/sentry-javascript/tree/7.x
lms-ref-sessionshttps://github.com/getsentry/sentry-javascript/tree/lms-ref-sessions
Conversationhttps://github.com/getsentry/sentry-javascript/pull/5054
Commits15 (15)https://github.com/getsentry/sentry-javascript/pull/5054/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/5054/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/5054/files
ref(hub): Convert Session class to object and functionshttps://github.com/getsentry/sentry-javascript/pull/5054#top
Lms24https://github.com/Lms24
7.xhttps://github.com/getsentry/sentry-javascript/tree/7.x
lms-ref-sessionshttps://github.com/getsentry/sentry-javascript/tree/lms-ref-sessions
https://github.com/Lms24
Lms24https://github.com/Lms24
May 9, 2022https://github.com/getsentry/sentry-javascript/pull/5054#issue-1229587536
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
https://getsentry.atlassian.net/browse/WEB-815https://getsentry.atlassian.net/browse/WEB-815
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 9, 2022https://github.com/getsentry/sentry-javascript/pull/5054#issuecomment-1121011324
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
https://github.com/Lms24
Lms24https://github.com/Lms24
7.0.0https://github.com/getsentry/sentry-javascript/milestone/7
May 9, 2022https://github.com/getsentry/sentry-javascript/pull/5054#event-6573344624
https://github.com/Lms24
Lms24https://github.com/Lms24
May 9, 2022 15:51https://github.com/getsentry/sentry-javascript/pull/5054#event-6574370497
https://github.com/Lms24
Lms24https://github.com/Lms24
AbhiPrasadhttps://github.com/AbhiPrasad
May 9, 2022 15:52https://github.com/getsentry/sentry-javascript/pull/5054#event-6574370870
https://github.com/Lms24
Lms24https://github.com/Lms24
May 9, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#pullrequestreview-966403429
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/5054/files
MIGRATION.mdhttps://github.com/getsentry/sentry-javascript/pull/5054/files#diff-c1603ee6a674bb75255aa448057630506153e363297fd58668e6679f10909bc6
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
May 10, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#pullrequestreview-967957740
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/5054/files
packages/hub/src/hub.tshttps://github.com/getsentry/sentry-javascript/pull/5054/files#diff-be5ea8f29de1ad067b3e9622555bdb93572ed6bcfb46afa75afd7ccbeedb06da
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
packages/core/test/lib/base.test.tshttps://github.com/getsentry/sentry-javascript/pull/5054/files#diff-5b9f939ca4d66e757a1b0fcbe13bc0503b6977b5f16d24d822b6f75ae7d6787f
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
Lms24https://github.com/Lms24
May 11, 2022 13:14https://github.com/getsentry/sentry-javascript/pull/5054#commits-pushed-2043e2e
https://github.com/Lms24
add new session Interface and SessionContext, adjust usage in code an…https://github.com/getsentry/sentry-javascript/pull/5054/commits/2043e2e3edc2eaeb18e7cf3bf4c0bf1a2eabf180
2043e2ehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/2043e2e3edc2eaeb18e7cf3bf4c0bf1a2eabf180
https://github.com/Lms24
fix hub testshttps://github.com/getsentry/sentry-javascript/pull/5054/commits/c8fa82ec75b3a6a0c57a863887512855d344dfce
c8fa82ehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/c8fa82ec75b3a6a0c57a863887512855d344dfce
https://github.com/Lms24
fix core unit testshttps://github.com/getsentry/sentry-javascript/pull/5054/commits/2a980611a2abf10066997af97246089b61c44543
2a98061https://github.com/getsentry/sentry-javascript/pull/5054/commits/2a980611a2abf10066997af97246089b61c44543
https://github.com/Lms24
re-add toJSON to Session interface, mutate session update/close funct…https://github.com/getsentry/sentry-javascript/pull/5054/commits/2356f3ec78a51107db07f6f0c88190cf7bb7039e
2356f3ehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/2356f3ec78a51107db07f6f0c88190cf7bb7039e
https://github.com/Lms24
make default-intitialized properties required in Session interfacehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/595384880ce68cbc3e13f2980bc1494730ff5f9d
5953848https://github.com/getsentry/sentry-javascript/pull/5054/commits/595384880ce68cbc3e13f2980bc1494730ff5f9d
https://github.com/Lms24
fix linter error (hub)https://github.com/getsentry/sentry-javascript/pull/5054/commits/8971da4a5a90f86a243f845857ca48d815211cb4
8971da4https://github.com/getsentry/sentry-javascript/pull/5054/commits/8971da4a5a90f86a243f845857ca48d815211cb4
https://github.com/Lms24
fix linter error (node)https://github.com/getsentry/sentry-javascript/pull/5054/commits/607b2bb1189b8ab504e8f7e7154a9692dafdaba1
607b2bbhttps://github.com/getsentry/sentry-javascript/pull/5054/commits/607b2bb1189b8ab504e8f7e7154a9692dafdaba1
https://github.com/Lms24
do not sessionToJSONhttps://github.com/getsentry/sentry-javascript/pull/5054/commits/2c65f63d6a3ad027d8070c117d8cdd5fc03c492c
2c65f63https://github.com/getsentry/sentry-javascript/pull/5054/commits/2c65f63d6a3ad027d8070c117d8cdd5fc03c492c
https://github.com/Lms24
cleanup, remove done todohttps://github.com/getsentry/sentry-javascript/pull/5054/commits/d27fbce53c5c2a379a81148be7b2e27ca3bf8e3b
d27fbcehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/d27fbce53c5c2a379a81148be7b2e27ca3bf8e3b
https://github.com/Lms24
remove unnecessary definedness checks after interface updatehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/59dd0ca0e5e86c95153589c14b77ea18c8942df2
59dd0cahttps://github.com/getsentry/sentry-javascript/pull/5054/commits/59dd0ca0e5e86c95153589c14b77ea18c8942df2
https://github.com/Lms24
add migration notehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/e27e2110a9c3c806616ed1b13324dca03659405e
e27e211https://github.com/getsentry/sentry-javascript/pull/5054/commits/e27e2110a9c3c806616ed1b13324dca03659405e
https://github.com/Lms24
Add "Session Changes" section to Migration docshttps://github.com/getsentry/sentry-javascript/pull/5054/commits/3967cf90cc9a158b483c0f6bfb3a519e4bdbdb84
3967cf9https://github.com/getsentry/sentry-javascript/pull/5054/commits/3967cf90cc9a158b483c0f6bfb3a519e4bdbdb84
https://github.com/Lms24
export all Session functions from hub index, remove unnecessary Sessi…https://github.com/getsentry/sentry-javascript/pull/5054/commits/7b60e2274ca298d188af92849c471c94babc3e9f
7b60e22https://github.com/getsentry/sentry-javascript/pull/5054/commits/7b60e2274ca298d188af92849c471c94babc3e9f
https://github.com/Lms24
fix linter error in corehttps://github.com/getsentry/sentry-javascript/pull/5054/commits/f4e60c1c44ed0cb3e0710673c65284e7b2b1bdd9
f4e60c1https://github.com/getsentry/sentry-javascript/pull/5054/commits/f4e60c1c44ed0cb3e0710673c65284e7b2b1bdd9
https://github.com/Lms24
remove scope.getSession definedness checkhttps://github.com/getsentry/sentry-javascript/pull/5054/commits/6dc3e506efe4b79c85d879f83abf46be58cf0277
6dc3e50https://github.com/getsentry/sentry-javascript/pull/5054/commits/6dc3e506efe4b79c85d879f83abf46be58cf0277
https://github.com/Lms24
Lms24https://github.com/Lms24
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/f8443eb67a173da5774e486e0b55531cfcbe0dc6..6dc3e506efe4b79c85d879f83abf46be58cf0277
f8443ebhttps://github.com/getsentry/sentry-javascript/commit/f8443eb67a173da5774e486e0b55531cfcbe0dc6
6dc3e50https://github.com/getsentry/sentry-javascript/commit/6dc3e506efe4b79c85d879f83abf46be58cf0277
Compare https://github.com/getsentry/sentry-javascript/compare/f8443eb67a173da5774e486e0b55531cfcbe0dc6..6dc3e506efe4b79c85d879f83abf46be58cf0277
May 11, 2022 11:16https://github.com/getsentry/sentry-javascript/pull/5054#event-6589294797
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
May 11, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#pullrequestreview-969202139
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/5054/files/6dc3e506efe4b79c85d879f83abf46be58cf0277
https://github.com/Lms24
Lms24https://github.com/Lms24
656d7c4https://github.com/getsentry/sentry-javascript/commit/656d7c498a91692bd1627870af6f28498dd0333b
May 11, 2022https://github.com/getsentry/sentry-javascript/pull/5054#event-6590354063
https://github.com/Lms24
Lms24https://github.com/Lms24
May 11, 2022 13:22https://github.com/getsentry/sentry-javascript/pull/5054#event-6590354209
https://github.com/Lms24
Lms24https://github.com/Lms24
May 11, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#ref-pullrequest-1232642382
chore(docs): Fix unresolved rebase conflict in Migration.MD #5076 https://github.com/getsentry/sentry-javascript/pull/5076
Lms24https://github.com/Lms24
May 11, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#ref-commit-6536eb6
https://github.com/Lms24
chore(docs): Fix unresolved rebase conflict in Migration.MD (https://github.com/getsentry/sentry-javascript/commit/6536eb6e4864d6456b95c41ac4d5696938ed800c
#5076https://github.com/getsentry/sentry-javascript/pull/5076
)https://github.com/getsentry/sentry-javascript/commit/6536eb6e4864d6456b95c41ac4d5696938ed800c
6536eb6https://github.com/getsentry/sentry-javascript/commit/6536eb6e4864d6456b95c41ac4d5696938ed800c
#5054https://github.com/getsentry/sentry-javascript/pull/5054
https://github.com/Lms24
Lms24https://github.com/Lms24
May 17, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#ref-pullrequest-1235407528
feat(core): Send Baggage in Envelope Header #5104 https://github.com/getsentry/sentry-javascript/pull/5104
AbhiPrasadhttps://github.com/AbhiPrasad
May 30, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#ref-commit-3eee491
https://github.com/Lms24
https://github.com/AbhiPrasad
ref(hub): Converthttps://github.com/getsentry/sentry-javascript/commit/3eee491ec4df85a0001b37789e8c589b0692975b
Sessionhttps://github.com/getsentry/sentry-javascript/commit/3eee491ec4df85a0001b37789e8c589b0692975b
class to object and functions (https://github.com/getsentry/sentry-javascript/commit/3eee491ec4df85a0001b37789e8c589b0692975b
#5054https://github.com/getsentry/sentry-javascript/pull/5054
)https://github.com/getsentry/sentry-javascript/commit/3eee491ec4df85a0001b37789e8c589b0692975b
3eee491https://github.com/getsentry/sentry-javascript/commit/3eee491ec4df85a0001b37789e8c589b0692975b
AbhiPrasadhttps://github.com/AbhiPrasad
May 30, 2022 https://github.com/getsentry/sentry-javascript/pull/5054#ref-commit-98a7789
https://github.com/Lms24
https://github.com/AbhiPrasad
chore(docs): Fix unresolved rebase conflict in Migration.MD (https://github.com/getsentry/sentry-javascript/commit/98a7789b85f0d33fde4d1e1927859c719b873154
#5076https://github.com/getsentry/sentry-javascript/pull/5076
)https://github.com/getsentry/sentry-javascript/commit/98a7789b85f0d33fde4d1e1927859c719b873154
98a7789https://github.com/getsentry/sentry-javascript/commit/98a7789b85f0d33fde4d1e1927859c719b873154
#5054https://github.com/getsentry/sentry-javascript/pull/5054
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F5054
https://github.com/kamilogorek
kamilogorek https://github.com/kamilogorek
https://github.com/getsentry/sentry-javascript/pull/5054/files/5c81e32c45b2602ce1e65ec6b816c04ffdb31dc1
https://github.com/AbhiPrasad
AbhiPrasad https://github.com/AbhiPrasad
https://github.com/getsentry/sentry-javascript/pull/5054/files/6dc3e506efe4b79c85d879f83abf46be58cf0277
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
7.0.0 https://github.com/getsentry/sentry-javascript/milestone/7
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/5054
https://github.com/Lms24
https://github.com/kamilogorek
https://github.com/AbhiPrasad
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.