unstale

npm / get-port

get-port

What changed in get-port 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

8 breaking2 new APIs and options

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

get-port 72 changes

Breaking changes 1

New APIs and options 1

  • Adds the reserve option to lock ports for the process lifetime.

    7.2.0release notes

get-port 65 changes

Breaking changes 5

  • Port availability checks now check all local hosts.

    6.0.0release notes

  • The require-based makeRange access is replaced by an ESM named import.

    6.0.0release notes

  • Node.js 12.20 is now required.

    6.0.0release notes

  • Use the named portsNumbers import in place of require('get-port').makeRange.

    6.0.0release notes

  • The package is now pure ESM, so developers must use ESM imports instead of CommonJS require.

    6.0.0release notes

get-port 53 changes

Breaking changes 2

  • TypeScript users must use import getPort = require('get-port'); instead of a default import.

    5.0.0release notes

  • The package now requires Node.js 8.

    5.0.0release notes

New APIs and options 1