Skip to content

Conversation

jakebailey
Copy link
Member

This removes the places where we check if we're in Node 4 as we at a minimum realistically only support Node 10.

Also, remove a helper for parsing out the node version; it's only used for a debug log.

@jakebailey jakebailey requested a review from sheetalkamat March 9, 2023 04:40
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Mar 9, 2023
@@ -1449,21 +1449,6 @@ declare const global: any;
declare const __filename: string;
declare const __dirname: string;

export function getNodeMajorVersion(): number | undefined {
Copy link
Member Author

Choose a reason for hiding this comment

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

I could leave this, but, it's always going to be in the git history.

Copy link
Member Author

Choose a reason for hiding this comment

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

Wow, this was public. Why?

Copy link
Member

Choose a reason for hiding this comment

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

Consider cherry-picking to release-5.0?

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 whole PR? Or should I just make the function internal so it looks like it's going away?

@jakebailey
Copy link
Member Author

@typescript-bot cherry-pick this to release-5.0

@typescript-bot
Copy link
Collaborator

Heya @jakebailey, I'm starting to run the task to cherry-pick this into release-5.0 on this PR at 036e568. Hold tight - I'll update this comment with the log link once the build has been queued.

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, I've opened #53189 for you.

typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Mar 9, 2023
Component commits:
16a8abd Remove old references to Node v4

5a62810 Remove function only used for logging

036e568 Update baselines (this was public???)
@jakebailey jakebailey added this to the TypeScript 5.0.2 milestone Mar 9, 2023
@jakebailey jakebailey merged commit ddcbd9f into microsoft:main Mar 9, 2023
@jakebailey jakebailey deleted the old-node-cleanup branch March 9, 2023 22:32
DanielRosenwasser pushed a commit that referenced this pull request Mar 14, 2023
drivron pushed a commit to scenari/typescript that referenced this pull request Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants