Skip to content

chore(dev): Update ts-node to 10.7 #4976

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

Merged
merged 2 commits into from
Apr 26, 2022
Merged

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Apr 26, 2022

This updates ts-node to latest, and adds a command to the Node 8 test setup to downgrade it again, for compatibility. (Unlike the other downgrading of packages for Node 8 and 10 tests, this has to happen outside of our test.ts script, because it's the thing that's running that script in the first place.)

@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.86 KB (-1.41% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 63.09 KB (-2.36% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.54 KB (-1.72% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 56.81 KB (-2% 🔽)
@sentry/browser - Webpack (gzipped + minified) 21.77 KB (-6.3% 🔽)
@sentry/browser - Webpack (minified) 74.12 KB (-9.3% 🔽)
@sentry/react - Webpack (gzipped + minified) 21.81 KB (-6.3% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 46.21 KB (-3.83% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.67 KB (-1.54% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.09 KB (-1.61% 🔽)

@lobsterkatie lobsterkatie force-pushed the kmclb-update-ts-node-to-10.7 branch from f845175 to feb11ab Compare April 26, 2022 08:10
@lobsterkatie lobsterkatie marked this pull request as ready for review April 26, 2022 08:33
Copy link
Contributor

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Generally looks good to me. However, is there a reason we need to Upgrade?

Also: ts-node@10 seems to have node minimum version 12 - wondering if this is relevant.

@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone Apr 26, 2022
@lobsterkatie
Copy link
Member Author

lobsterkatie commented Apr 26, 2022

Generally looks good to me. However, is there a reason we need to Upgrade?

I'll be totally honest, at this point I'd have to downgrade again and test everything out to know for sure. I upgraded as part of debugging a problem I was having with one of the new scripts for the build process, but I can't say for dead sure now whether it was necessary for the eventual fix. Either way, once I'd done the work to get the upgrade going, it seemed silly to roll it back, since we'll have to upgrade eventually in any case.

Also: ts-node@10 seems to have node minimum version 12 - wondering if this is relevant.

Good detective work. My guess is that either a) it's a YMMV situation, where it's not incompatible but they don't want to be held to making it work with Node 10 or b) whatever part of it is incompatible with Node 10 isn't a part we're using. For now the Node 10 tests are passing, and since it's a dev dependency, we have total control of how it and our SDK interact (and we know for sure it's not going to break a customer's build). If something comes up where it turns into a problem, we can always roll back to version 9 for the Node 10 tests the way we roll back to version 8 for the Node 8 tests.

(Not meaning to dismiss either concern - they're valid questions! But in this case I think both are okay.)

@lobsterkatie lobsterkatie merged commit ffad68e into 7.x Apr 26, 2022
@lobsterkatie lobsterkatie deleted the kmclb-update-ts-node-to-10.7 branch April 26, 2022 13:55
Lms24 pushed a commit that referenced this pull request Apr 26, 2022
This updates `ts-node` to latest, and adds a command to the Node 8 test setup to downgrade it again, for compatibility. (Unlike the other downgrading of packages for Node 8 and 10 tests, this has to happen outside of our `test.ts` script, because it's the thing that's running that script in the first place.)
lobsterkatie added a commit that referenced this pull request Apr 26, 2022
This updates `ts-node` to latest, and adds a command to the Node 8 test setup to downgrade it again, for compatibility. (Unlike the other downgrading of packages for Node 8 and 10 tests, this has to happen outside of our `test.ts` script, because it's the thing that's running that script in the first place.)
lobsterkatie added a commit that referenced this pull request Apr 26, 2022
This updates `ts-node` to latest, and adds a command to the Node 8 test setup to downgrade it again, for compatibility. (Unlike the other downgrading of packages for Node 8 and 10 tests, this has to happen outside of our `test.ts` script, because it's the thing that's running that script in the first place.)
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
This updates `ts-node` to latest, and adds a command to the Node 8 test setup to downgrade it again, for compatibility. (Unlike the other downgrading of packages for Node 8 and 10 tests, this has to happen outside of our `test.ts` script, because it's the thing that's running that script in the first place.)
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.

3 participants