url cannot be set in defaults anymore in v0.20.0

Describe the bug

The url option cannot be set in defaults anymore

To Reproduce

Runkit with v0.20.0 (failing): https://runkit.com/embed/ljc1r77qoyte
Runkit with v0.19.2 (succeeding): https://runkit.com/embed/ky5awf7v4b4x

const axios = require("axios"),
      request = axios.create({ url: 'https://npm.runkit.com/axios' });

await request().then(({ data }) => data);

Expected behavior

The url option should be settable in defaults.

Environment

  • Axios Version [0.20.0]
  • Adapter [HTTP]
  • Node.js Version [12]
  • OS [Ubuntu 20.04]

Additional context/Screenshots

N/A

1 thought on “url cannot be set in defaults anymore in v0.20.0

  1. Perhaps fix typings then? Because it’s really confusing as we provided url to “create” method and debugging this was a nightmare.

Comments are closed.