Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

Node Deprecation Warning #2371

Closed jphines57 closed 3 months ago

jphines57 commented 5 months ago

When using scripts.v3 and running the node ./migrate script it now shows this warning:

Exporting... (node:14604) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

malincrist commented 5 months ago

Hello @jphines57 , thanks for reaching out. I am not able to reproduce the issue you described. With latest master, if I use the migrate script from scripts.v3, there is no deprecation warning. image

jphines57 commented 5 months ago

Hello malincrist, That's strange, do I need a different version of npm or node?

$ npm version
{
  npm: '10.3.0',
  node: '21.6.0'
}
malincrist commented 5 months ago

Thanks for the clarification. Looks like punycode is runtime deprecated from node version 21.0.0. I was using node 20.11.0 and hence not getting the warning.

I created an internal work item to address this issue, thank you for reporting it!

sthirthala commented 3 months ago

Looks like issue is resolved and we can close it