diff --git a/CHANGELOG.md b/CHANGELOG.md index f5984fa..4b3f9a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,3 +13,97 @@ ### Features * use address@2 ([#53](https://github.com/node-modules/detect-port/issues/53)) ([55f48d7](https://github.com/node-modules/detect-port/commit/55f48d755f3c8b480d4e4ce1065abc1c8e3c5a19)) + +--- + + +1.5.1 / 2022-09-23 +================== + +**fixes** + * [[`9dd9ce3`](http://github.com/node-modules/detect-port/commit/9dd9ce34b560a434ee3a393f6ddea884691f632f)] - fix: add #!/usr/bin/env node header (#49) (达峰的夏天 <>) + +1.5.0 / 2022-09-21 +================== + +**features** + * [[`618dec5`](http://github.com/node-modules/detect-port/commit/618dec5661d94535800089f9d941f4896825cb69)] - feat: support wait port (#46) (达峰的夏天 <>) + +**fixes** + * [[`a54e2ef`](http://github.com/node-modules/detect-port/commit/a54e2ef70e388ed4b0c7a4b79ad88bc91e0f8ae3)] - fix: typo on line 54 (#45) (Yavuz Akyuz <<56271907+yavuzakyuz@users.noreply.github.com>>) + +**others** + * [[`28f07b3`](http://github.com/node-modules/detect-port/commit/28f07b31a7c591cb28b13281246c7f0c64c3dded)] - 🤖 TEST: Run CI on Github Action (#47) (fengmk2 <>) + * [[`ae55c95`](http://github.com/node-modules/detect-port/commit/ae55c956ca36749e22c48b8d1a7d98afec2e6a4d)] - Create codeql-analysis.yml (fengmk2 <>) + * [[`f35409d`](http://github.com/node-modules/detect-port/commit/f35409d53f9298a60e2c6c1560f42ea182025dd4)] - chore: update project config (xudafeng <>) + * [[`cd21d30`](http://github.com/node-modules/detect-port/commit/cd21d3044db73d1556bf264209c8fd0ee08fa9c4)] - chore: update readme (#43) (XiaoRui <>) + * [[`da01e68`](http://github.com/node-modules/detect-port/commit/da01e68b43952e06430cc42f873e4253d8cba09e)] - chore: add .editorconfig (#42) (达峰的夏天 <>) + * [[`a2c6b04`](http://github.com/node-modules/detect-port/commit/a2c6b043954895cba9cbae369e0d79a337c9d73a)] - chore: update repo config (#41) (达峰的夏天 <>) + * [[`8da6f33`](http://github.com/node-modules/detect-port/commit/8da6f33e10b44cdbcfb9eb5727b0f2117e6929e9)] - chore: update readme (#38) (达峰的夏天 <>) + * [[`ee88ccb`](http://github.com/node-modules/detect-port/commit/ee88ccb9e2a747dc84a30bcfc1cd4c73b64e3ea5)] - chore: remove unuse file (fengmk2 <>) + +1.3.0 / 2018-11-20 +================== + +**features** + * [[`a00357a`](http://github.com/node-modules/detect-port/commit/a00357aea32c4f011b7240641cb8da2dfc97b491)] - feat: support detect port with custom hostname (#35) (Ender Lee <<34906299+chnliquan@users.noreply.github.com>>) + +**others** + * [[`671094f`](http://github.com/node-modules/detect-port/commit/671094f3a3660a29a0920d78e39d17f8dead0b7a)] - update readme (xudafeng <>) + * [[`285e59b`](http://github.com/node-modules/detect-port/commit/285e59b0464d670c886007ff5052892393d57314)] - chore: add files to package.json (fengmk2 <>) + +1.2.3 / 2018-05-16 +================== + +**fixes** + * [[`64777f8`](http://github.com/node-modules/detect-port/commit/64777f85cc519c9c4c2c84c23d2afed6a916f3c4)] - fix: ignore EADDRNOTAVAIL error when listen localhost (#33) (Haoliang Gao <>) + * [[`398bc4f`](http://github.com/node-modules/detect-port/commit/398bc4f65f4d61ddfdc9bf7721118ea1a3bb6289)] - fix: handle 0.0.0.0:port binding (#26) (fengmk2 <>) + +**others** + * [[`aedf44f`](http://github.com/node-modules/detect-port/commit/aedf44fc3f949de9ec187bdc8ee4d8daf84d6c2b)] - doc: tweak description (xudafeng <>) + * [[`b7ff76f`](http://github.com/node-modules/detect-port/commit/b7ff76f24db3d8d9123cbf396b9032b05a6b7146)] - update FAQ & contributor (xudafeng <>) + * [[`4a9e127`](http://github.com/node-modules/detect-port/commit/4a9e127b6d01bd45d9b689bd931d878aa9b5d397)] - cli tweak to verbose (#25) (xdf <>), + +1.1.3 / 2017-05-24 +================== + + * fix: should ignore getaddrinfo ENOTFOUND error (#22) + +1.1.2 / 2017-05-11 +================== + + * fix: should double check 0.0.0.0 and localhost (#20) + * docs: ignore type of port when checking if it's occupied (#18) + +# 1.1.1 / 2017-03-17 + + * fix: try to use next available port (#16) + +# 1.1.0 / 2016-01-17 + + * Use server listen to detect port + +# 1.0.7 / 2016-12-11 + + * Early return for rejected promise + * Prevent promsie swallow in callback + +# 1.0.6 / 2016-11-29 + + * Bump version for new Repo + +# 0.1.4 / 2015-08-24 + + * Support promise + +# 0.1.2 / 2014-05-31 + + * Fix commander + +# 0.1.1 / 2014-05-30 + + * Add command line support + +# 0.1.0 / 2014-05-29 + + * Initial release diff --git a/HISTORY.md b/HISTORY.md deleted file mode 100644 index 42d0532..0000000 --- a/HISTORY.md +++ /dev/null @@ -1,91 +0,0 @@ - -1.5.1 / 2022-09-23 -================== - -**fixes** - * [[`9dd9ce3`](http://github.com/node-modules/detect-port/commit/9dd9ce34b560a434ee3a393f6ddea884691f632f)] - fix: add #!/usr/bin/env node header (#49) (达峰的夏天 <>) - -1.5.0 / 2022-09-21 -================== - -**features** - * [[`618dec5`](http://github.com/node-modules/detect-port/commit/618dec5661d94535800089f9d941f4896825cb69)] - feat: support wait port (#46) (达峰的夏天 <>) - -**fixes** - * [[`a54e2ef`](http://github.com/node-modules/detect-port/commit/a54e2ef70e388ed4b0c7a4b79ad88bc91e0f8ae3)] - fix: typo on line 54 (#45) (Yavuz Akyuz <<56271907+yavuzakyuz@users.noreply.github.com>>) - -**others** - * [[`28f07b3`](http://github.com/node-modules/detect-port/commit/28f07b31a7c591cb28b13281246c7f0c64c3dded)] - 🤖 TEST: Run CI on Github Action (#47) (fengmk2 <>) - * [[`ae55c95`](http://github.com/node-modules/detect-port/commit/ae55c956ca36749e22c48b8d1a7d98afec2e6a4d)] - Create codeql-analysis.yml (fengmk2 <>) - * [[`f35409d`](http://github.com/node-modules/detect-port/commit/f35409d53f9298a60e2c6c1560f42ea182025dd4)] - chore: update project config (xudafeng <>) - * [[`cd21d30`](http://github.com/node-modules/detect-port/commit/cd21d3044db73d1556bf264209c8fd0ee08fa9c4)] - chore: update readme (#43) (XiaoRui <>) - * [[`da01e68`](http://github.com/node-modules/detect-port/commit/da01e68b43952e06430cc42f873e4253d8cba09e)] - chore: add .editorconfig (#42) (达峰的夏天 <>) - * [[`a2c6b04`](http://github.com/node-modules/detect-port/commit/a2c6b043954895cba9cbae369e0d79a337c9d73a)] - chore: update repo config (#41) (达峰的夏天 <>) - * [[`8da6f33`](http://github.com/node-modules/detect-port/commit/8da6f33e10b44cdbcfb9eb5727b0f2117e6929e9)] - chore: update readme (#38) (达峰的夏天 <>) - * [[`ee88ccb`](http://github.com/node-modules/detect-port/commit/ee88ccb9e2a747dc84a30bcfc1cd4c73b64e3ea5)] - chore: remove unuse file (fengmk2 <>) - -1.3.0 / 2018-11-20 -================== - -**features** - * [[`a00357a`](http://github.com/node-modules/detect-port/commit/a00357aea32c4f011b7240641cb8da2dfc97b491)] - feat: support detect port with custom hostname (#35) (Ender Lee <<34906299+chnliquan@users.noreply.github.com>>) - -**others** - * [[`671094f`](http://github.com/node-modules/detect-port/commit/671094f3a3660a29a0920d78e39d17f8dead0b7a)] - update readme (xudafeng <>) - * [[`285e59b`](http://github.com/node-modules/detect-port/commit/285e59b0464d670c886007ff5052892393d57314)] - chore: add files to package.json (fengmk2 <>) - -1.2.3 / 2018-05-16 -================== - -**fixes** - * [[`64777f8`](http://github.com/node-modules/detect-port/commit/64777f85cc519c9c4c2c84c23d2afed6a916f3c4)] - fix: ignore EADDRNOTAVAIL error when listen localhost (#33) (Haoliang Gao <>) - * [[`398bc4f`](http://github.com/node-modules/detect-port/commit/398bc4f65f4d61ddfdc9bf7721118ea1a3bb6289)] - fix: handle 0.0.0.0:port binding (#26) (fengmk2 <>) - -**others** - * [[`aedf44f`](http://github.com/node-modules/detect-port/commit/aedf44fc3f949de9ec187bdc8ee4d8daf84d6c2b)] - doc: tweak description (xudafeng <>) - * [[`b7ff76f`](http://github.com/node-modules/detect-port/commit/b7ff76f24db3d8d9123cbf396b9032b05a6b7146)] - update FAQ & contributor (xudafeng <>) - * [[`4a9e127`](http://github.com/node-modules/detect-port/commit/4a9e127b6d01bd45d9b689bd931d878aa9b5d397)] - cli tweak to verbose (#25) (xdf <>), - -1.1.3 / 2017-05-24 -================== - - * fix: should ignore getaddrinfo ENOTFOUND error (#22) - -1.1.2 / 2017-05-11 -================== - - * fix: should double check 0.0.0.0 and localhost (#20) - * docs: ignore type of port when checking if it's occupied (#18) - -# 1.1.1 / 2017-03-17 - - * fix: try to use next available port (#16) - -# 1.1.0 / 2016-01-17 - - * Use server listen to detect port - -# 1.0.7 / 2016-12-11 - - * Early return for rejected promise - * Prevent promsie swallow in callback - -# 1.0.6 / 2016-11-29 - - * Bump version for new Repo - -# 0.1.4 / 2015-08-24 - - * Support promise - -# 0.1.2 / 2014-05-31 - - * Fix commander - -# 0.1.1 / 2014-05-30 - - * Add command line support - -# 0.1.0 / 2014-05-29 - - * Initial release diff --git a/README.md b/README.md index 455d3ae..31b14e9 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,18 @@ -[![logo][logo-image]][logo-url] - ---- +# detect-port [![NPM version][npm-image]][npm-url] -[![build status][travis-image]][travis-url] +[![CI](https://github.com/node-modules/detect-port/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/detect-port/actions/workflows/nodejs.yml) [![Test coverage][codecov-image]][codecov-url] +[![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][download-url] -[logo-image]: ./logo.png -[logo-url]: https://npmjs.org/package/detect-port -[npm-image]: https://img.shields.io/npm/v/detect-port.svg +[npm-image]: https://img.shields.io/npm/v/detect-port.svg?style=flat-square [npm-url]: https://npmjs.org/package/detect-port -[travis-image]: https://img.shields.io/travis/node-modules/detect-port.svg -[travis-url]: https://travis-ci.org/node-modules/detect-port -[codecov-image]: https://img.shields.io/coveralls/node-modules/detect-port.svg +[codecov-image]: https://codecov.io/gh/node-modules/detect-port/branch/master/graph/badge.svg [codecov-url]: https://codecov.io/gh/node-modules/detect-port -[download-image]: https://img.shields.io/npm/dm/detect-port.svg +[snyk-image]: https://snyk.io/test/npm/detect-port/badge.svg?style=flat-square +[snyk-url]: https://snyk.io/test/npm/detect-port +[download-image]: https://img.shields.io/npm/dm/detect-port.svg?style=flat-square [download-url]: https://npmjs.org/package/detect-port > Node.js implementation of port detector @@ -39,7 +36,7 @@ ## Usage ```bash -$ npm i detect-port --save +npm i detect-port ``` ```javascript @@ -65,7 +62,7 @@ detect(port) ## Command Line Tool ```bash -$ npm i detect-port -g +npm i detect-port -g ``` ### Quick Start @@ -88,7 +85,7 @@ $ detect --help Most likely network error, check that your `/etc/hosts` and make sure the content below: -``` +```bash 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost diff --git a/logo.png b/logo.png deleted file mode 100644 index 2dc13db..0000000 Binary files a/logo.png and /dev/null differ diff --git a/package.json b/package.json index d97805a..07024e5 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "cov": "egg-bin cov" }, "engines": { - "node": ">= 4.0.0" + "node": ">= 16.0.0" }, "homepage": "https://github.com/node-modules/detect-port", "license": "MIT",