Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop node v8 support, bump dependency versions #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drop node v8 support, bump dependency versions
- BREAKING: require node.js 10
- dep(debug): bump to 4.3.4
- dep(ip): bump to 2.0.0
- dep(meow): bump to 10.1.5
- dep(turbo-crc32): bump to 1.0.1
- dep(universalify): bump to 2.0.1
- dep(eslint): bump to 7.32.0
- dep(jest): bump to 27.5.1
- dep(eslint): bump to 7.32.0

| node.js  | dependency | highest compat ver |
| ------- :| --------- | -------------- :|
|       10 | jest      | 27
|       10 | eslint    | 7
|       10 | meow      | 10
|       10 | prettier  | 2.8.8
|       12 | jest      | 28
|       12 | meow      | 10.0.0
|       14 | jest      | 29
|       16 | jest      | 30
|       16 | prettier  | 3.0.0
|       16 | meow      | 11.0.0
msimerson committed Dec 12, 2023
commit bbf7abbd65044b96d796bc21caa6da2a8b537709
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
node-version:
- 8
- 10
- ${{ fromJson(needs.get-lts.outputs.active) }}
fail-fast: false
steps:
19 changes: 16 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -2,18 +2,31 @@
All notable changes to the "stun" package will be documented in this file.


## [2.1.1] - 2023-12-11
### [3.0.0] - 2023-12-12

- BREAKING: require node.js 10
- dep(debug): bump to 4.3.4
- dep(ip): bump to 2.0.0
- dep(meow): bump to 10.1.5
- dep(turbo-crc32): bump to 1.0.1
- dep(universalify): bump to 2.0.1
- dep(eslint): bump to 7.32.0
- dep(jest): bump to 27.5.1
- dep(eslint): bump to 7.32.0


### [2.1.1] - 2023-12-11

- dep(parse-url): replace with native URL
- ci: replace Travis with GitHub Actions


## [2.1.0] - 2019-11-23
### [2.1.0] - 2019-11-23

- `stun.request` supports promise interface.


## [2.0.0] - 2019-06-02
### [2.0.0] - 2019-06-02

- Add `request()` method to simplify client-side requests. Follow the `STUN` specification.
- All STUN-related errors inherit `StunError`. See `StunMessageError` and `StunResponseError`.
10,716 changes: 4,108 additions & 6,608 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "stun",
"version": "2.1.1",
"version": "3.0.0",
"description": "Session Traversal Utilities for NAT (STUN) client and server.",
"main": "src/index.js",
"scripts": {
"lint": "npx eslint .",
"lint": "npx eslint",
"lintfix": "npx eslint --fix",
"test": "npm run lint && npx jest",
"test-ci": "npx jest"
"test-ci": "npx jest",
"versions": "npx dependency-version-checker check"
},
"bin": "./src/cli.js",
"repository": {
@@ -30,22 +32,22 @@
"devDependencies": {
"@nodertc/eslint-config": "^0.3.0",
"eslint": "^7.32.0",
"jest": "^23.6.0",
"prettier": "^1.19.1"
"jest": "^27.5.1",
"prettier": "^2.8.8"
},
"dependencies": {
"binary-data": "^0.6.0",
"buffer-xor": "^2.0.2",
"debug": "^4.1.1",
"ip": "^1.1.5",
"debug": "^4.3.4",
"ip": "^2.0.0",
"ip2buf": "^2.0.0",
"is-stun": "^2.0.0",
"meow": "^5.0.0",
"turbo-crc32": "^1.0.0",
"universalify": "^0.1.2"
"meow": "^10.1.5",
"turbo-crc32": "^1.0.1",
"universalify": "^2.0.1"
},
"engines": {
"node": ">=8.3"
"node": ">=10"
},
"jest": {
"modulePaths": [
3 changes: 1 addition & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -5,8 +5,7 @@
const dgram = require('dgram');
const meow = require('meow');
const stun = require('.');
/* eslint-disable-next-line import/extensions */
const { version } = require('../package.json');
const { version } = require('../package');

const cli = meow(
`
2 changes: 0 additions & 2 deletions src/node_modules/net/request.js