You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct, that has been the case for an extremely long time and node does not offer alternatives. Unless you're referring to ESM loaders, in which case yes, we have one of those. See #1007
Although it is deprecated, experience shows that it is also stable, and has been that way for years. If you're concerned that this deprecation is a risk, don't worry. All the evidence suggests that this API surface is not going anywhere.
If you're curious about this topic, you may want to check node's issue tracker, since it's possible that users have requested a non-deprecated API surface to replace this one. The node folks might have some thoughts on why they opted to keep this stable, deprecated API surface instead of creating a replacement. You can also dig deeper into our issue tracker since this has already been asked here.
Activity
cspotcode commentedon May 3, 2021
Correct, that has been the case for an extremely long time and node does not offer alternatives. Unless you're referring to ESM loaders, in which case yes, we have one of those. See #1007
Although it is deprecated, experience shows that it is also stable, and has been that way for years. If you're concerned that this deprecation is a risk, don't worry. All the evidence suggests that this API surface is not going anywhere.
If you're curious about this topic, you may want to check node's issue tracker, since it's possible that users have requested a non-deprecated API surface to replace this one. The node folks might have some thoughts on why they opted to keep this stable, deprecated API surface instead of creating a replacement. You can also dig deeper into our issue tracker since this has already been asked here.
NickHeiner commentedon May 4, 2021
That's fair. Thanks for the thoughtful analysis!