title: node legacy url.parse deprecated, what to use instead?
body: <p><code>require('url').parse('someurl.com/page')</code> have been docs-only deprecated, and our strict linter is unhappy about it... I have tried to replace it in our code with what the internet suggests <code>new URL('someurl.com/page')</code> which works in most cases.</p>
  <p>However, we have examples where the url is a local image <code>some/image.png</code> and that was working nicely with url.parse() and returns:</p>
  <pre><code>Url {
    protocol: null,
    slashes: null,
    auth: null,
    host: null,
    port: null,
    hostname: null,
    hash: null,
    search: null,
    query: null,
    pathname: '/some/image.png',
    path: '/some/image.png',
    href: '/some/image.png'
  }
  </code></pre>
  <p>But the suggested replacement <code>new URL('some/image.png')</code> throws a type error...</p>
  <blockquote>
  <p>TypeError [ERR_INVALID_URL] [ERR_INVALID_URL]: Invalid URL:
  /some/image.png</p>
  </blockquote>
  <p>url.parse is doing some validation and accept local paths, but the new url constructor does not. What to do ?</p>