Skip to content

Commit

Permalink
chore: start 1.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed May 29, 2024
1 parent 5e8f3ed commit 158672a
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 123 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "master", "1.x" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '38 21 * * 1'
branches: [ "master", "1.x" ]

jobs:
analyze:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: CI

on:
push:
branches: [ master ]

branches: [ master, 1.x ]
pull_request:
branches: [ master ]

workflow_dispatch: {}
branches: [ master, 1.x ]

jobs:
Job:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '14, 16, 18'
version: '14, 16, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: Release

on:
push:
branches: [ master ]

workflow_dispatch: {}
branches: [ master, 1.x ]

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) (达峰的夏天 <<[email protected]>>)

1.5.0 / 2022-09-21
==================

**features**
* [[`618dec5`](http://github.com/node-modules/detect-port/commit/618dec5661d94535800089f9d941f4896825cb69)] - feat: support wait port (#46) (达峰的夏天 <<[email protected]>>)

**fixes**
* [[`a54e2ef`](http://github.com/node-modules/detect-port/commit/a54e2ef70e388ed4b0c7a4b79ad88bc91e0f8ae3)] - fix: typo on line 54 (#45) (Yavuz Akyuz <<[email protected]>>)

**others**
* [[`28f07b3`](http://github.com/node-modules/detect-port/commit/28f07b31a7c591cb28b13281246c7f0c64c3dded)] - 🤖 TEST: Run CI on Github Action (#47) (fengmk2 <<[email protected]>>)
* [[`ae55c95`](http://github.com/node-modules/detect-port/commit/ae55c956ca36749e22c48b8d1a7d98afec2e6a4d)] - Create codeql-analysis.yml (fengmk2 <<[email protected]>>)
* [[`f35409d`](http://github.com/node-modules/detect-port/commit/f35409d53f9298a60e2c6c1560f42ea182025dd4)] - chore: update project config (xudafeng <<[email protected]>>)
* [[`cd21d30`](http://github.com/node-modules/detect-port/commit/cd21d3044db73d1556bf264209c8fd0ee08fa9c4)] - chore: update readme (#43) (XiaoRui <<[email protected]>>)
* [[`da01e68`](http://github.com/node-modules/detect-port/commit/da01e68b43952e06430cc42f873e4253d8cba09e)] - chore: add .editorconfig (#42) (达峰的夏天 <<[email protected]>>)
* [[`a2c6b04`](http://github.com/node-modules/detect-port/commit/a2c6b043954895cba9cbae369e0d79a337c9d73a)] - chore: update repo config (#41) (达峰的夏天 <<[email protected]>>)
* [[`8da6f33`](http://github.com/node-modules/detect-port/commit/8da6f33e10b44cdbcfb9eb5727b0f2117e6929e9)] - chore: update readme (#38) (达峰的夏天 <<[email protected]>>)
* [[`ee88ccb`](http://github.com/node-modules/detect-port/commit/ee88ccb9e2a747dc84a30bcfc1cd4c73b64e3ea5)] - chore: remove unuse file (fengmk2 <<[email protected]>>)

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 <<[email protected]>>)

**others**
* [[`671094f`](http://github.com/node-modules/detect-port/commit/671094f3a3660a29a0920d78e39d17f8dead0b7a)] - update readme (xudafeng <<[email protected]>>)
* [[`285e59b`](http://github.com/node-modules/detect-port/commit/285e59b0464d670c886007ff5052892393d57314)] - chore: add files to package.json (fengmk2 <<[email protected]>>)

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 <<[email protected]>>)
* [[`398bc4f`](http://github.com/node-modules/detect-port/commit/398bc4f65f4d61ddfdc9bf7721118ea1a3bb6289)] - fix: handle 0.0.0.0:port binding (#26) (fengmk2 <<[email protected]>>)

**others**
* [[`aedf44f`](http://github.com/node-modules/detect-port/commit/aedf44fc3f949de9ec187bdc8ee4d8daf84d6c2b)] - doc: tweak description (xudafeng <<[email protected]>>)
* [[`b7ff76f`](http://github.com/node-modules/detect-port/commit/b7ff76f24db3d8d9123cbf396b9032b05a6b7146)] - update FAQ & contributor (xudafeng <<[email protected]>>)
* [[`4a9e127`](http://github.com/node-modules/detect-port/commit/4a9e127b6d01bd45d9b689bd931d878aa9b5d397)] - cli tweak to verbose (#25) (xdf <<[email protected]>>),

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
91 changes: 0 additions & 91 deletions HISTORY.md

This file was deleted.

19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/detect-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const net = require('net');
const address = require('address');
const debug = require('debug')('detect-port');
const debug = require('util').debuglog('detect-port');

module.exports = (port, callback) => {
let hostname = '';
Expand Down
2 changes: 1 addition & 1 deletion lib/wait-port.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const debug = require('debug')('wait-port');
const debug = require('util').debuglog('wait-port');
const detect = require('./detect-port');

const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "detect-port",
"version": "1.6.1",
"publishConfig": {
"tag": "latest-1"
},
"description": "Node.js implementation of port detector",
"keywords": [
"detect",
Expand All @@ -21,8 +24,7 @@
"url": "git://github.com/node-modules/detect-port.git"
},
"dependencies": {
"address": "^1.0.1",
"debug": "4"
"address": "^1.0.1"
},
"devDependencies": {
"command-line-test": "1",
Expand Down

0 comments on commit 158672a

Please sign in to comment.