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

Support Node.js 18 and 19 #82

Merged
merged 3 commits into from
Jan 12, 2023
Merged

Support Node.js 18 and 19 #82

merged 3 commits into from
Jan 12, 2023

Conversation

ewanharris
Copy link
Contributor

This adds support for Node.js 18 and 19 in the simplest way possible (i.e. without any significant build process changes or changes to the SDK or ioslib)

Breaking down each commit:

  • 0b2b14d - Adds the openssl_fips to support building for older versions of node on newer versions (17+)
  • 33a9ce4 - Updates nan and node-pre-gyp
  • 4652c0c - Adds support for Node.js 18 and 19, this is doing by using patch-package to edit the abi_crosswalk.json within node-pre-gyp that is used to map the node version to the module/v8 version. This is required as node-pre-gyp is seemingly no longer maintained

Closes #81

As node-pre-gyp is no longer maintained this is the path of least resistance to adding new versions,
we include a patch within this project that updates the abi_crosswalk file within node-pre-gyp that
is used to map the versions of node to their module/v8 versions. Then in run.js we call patch-package
before spawning anything to ensure that our patches are applied correctly.

This isn't by any means perfect but it's the quickest way to update the supported versions of node
without having to go and make any major refactors to the setup here, or the code in ioslib/the SDK
@ewanharris ewanharris mentioned this pull request Jan 11, 2023
@m1ga m1ga mentioned this pull request Jan 11, 2023
31 tasks
Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

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

Unreal. Tested Node 18 and 19, both work great. I can't believe how hacky things are. Really need to update ioslib to node_ios_device v3. APPROVED

@cb1kenobi cb1kenobi merged commit 3a704cc into tidev:1_X Jan 12, 2023
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