Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump volta to node 20 #15315

Merged
merged 3 commits into from
Feb 6, 2025
Merged

chore: Bump volta to node 20 #15315

merged 3 commits into from
Feb 6, 2025

Conversation

chargome
Copy link
Member

@chargome chargome commented Feb 5, 2025

This PR bumps our volta field to use Node 20, which will be required for building upcoming SDK versions (Nest@11, RR@7)

@chargome chargome self-assigned this Feb 5, 2025
@@ -199,6 +199,10 @@ export function extractType(ex: Error & { message: { error?: Error } }): string
export function extractMessage(ex: Error & { message: { error?: Error } }): string {
const message = ex?.message;

if (isWebAssemblyException(ex)) {
return 'wasm exception';
Copy link
Member Author

Choose a reason for hiding this comment

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

This failed on node versions > 18, also tested it in integration tests.
Decided to hardcode it, as opposed to ex.toString() which returns [object WebAssembly.Exception

@chargome chargome marked this pull request as ready for review February 6, 2025 10:58
Copy link
Contributor

github-actions bot commented Feb 6, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.9 KB +0.04% +9 B 🔺
@sentry/browser - with treeshaking flags 22.69 KB +0.04% +7 B 🔺
@sentry/browser (incl. Tracing) 35.78 KB +0.04% +11 B 🔺
@sentry/browser (incl. Tracing, Replay) 72.59 KB +0.02% +12 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.06 KB +0.02% +10 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 76.83 KB +0.02% +11 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 89.57 KB +0.01% +9 B 🔺
@sentry/browser (incl. Feedback) 39.85 KB +0.02% +8 B 🔺
@sentry/browser (incl. sendFeedback) 27.53 KB +0.03% +8 B 🔺
@sentry/browser (incl. FeedbackAsync) 32.32 KB +0.04% +10 B 🔺
@sentry/react 24.74 KB +0.03% +7 B 🔺
@sentry/react (incl. Tracing) 37.67 KB +0.02% +7 B 🔺
@sentry/vue 27.1 KB +0.03% +7 B 🔺
@sentry/vue (incl. Tracing) 37.48 KB +0.02% +7 B 🔺
@sentry/svelte 22.94 KB +0.05% +10 B 🔺
CDN Bundle 24.13 KB +0.04% +8 B 🔺
CDN Bundle (incl. Tracing) 35.85 KB +0.03% +9 B 🔺
CDN Bundle (incl. Tracing, Replay) 70.49 KB +0.02% +8 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 75.63 KB +0.02% +10 B 🔺
CDN Bundle - uncompressed 70.59 KB +0.03% +16 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 106.47 KB +0.02% +16 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 217.33 KB +0.01% +16 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 229.89 KB +0.01% +16 B 🔺
@sentry/nextjs (client) 38.64 KB +0.04% +12 B 🔺
@sentry/sveltekit (client) 36.21 KB +0.03% +8 B 🔺
@sentry/node 156.58 KB - -
@sentry/node - without tracing 97.58 KB - -
@sentry/aws-serverless 107.07 KB - -

View base workflow run

@chargome chargome requested a review from mydea February 6, 2025 11:07
@@ -207,11 +211,6 @@ export function extractMessage(ex: Error & { message: { error?: Error } }): stri
return message.error.message;
}

// Emscripten sets array[type, message] to the "message" property on the WebAssembly.Exception object
if (isWebAssemblyException(ex) && Array.isArray(ex.message) && ex.message.length == 2) {
Copy link
Member

Choose a reason for hiding this comment

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

should we leave this for legacy stuff? Not sure if/how relevant this is...

Copy link
Member Author

Choose a reason for hiding this comment

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

hm yeah I updated it to fallback to 'wasm exception' now

Copy link

codecov bot commented Feb 6, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
700 1 699 301
View the top 1 failed tests by shortest run time
sessions/start-session/test.ts should start a new session with navigation.
Stack Traces | 0.527s run time
test.ts:18:11 should start a new session with navigation.

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@chargome chargome merged commit f2a777a into develop Feb 6, 2025
143 of 145 checks passed
@chargome chargome deleted the cg/bump-ci-to-node-20 branch February 6, 2025 12:58
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