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 initget-port 72 changes
Breaking changes 1
Node.js 16 is now required.
New APIs and options 1
Adds the
reserveoption to lock ports for the process lifetime.
get-port 65 changes
Breaking changes 5
Port availability checks now check all local hosts.
The require-based makeRange access is replaced by an ESM named import.
Node.js 12.20 is now required.
Use the named portsNumbers import in place of require('get-port').makeRange.
The package is now pure ESM, so developers must use ESM imports instead of CommonJS require.
get-port 53 changes
Breaking changes 2
TypeScript users must use
import getPort = require('get-port');instead of a default import.The package now requires Node.js 8.
New APIs and options 1
Adds the
makeRange()helper method.