Skip to content

Commit

Permalink
feat: refactor with typescript to support cjs and esm both (#37)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Drop Node.js < 16 support

- rename `interface()` to `getInterfaceAddress()`
  • Loading branch information
fengmk2 authored Sep 22, 2023
1 parent 573eef9 commit 8981f21
Show file tree
Hide file tree
Showing 23 changed files with 720 additions and 567 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "eslint-config-egg"
"extends": [
"eslint-config-egg/typescript",
"eslint-config-egg/lib/rules/enforce-node-prefix"
]
}
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

9 changes: 2 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ on:
pull_request:
branches: [ master ]

schedule:
- cron: '0 2 * * *'

workflow_dispatch: {}

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, macos-latest'
version: '14, 16, 18'
version: '16, 18, 20'
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Release

on:
# 合并后自动发布
push:
branches: [ master ]

# 手动发布
workflow_dispatch: {}

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 }}
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ npm-debug.log
.DS_Store

.idea/
test/fixtures/ts/*.js
test/fixtures/ts/*.js
.tshy*
dist/
77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,80 @@
### Bug Fixes

* Auto release on action ([#33](https://github.com/node-modules/address/issues/33)) ([36b30d3](https://github.com/node-modules/address/commit/36b30d3708bd5fb09dd2e9a9d4741dd9112eb890))

---


1.2.1 / 2022-09-13
==================

**fixes**
* [[`c316a04`](http://github.com/node-modules/address/commit/c316a044aedeadf438c2c2a7278d51f0861df8af)] - fix: local addresses should be ignored on interface (#32) (Jon Kelley <<[email protected]>>)

**others**
* [[`823b70c`](http://github.com/node-modules/address/commit/823b70c2f53ab96d6e25041aa444436d906c59ef)] - 🤖 TEST: Run test on GitHub action (#27) (fengmk2 <<[email protected]>>)
* [[`2b5fb44`](http://github.com/node-modules/address/commit/2b5fb44ca1ff1a0d64768e8d42845ec377b9e3f8)] - Create codeql-analysis.yml (fengmk2 <<[email protected]>>)

1.2.0 / 2022-04-29
==================

**features**
* [[`fe81a41`](http://github.com/node-modules/address/commit/fe81a415403ba46d7bc09d76a2f9fc46bc2fc803)] - feat: address.ip() supports node 18 (#26) (Yuheng Zhang <<[email protected]>>)

1.1.2 / 2019-08-26
==================

**fixes**
* [[`304754e`](http://github.com/node-modules/address/commit/304754ea4ef0dd34db7ba34745f4f4543afc064c)] - fix: fix declarations (#20) (吖猩 <<[email protected]>>)

1.1.1 / 2019-08-22
==================

**fixes**
* [[`19884ff`](http://github.com/node-modules/address/commit/19884ffbe9ad75f9a66889a031db4b806da1f822)] - fix: update d.ts (#18) (MarioDu <<[email protected]>>)

1.1.0 / 2019-04-24
==================

**features**
* [[`7544592`](http://github.com/node-modules/address/commit/75445923a6f737fc21e3cf592f749bf014b7b4ce)] - feat: Add typings (#15) (Mathieu TUDISCO <<[email protected]>>)

1.0.3 / 2017-08-24
==================

**fixes**
* [[`ed491c5`](http://github.com/node-modules/address/commit/ed491c5bd353118e4e4d384f47f13c3e1cfeb80e)] - fix: ignore wrong mac address on node 8.x (#10) (fengmk2 <<[email protected]>>)

1.0.2 / 2017-05-26
==================

* fix: win32 get mac failed (#9)

1.0.1 / 2016-09-30
==================

* test: remove 0.12
* fix: search interface before family match
* add contributors

1.0.0 / 2015-08-06
==================

* chore: use npm scripts instead of Makefile
* add benchmark

0.0.3 / 2013-11-04
==================

* get the first not local ip when interface not exists

0.0.2 / 2013-08-08
==================

* use networkInterface() to get mac fix #3

0.0.1 / 2013-07-31
==================

* ip(), ipv6(), mac(), dns() work on osx and linux now.
* first commit
74 changes: 0 additions & 74 deletions History.md

This file was deleted.

Loading

0 comments on commit 8981f21

Please sign in to comment.