At the following piece of documentation (for v12; the latest one):
It describes:
To parse the url into its parts require('url').parse(request.url) can be used:
[…]
…or true can be passed as the second argument to require('url').parse:
[…]
However, this legacy url module/API is deprecated since v11.
Thus, the documentation should be updated.
Bonus points for grepping the rest of the documentation to find other outdated examples.
At the following piece of documentation (for v12; the latest one):
It describes:
However, this legacy
urlmodule/API is deprecated since v11.Thus, the documentation should be updated.
Bonus points for grepping the rest of the documentation to find other outdated examples.