Skip to content

Commit b2cf1bb

Browse files
Release 2.0.0
[skip ci] ## [2.0.0](v1.6.1...v2.0.0) (2024-12-08) ### ⚠ BREAKING CHANGES * Drop Node.js < 16 support 1. 使用 ts 重构 2. 使用 tshy 支持 esm 和 cjs 3. test 使用 test-runner (这里需要 node v18 版本) merge from #51 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. - **Documentation** - Updated `README.md` for improved clarity and updated badge links. - Modified `CONTRIBUTING.md` to reflect changes in testing commands. - **Chores** - Introduced a new TypeScript configuration file (`tsconfig.json`). - 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 and `detectPort` function. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ### Features * refactor with typescript to support esm and cjs both ([#56](#56)) ([b5d32d2](b5d32d2))
1 parent b5d32d2 commit b2cf1bb

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

CHANGELOG.md

+43
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Changelog
22

3+
## [2.0.0](https://github.com/node-modules/detect-port/compare/v1.6.1...v2.0.0) (2024-12-08)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* Drop Node.js < 16 support
9+
10+
1. 使用 ts 重构
11+
2. 使用 tshy 支持 esm 和 cjs
12+
3. test 使用 test-runner (这里需要 node v18 版本)
13+
14+
merge from https://github.com/node-modules/detect-port/pull/51
15+
16+
<!-- This is an auto-generated comment: release notes by coderabbit.ai
17+
-->
18+
## Summary by CodeRabbit
19+
20+
- **New Features**
21+
- Introduced a new `waitPort` function to asynchronously wait for a
22+
specified port to become available.
23+
- Added a new ESLint configuration to enforce TypeScript linting rules.
24+
25+
- **Bug Fixes**
26+
- Reverted a feature in the `detect-port` package due to issues raised.
27+
28+
- **Documentation**
29+
- Updated `README.md` for improved clarity and updated badge links.
30+
- Modified `CONTRIBUTING.md` to reflect changes in testing commands.
31+
32+
- **Chores**
33+
- Introduced a new TypeScript configuration file (`tsconfig.json`).
34+
- Updated `package.json` to reflect changes in dependencies and project
35+
structure.
36+
37+
- **Tests**
38+
- Added comprehensive tests for the new `waitPort` and updated tests for
39+
the CLI and `detectPort` function.
40+
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
41+
42+
### Features
43+
44+
* refactor with typescript to support esm and cjs both ([#56](https://github.com/node-modules/detect-port/issues/56)) ([b5d32d2](https://github.com/node-modules/detect-port/commit/b5d32d2422bd753a87ff2e995514ac41f1c85346))
45+
346
## [1.6.1](https://github.com/node-modules/detect-port/compare/v1.6.0...v1.6.1) (2024-05-08)
447

548

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "detect-port",
3-
"version": "1.6.1",
3+
"version": "2.0.0",
44
"description": "Node.js implementation of port detector",
55
"keywords": [
66
"detect",

0 commit comments

Comments
 (0)