Skip to content

Fix compatibility with node.js v16#28

Merged
astolcenburg merged 1 commit into
rdkcentral:mainfrom
astolcenburg:main
Apr 8, 2026
Merged

Fix compatibility with node.js v16#28
astolcenburg merged 1 commit into
rdkcentral:mainfrom
astolcenburg:main

Conversation

@astolcenburg
Copy link
Copy Markdown
Contributor

node:readline/promises is avaialble from node.js v17

node:readline/promises is avaialble from node.js v17
Copilot AI review requested due to automatic review settings April 7, 2026 19:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restores Node.js v16 compatibility by removing the dependency on node:readline/promises (introduced in newer Node versions) and replacing it with a small Promise wrapper around the callback-based readline API.

Changes:

  • Switch from node:readline/promises to node:readline.
  • Add an internal question() helper to provide an async/await-friendly prompt flow.
  • Update credential prompting to use the new helper for username/password input.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@astolcenburg astolcenburg merged commit 484c5e0 into rdkcentral:main Apr 8, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants