Skip to content

Commit 196a4d1

Browse files
committed
updates
1 parent 8e71d01 commit 196a4d1

File tree

101 files changed

+4463
-10512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+4463
-10512
lines changed

.airtaprc.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
sauce_connect: true
2-
ui: mocha-bdd
3-
browsers:
4-
- name: chrome
5-
version: latest
6-
- name: firefox
7-
version: latest
8-
- name: opera
9-
version: latest
10-
- name: internet explorer
11-
version: latest
12-
- name: microsoftedge
13-
version: latest
1+
sauce_connect: true
2+
ui: mocha-bdd
3+
browsers:
4+
- name: chrome
5+
version: latest
6+
- name: firefox
7+
version: latest
8+
- name: opera
9+
version: latest
10+
- name: internet explorer
11+
version: latest
12+
- name: microsoftedge
13+
version: latest

.editorconfig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
root = true
2-
3-
[*]
4-
end_of_line = lf
5-
insert_final_newline = true
6-
charset = utf-8
7-
indent_style = space
8-
indent_size = 2
9-
trim_trailing_whitespace = true
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
{
2-
"env": {
3-
"browser": true,
4-
"es2021": true,
5-
"node": true
6-
},
7-
"extends": [
8-
"standard"
9-
],
10-
"parserOptions": {
11-
"ecmaVersion": 12,
12-
"sourceType": "module"
13-
},
14-
"rules": {
15-
}
16-
}
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"standard"
9+
],
10+
"parserOptions": {
11+
"ecmaVersion": 12,
12+
"sourceType": "module"
13+
},
14+
"rules": {
15+
}
16+
}

.github/workflows/nodejs.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
name: MQTT.js CI
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
10-
11-
jobs:
12-
build:
13-
14-
runs-on: ubuntu-latest
15-
16-
strategy:
17-
matrix:
18-
node-version: [12.x, 14.x]
19-
fail-fast: false
20-
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm install
28-
- run: npm run build --if-present
29-
- run: npm test
30-
env:
31-
CI: true
32-
DEBUG: "mqttjs*"
1+
name: MQTT.js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [12.x, 14.x]
19+
fail-fast: false
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm install
28+
- run: npm run build --if-present
29+
- run: npm test
30+
env:
31+
CI: true
32+
DEBUG: "mqttjs*"

.github/workflows/syncToDevOps.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
2-
name: Sync issue to Azure DevOps work item
3-
4-
"on":
5-
issues:
6-
types:
7-
[opened, edited, deleted, closed, reopened, labeled, unlabeled]
8-
9-
jobs:
10-
alert:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: danhellem/github-actions-issue-to-work-item@master
14-
env:
15-
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
16-
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
17-
ado_organization: "${{ secrets.ADO_ORGANIZATION }}"
18-
ado_project: "${{ secrets.ADO_PROJECT }}"
19-
ado_area_path: "${{ secrets.ADO_AREA_PATH }}"
20-
ado_wit: "Bug"
21-
ado_new_state: "New"
22-
ado_close_state: "Done"
23-
ado_bypassrules: false
1+
2+
name: Sync issue to Azure DevOps work item
3+
4+
"on":
5+
issues:
6+
types:
7+
[opened, edited, deleted, closed, reopened, labeled, unlabeled]
8+
9+
jobs:
10+
alert:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: danhellem/github-actions-issue-to-work-item@master
14+
env:
15+
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
16+
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
17+
ado_organization: "${{ secrets.ADO_ORGANIZATION }}"
18+
ado_project: "${{ secrets.ADO_PROJECT }}"
19+
ado_area_path: "${{ secrets.ADO_AREA_PATH }}"
20+
ado_wit: "Bug"
21+
ado_new_state: "New"
22+
ado_close_state: "Done"
23+
ado_bypassrules: false

.gitignore

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
node_modules
2-
certs/*
3-
[._]*.s[a-w][a-z]
4-
[._]s[a-w][a-z]
5-
*.un~
6-
Session.vim
7-
.netrwhist
8-
*~
9-
npm-debug.log
10-
dist/
11-
yarn.lock
12-
coverage
13-
.nyc_output
14-
.idea/*
15-
test/typescript/.idea/*
16-
test/typescript/*.js
17-
test/typescript/*.map
18-
package-lock.json
19-
# VS Code stuff
20-
**/typings/**
21-
**/.vscode/**
1+
node_modules
2+
certs/*
3+
[._]*.s[a-w][a-z]
4+
[._]s[a-w][a-z]
5+
*.un~
6+
Session.vim
7+
.netrwhist
8+
*~
9+
npm-debug.log
10+
dist/
11+
yarn.lock
12+
coverage
13+
.nyc_output
14+
.idea/*
15+
test/typescript/.idea/*
16+
test/typescript/*.js
17+
test/typescript/*.map
18+
package-lock.json
19+
# VS Code stuff
20+
**/typings/**
21+
**/.vscode/**
22+
23+
*.log
24+
.DS_Store
25+
node_modules
26+
dist

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
package-lock = false

CHANGELOG.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# Release History
2-
3-
## 4.2.8
4-
5-
### PR
6-
7-
Fix ws vulnerability and typescript bug (#1292)
8-
9-
## 4.2.7
10-
11-
### PR
12-
13-
#1287 - Fix production vulnerabilities (#1289)
14-
15-
#1215 - Add missing 'duplexify' dependency (#1266)
16-
17-
Improve type definition for 'wsOptions' (#1256)
18-
19-
Improve Typescript Declaratiosn for userProperties (#1249)
20-
21-
#1235 - Call the end on the WebSocket stream when WebSocket close event is emitted. (#1239)
22-
23-
#1201 - Uncaught TypeError: net.createConnection is not a function. (#1236)
24-
25-
Improve Documentation for Browserify (#1224)
26-
27-
## v4.2.6 and Below
28-
1+
# Release History
2+
3+
## 4.2.8
4+
5+
### PR
6+
7+
Fix ws vulnerability and typescript bug (#1292)
8+
9+
## 4.2.7
10+
11+
### PR
12+
13+
#1287 - Fix production vulnerabilities (#1289)
14+
15+
#1215 - Add missing 'duplexify' dependency (#1266)
16+
17+
Improve type definition for 'wsOptions' (#1256)
18+
19+
Improve Typescript Declaratiosn for userProperties (#1249)
20+
21+
#1235 - Call the end on the WebSocket stream when WebSocket close event is emitted. (#1239)
22+
23+
#1201 - Uncaught TypeError: net.createConnection is not a function. (#1236)
24+
25+
Improve Documentation for Browserify (#1224)
26+
27+
## v4.2.6 and Below
28+
2929
The release history has beend documented in the GitHub releases and tags historically.

CONTRIBUTING.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# MQTT.js is an OPEN Open Source Project
2-
3-
-----------------------------------------
4-
5-
## What?
6-
7-
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
8-
9-
## Rules
10-
11-
There are a few basic ground-rules for contributors:
12-
13-
1. **No `--force` pushes** or modifying the Git history in any way.
14-
1. **Non-master branches** ought to be used for ongoing work.
15-
1. **External API changes and significant modifications** ought to be subject to an **internal pull-request** to solicit feedback from other contributors.
16-
1. Internal pull-requests to solicit feedback are *encouraged* for any other non-trivial contribution but left to the discretion of the contributor.
17-
1. Contributors should attempt to adhere to the prevailing code-style.
18-
19-
## Releases
20-
21-
Declaring formal releases remains the prerogative of the project maintainer.
22-
23-
## Changes to this arrangement
24-
25-
This is an experiment and feedback is welcome! This document may also be subject to pull-requests or changes by contributors where you believe you have something valuable to add or change.
26-
27-
-----------------------------------------
1+
# MQTT.js is an OPEN Open Source Project
2+
3+
-----------------------------------------
4+
5+
## What?
6+
7+
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
8+
9+
## Rules
10+
11+
There are a few basic ground-rules for contributors:
12+
13+
1. **No `--force` pushes** or modifying the Git history in any way.
14+
1. **Non-master branches** ought to be used for ongoing work.
15+
1. **External API changes and significant modifications** ought to be subject to an **internal pull-request** to solicit feedback from other contributors.
16+
1. Internal pull-requests to solicit feedback are *encouraged* for any other non-trivial contribution but left to the discretion of the contributor.
17+
1. Contributors should attempt to adhere to the prevailing code-style.
18+
19+
## Releases
20+
21+
Declaring formal releases remains the prerogative of the project maintainer.
22+
23+
## Changes to this arrangement
24+
25+
This is an experiment and feedback is welcome! This document may also be subject to pull-requests or changes by contributors where you believe you have something valuable to add or change.
26+
27+
-----------------------------------------

LICENSE.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
The MIT License (MIT)
2-
=====================
3-
4-
Copyright (c) 2015-2016 MQTT.js contributors
5-
---------------------------------------
6-
7-
*MQTT.js contributors listed at <https://github.com/mqttjs/MQTT.js#contributors>*
8-
9-
Copyright 2011-2014 by Adam Rudd
10-
11-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12-
13-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
The MIT License (MIT)
2+
=====================
3+
4+
Copyright (c) 2015-2016 MQTT.js contributors
5+
---------------------------------------
6+
7+
*MQTT.js contributors listed at <https://github.com/mqttjs/MQTT.js#contributors>*
8+
9+
Copyright 2011-2014 by Adam Rudd
10+
11+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)