Replace deprecated url.parse() with new URL() API #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: server.js used the deprecated url.parse() from Node.js url module (deprecated since Node 11).
Solution: Replaced with new URL(req.url, host) which is the modern standard. Updated route handlers in sites.js to use searchParams.get() instead of query.property.
Files changed: