Releases: node-modules/detect-port
Releases · node-modules/detect-port
v2.1.0
v2.0.1
v2.0.0
2.0.0 (2024-12-08)
⚠ BREAKING CHANGES
- Drop Node.js < 16 support
- 使用 ts 重构
- 使用 tshy 支持 esm 和 cjs
- test 使用 test-runner (这里需要 node v18 版本)
merge from #51
Summary by CodeRabbit
-
New Features
-
Introduced a new
waitPort
function to asynchronously wait for a
specified port to become available.- Added a new ESLint configuration to enforce TypeScript linting rules.
-
Bug Fixes
- Reverted a feature in the
detect-port
package due to issues raised.
- Reverted a feature in the
-
Documentation
- Updated
README.md
for improved clarity and updated badge links. - Modified
CONTRIBUTING.md
to reflect changes in testing commands.
- Updated
-
Chores
- Introduced a new TypeScript configuration file (
tsconfig.json
).
- Introduced a new TypeScript configuration file (
-
Updated
package.json
to reflect changes in dependencies and project
structure. -
Tests
-
Added comprehensive tests for the new
waitPort
and updated tests for
the CLI anddetectPort
function.
Features
This release is also available on:
v1.6.1
v1.6.0
v1.5.1
1.5.1 (2024-05-08)
Features
- only use server listen to detect port (#13) (0984b32)
- support detect port with custom hostname (#35) (a00357a)
- support wait port (#46) (618dec5)
- update contributor (17ffc37)
Bug Fixes
- add #!/usr/bin/env node header (#49) (9dd9ce3)
- handle 0.0.0.0:port binding (#26) (398bc4f)
- ignore EADDRNOTAVAIL error when listen localhost (#33) (64777f8)
- should double check 0.0.0.0 and localhost (#20) (0765f0e)
- should ignore getaddrinfo ENOTFOUND error (#22) (792bccd)
- try to use next available port (#16) (817105e)
- typo on line 54 (#45) (a54e2ef)