diff --git a/lib/global.js b/lib/global.js index 6a28b916019..18bfd73cc92 100644 --- a/lib/global.js +++ b/lib/global.js @@ -1,6 +1,8 @@ 'use strict' -const globalDispatcher = Symbol.for('undici.globalDispatcher') +// We include a version number for the Dispatcher API. In case of breaking changes, +// this version number must be increased to avoid conflicts. +const globalDispatcher = Symbol.for('undici.globalDispatcher.1') const { InvalidArgumentError } = require('./core/errors') const Agent = require('./agent')