Skip to content

chore: update @types/node to match with version embedded in Electron 3.x - #18239

Closed
shiftkey wants to merge 1 commit into
electron:3-1-xfrom
shiftkey:use-types-for-node-10
Closed

shiftkey wants to merge 1 commit into
electron:3-1-xfrom
shiftkey:use-types-for-node-10

Conversation

@shiftkey

@shiftkey shiftkey commented May 9, 2019 •

Copy link
Copy Markdown
Contributor

Description of Change

Backport of #16174

Electron 3 embeds Node 10.2.0, but the corresponding @types/node declaration is still on 8.something.

It looks like the original PR #16174 was backported to v4 in #16177 but there wasn't a backport to v3, so here's me trying to do this.

I thought I'd be able to hack around this using yarn's resolutions trick:

  "resolutions": {
    "**/@types/node": "10.1.4"
  }

But even that is not happy with me:

Maybe it works anyway?

Not sure what other checks I need to do while I'm in here to catch any potential regressions, but I'll see what CI does first.

Checklist

Release Notes

Notes: Update @types/node dependency to version compatible with Node 10.2.0

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 9, 2019
@shiftkey shiftkey changed the title [WIP] chore: update @types/node to match with version embedded in Electron 3.x chore: update @types/node to match with version embedded in Electron 3.x May 9, 2019
@shiftkey
shiftkey marked this pull request as ready for review May 9, 2019 22:50
Comment thread npm/package.json
"types": "electron.d.ts",
"dependencies": {
"@types/node": "^8.0.24",
"@types/node": "^10.1.4",

@shiftkey shiftkey May 9, 2019 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This version might seem weird, but @types/node literally skipped the 10.2.x range:

@shiftkey

Copy link
Copy Markdown
Contributor Author

Closing this out in favour of #18283 but I'm not 100% sure how this change is affecting the tests 🤔

@shiftkey shiftkey closed this May 22, 2019
@shiftkey
shiftkey deleted the use-types-for-node-10 branch May 22, 2019 16:13
@shiftkey
shiftkey restored the use-types-for-node-10 branch June 3, 2019 17:20
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.

1 participant