GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — fix(nextjs): Register safe random ID context at module load by chargome · Pull Request #21573 · getsentry/sentry-javascript Conversation
Member
Build workers still import the SDK (for closes #21510
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Bugbot reviewed your changes and found no new issues! Comment Reviewed by Cursor Bugbot for commit 2be9761. Configure here.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
chargome
marked this pull request as ready for review
chargome
requested review from
logaretm,
nicohrubec and
s1gr1d
and removed request for
a team
nicohrubec
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lgtm
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
logaretm
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
48 tasks
3 tasks done
This was referenced
Closed
chargome
pushed a commit
that referenced
this pull request
…26474) ## What Prevent CPU profile flushes from reading the ambient clock during Next.js Cache Components prerendering. The regression test rejects both zero-argument `new Date()` and `Date.now()` outside the safe context and verifies a valid envelope timestamp. ## Why The profiling package has its own envelope-header builder, which was not covered by the core timestamp fix in #21351 for #21333. #21510 and #21573 address random-ID setup in build workers; this path already has the safe runner available but bypasses it when creating `sent_at`. Using core's existing `safeDateNow()` follows the responsibility split in #18700: Next.js supplies the safe context and shared SDK code uses it without importing the framework. It also keeps the escape limited to a telemetry timestamp, consistent with [gnoff's warning about broader context escapes](#18700 (comment)). [Maintainer go-ahead](#26431 (comment)). Validated with `pnpm run format`, `pnpm run build:dev`, `pnpm run lint`, and the profiling package's type-aware lint and full test suite (27 tests, including worker integration). The regression fails before the fix and passes after it. An additional test-program typecheck reports the same five pre-existing diagnostics with and without this test; the new test typechecks independently. Closes #26431 Co-authored-by: OpenAI GPT-6 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. captureException duringnext build prerender fails cacheComponents routes (safe-random runner never registered in build workers)
Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |