Skip to content

build(deps): upgrade oxfmt to 0.60 and reformat - #22563

Merged
logaretm merged 5 commits into
developfrom
awad/oxfmt-reformat
Jul 28, 2026
Merged

build(deps): upgrade oxfmt to 0.60 and reformat#22563
logaretm merged 5 commits into
developfrom
awad/oxfmt-reformat

Conversation

@logaretm

@logaretm logaretm commented Jul 23, 2026

Copy link
Copy Markdown
Member

Bumps oxfmt (0.38 to 0.60) and applies the resulting reformatting.

@logaretm logaretm changed the title awad/oxfmt reformat build(deps): upgrade oxfmt to 0.60 and reformat Jul 23, 2026
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.84 kB - -
@sentry/browser - with treeshaking flags 28.05 kB - -
@sentry/browser (incl. Tracing) 47.12 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.13 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.83 kB - -
@sentry/browser (incl. Tracing, Replay) 86.43 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.15 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.79 kB - -
@sentry/browser (incl. Feedback) 47.15 kB - -
@sentry/browser (incl. sendFeedback) 34.68 kB - -
@sentry/browser (incl. FeedbackAsync) 39.78 kB - -
@sentry/browser (incl. Metrics) 30.91 kB - -
@sentry/browser (incl. Logs) 31.14 kB - -
@sentry/browser (incl. Metrics & Logs) 31.82 kB - -
@sentry/react 31.63 kB - -
@sentry/react (incl. Tracing) 49.35 kB - -
@sentry/vue 34.76 kB - -
@sentry/vue (incl. Tracing) 49.08 kB - -
@sentry/svelte 29.87 kB - -
CDN Bundle 31.89 kB - -
CDN Bundle (incl. Tracing) 47.47 kB - -
CDN Bundle (incl. Logs, Metrics) 33.44 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.84 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.8 kB - -
CDN Bundle (incl. Tracing, Replay) 85.11 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.19 kB - -
CDN Bundle - uncompressed 95.11 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.33 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.82 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.31 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.58 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.58 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.29 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.24 kB - -
@sentry/nextjs (client) 51.94 kB - -
@sentry/sveltekit (client) 47.54 kB - -
@sentry/core/server 79.78 kB - -
@sentry/core/browser 51.61 kB - -
@sentry/node 121.06 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 84.48 kB - -
@sentry/aws-serverless 92.7 kB - -
@sentry/cloudflare (withSentry) - minified 197.78 kB - -
@sentry/cloudflare (withSentry) 486.16 kB - -

View base workflow run

@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 16adca0 to 2b29b4b Compare July 23, 2026 16:49
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 2b29b4b to 85225ae Compare July 23, 2026 17:06
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 85225ae to 72518b7 Compare July 23, 2026 18:41
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 72518b7 to 46741af Compare July 24, 2026 20:01
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 46741af to 508fd14 Compare July 27, 2026 15:24
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 508fd14 to c15aa63 Compare July 27, 2026 15:50
@logaretm
logaretm marked this pull request as ready for review July 27, 2026 16:58
@logaretm
logaretm requested review from a team as code owners July 27, 2026 16:58
@logaretm
logaretm requested review from JPeer264, Lms24, isaacs, msonnb, nicohrubec and s1gr1d and removed request for a team July 27, 2026 16:58
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from c15aa63 to 968c086 Compare July 27, 2026 19:57
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 968c086 to cb3e789 Compare July 27, 2026 19:58

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Formatting changes look good, just had one comment we should resolve prior to merging.

export function setAttribute<
// oxlint-disable-next-line typescript-eslint/no-explicit-any
T extends RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown,
T extends (RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this I find interesting: I thought formatters tried to avoid unnecessary brackets as much as possible. I have no objections to adding the brackets here but just wondering if you know why it chose to add them. Anyway, just curious not a blocker for this PR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, when I looked it seemed like this one introduced it oxc-project/oxc#24450 but no reasoning is given.

Comment on lines +296 to +301
async function _getResponseText(response: Response): Promise<string> {
return response.text();
// Force this to be a promise, just to be safe. The extra microtask tick is load-bearing for
// network-breadcrumb timing (dropping it makes handleNetworkBreadcrumbs serialize before the
// fetch details are attached).
// oxlint-disable-next-line typescript/return-await -- see above; the await must stay
return await response.text();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m: should this be part of this PR? Looks like a bugfix 🤔

@logaretm logaretm Jul 28, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a stranded commit that I dropped in the earlier PR, I have no idea why it is here. Thanks for catching this!

Removed this diff.

@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from cb3e789 to 0942642 Compare July 28, 2026 13:57

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0942642. Configure here.

Comment thread packages/replay-internal/src/coreHandlers/util/fetchUtils.ts Outdated
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 0942642 to 0e43976 Compare July 28, 2026 14:40
Base automatically changed from awad/upgrade-oxlint to develop July 28, 2026 14:47
@logaretm
logaretm requested a review from a team as a code owner July 28, 2026 14:47
@logaretm
logaretm requested a review from Lms24 July 28, 2026 15:39
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 0e43976 to 81a7bf1 Compare July 28, 2026 17:23
logaretm added 5 commits July 28, 2026 14:08
Clears the type-aware errors that appeared once real program diagnostics
were re-enabled:

- Removes unnecessary type assertions and the now-unused type imports they
  leave behind (oxlint --fix), and drops a dead pino integration interface.
- Consolidates the dedupe stacktrace/fingerprint guards so narrowing works
  without the old assignment-cast idiom.
- Migrates the terser plugin from the deprecated `output` option to `format`.
- Renames stale disable directives to the new rule names
  (`typescript-eslint(...)` -> `typescript/...`) for unbound-method and the
  HTTP_URL no-deprecated suppressions.
- Adds no-deprecated suppressions where we intentionally read our own
  deprecated options for back-compat, and return-await suppressions where an
  await is deliberate (node-cron) or the cast makes the rule misfire.
…ssary

`no-unnecessary-type-assertion` (tsgolint) reports several casts as redundant,
but they are load-bearing: it only checks assignability at the cast site and
misses that the cast changes the expression's resulting type for downstream
use. Removing them type-checks locally but fails the real `tsc` build (verified:
both tsconfig.json and tsconfig.types.json error identically without the cast).

Restores each cast with a targeted suppression: a Cloudflare-only client option,
LCP/INP PerformanceEntry fields, a Vue VNode probe, mysql/postgres vendored
connection shapes, the view-hierarchy identifier, and the internal
`shouldNotThrowOnFailure` on setCommits. eventbuilder instead uses a typed
`Exception` variable so no cast (or suppression) is needed there.
Bumps the formatter and applies its reformatting in the following commit.
Kept separate from the oxlint/tsgolint upgrade so the (purely mechanical)
formatting diff stays contained.
@logaretm
logaretm force-pushed the awad/oxfmt-reformat branch from 81a7bf1 to 2eb8e6d Compare July 28, 2026 18:26
@logaretm
logaretm merged commit a5f43c0 into develop Jul 28, 2026
271 checks passed
@logaretm
logaretm deleted the awad/oxfmt-reformat branch July 28, 2026 18:59
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.

2 participants