auth0-extensions / auth0-account-link-extension

An extension aimed to help link accounts easily
MIT License
28 stars 76 forks source link

Omit version for request which fixes outdated version with Node 18 is… #168

Open Poolshark opened 8 months ago

Poolshark commented 8 months ago

✏️ Changes

Since the package version request@2.56.0 does not support Node 18 (which is the recommended version for Auth0 actions), request('request@2.56.0') has been updated with request('request') which omits the version completely.

πŸ”— References

This update has also been suggested by the Auth0 helpkdesk:

Thanks for contacting Auth0 Support.

It looks like the issue is with the auth0-account-link-extension rule and request@2.56.0, since that version of the package isn't supported for Node 18: https://auth0-extensions.github.io/canirequire/#request

On line 6, you can either update the version to request@2.88.2 or omit the version by calling require('request'). Either option will resolve this error.

Let me know if that's helpful!

Ellen

Ellen Conley Senior Developer Support Engineer, Auth0 Hours: 8 am - 5 pm Pacific Standard Time

🎯 Testing

🚫 This change has been tested in a Webtask

🚫 This change has unit test coverage

🚫 This change has integration test coverage

🚫 This change has been tested for performance

πŸš€ Deployment

I guess omitting the version should work to be backward compatible to Node 16.

βœ… This can be deployed any time