Skip to content

Conversation

@antonis
Copy link
Contributor

@antonis antonis commented Sep 30, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

⚠️ Based on #5195

📜 Description

Fixes @typescript-eslint/no-unnecessary-type-assertion errors

💡 Motivation and Context

Incoming changes from JS 10.15.0 getsentry/sentry-javascript#17728

💚 How did you test it?

CI

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

#skip-changelog

@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 430.64 ms 438.56 ms 7.92 ms
Size 17.75 MiB 19.69 MiB 1.94 MiB

Baseline results on branch: deps/scripts/update-javascript.sh

Startup times

Revision Plain With Sentry Diff
91d4b7d 406.98 ms 419.14 ms 12.16 ms
b48c857+dirty 371.82 ms 376.63 ms 4.82 ms
ff56633 463.52 ms 466.79 ms 3.27 ms
d8ec252 421.51 ms 442.57 ms 21.06 ms
1eed088+dirty 377.06 ms 365.22 ms -11.84 ms

App size

Revision Plain With Sentry Diff
91d4b7d 17.75 MiB 19.68 MiB 1.94 MiB
b48c857+dirty 17.75 MiB 19.68 MiB 1.94 MiB
ff56633 17.75 MiB 19.68 MiB 1.93 MiB
d8ec252 17.75 MiB 19.68 MiB 1.94 MiB
1eed088+dirty 17.75 MiB 19.69 MiB 1.94 MiB

Previous results on branch: antonis/fix-no-unnecessary-type-assertion

Startup times

Revision Plain With Sentry Diff
6cedabe+dirty 387.77 ms 390.37 ms 2.60 ms

App size

Revision Plain With Sentry Diff
6cedabe+dirty 17.75 MiB 19.69 MiB 1.94 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 518.88 ms 565.51 ms 46.64 ms
Size 7.15 MiB 8.42 MiB 1.27 MiB

Baseline results on branch: deps/scripts/update-javascript.sh

Startup times

Revision Plain With Sentry Diff
ff56633+dirty 324.65 ms 389.38 ms 64.72 ms
91d4b7d+dirty 359.58 ms 405.98 ms 46.40 ms
b48c857+dirty 353.60 ms 411.52 ms 57.92 ms
d8ec252+dirty 371.60 ms 416.64 ms 45.04 ms
1eed088+dirty 355.56 ms 384.47 ms 28.90 ms

App size

Revision Plain With Sentry Diff
ff56633+dirty 7.15 MiB 8.41 MiB 1.26 MiB
91d4b7d+dirty 7.15 MiB 8.41 MiB 1.26 MiB
b48c857+dirty 7.15 MiB 8.41 MiB 1.26 MiB
d8ec252+dirty 7.15 MiB 8.41 MiB 1.26 MiB
1eed088+dirty 7.15 MiB 8.42 MiB 1.27 MiB

Previous results on branch: antonis/fix-no-unnecessary-type-assertion

Startup times

Revision Plain With Sentry Diff
6cedabe+dirty 362.94 ms 403.38 ms 40.44 ms

App size

Revision Plain With Sentry Diff
6cedabe+dirty 7.15 MiB 8.42 MiB 1.27 MiB

@antonis antonis marked this pull request as ready for review September 30, 2025 15:15
Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions
Copy link
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1215.71 ms 1226.20 ms 10.49 ms
Size 2.63 MiB 3.98 MiB 1.35 MiB

Baseline results on branch: deps/scripts/update-javascript.sh

Startup times

Revision Plain With Sentry Diff
ff56633+dirty 1212.29 ms 1214.81 ms 2.52 ms
91d4b7d+dirty 1222.45 ms 1227.18 ms 4.73 ms
b48c857+dirty 1219.14 ms 1240.80 ms 21.66 ms
d8ec252+dirty 1207.53 ms 1214.22 ms 6.69 ms
1eed088+dirty 1233.41 ms 1233.63 ms 0.22 ms

App size

Revision Plain With Sentry Diff
ff56633+dirty 2.63 MiB 3.87 MiB 1.24 MiB
91d4b7d+dirty 2.63 MiB 3.91 MiB 1.28 MiB
b48c857+dirty 2.63 MiB 3.96 MiB 1.33 MiB
d8ec252+dirty 2.63 MiB 3.87 MiB 1.24 MiB
1eed088+dirty 2.63 MiB 3.98 MiB 1.35 MiB

@github-actions
Copy link
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1238.18 ms 1244.02 ms 5.84 ms
Size 3.19 MiB 4.55 MiB 1.36 MiB

Baseline results on branch: deps/scripts/update-javascript.sh

Startup times

Revision Plain With Sentry Diff
ff56633+dirty 1240.96 ms 1235.77 ms -5.19 ms
91d4b7d+dirty 1221.65 ms 1215.91 ms -5.74 ms
b48c857+dirty 1204.78 ms 1206.73 ms 1.96 ms
d8ec252+dirty 1223.06 ms 1219.64 ms -3.42 ms
1eed088+dirty 1220.49 ms 1225.57 ms 5.08 ms

App size

Revision Plain With Sentry Diff
ff56633+dirty 3.19 MiB 4.44 MiB 1.25 MiB
91d4b7d+dirty 3.19 MiB 4.48 MiB 1.29 MiB
b48c857+dirty 3.19 MiB 4.53 MiB 1.35 MiB
d8ec252+dirty 3.19 MiB 4.44 MiB 1.25 MiB
1eed088+dirty 3.19 MiB 4.55 MiB 1.36 MiB

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch from 8957c95 to 2c342bc Compare October 1, 2025 07:30
@antonis antonis merged commit cfed51c into deps/scripts/update-javascript.sh Oct 1, 2025
33 of 55 checks passed
@antonis antonis deleted the antonis/fix-no-unnecessary-type-assertion branch October 1, 2025 07:35
antonis added a commit that referenced this pull request Oct 3, 2025
* chore: update scripts/update-javascript.sh to 10.17.0

* chore(lint): fix @typescript-eslint/no-unnecessary-type-assertion (#5228)

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: Antonis Lilis <[email protected]>
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.

4 participants