Skip to content

Commit

Permalink
chore!: remove unused deps, convert to ES2015 class (#1633)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: when creating an `MqttClient` instance `new` is now required
  • Loading branch information
robertsLando committed Jul 11, 2023
1 parent 3348814 commit d71b000
Show file tree
Hide file tree
Showing 14 changed files with 1,801 additions and 2,104 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/mqttjs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
DEBUG: "mqttjs"

- name: Test Browser
if: matrix.node-version == '20.x'
# only run on latest node version, no reason to run on all
timeout-minutes: 2
run: |
npm run browser-build
Expand Down
5 changes: 2 additions & 3 deletions bin/pub.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
'use strict'

const mqtt = require('../')
const pump = require('pump')
const { pipeline, Writable } = require('readable-stream')
const path = require('path')
const fs = require('fs')
const concat = require('concat-stream')
const Writable = require('readable-stream').Writable
const helpMe = require('help-me')({
dir: path.join(__dirname, '..', 'doc')
})
Expand Down Expand Up @@ -40,7 +39,7 @@ function multisend (args) {
}

client.on('connect', function () {
pump(process.stdin, split2(), sender, function (err) {
pipeline(process.stdin, split2(), sender, function (err) {
client.end()
if (err) {
throw err
Expand Down

0 comments on commit d71b000

Please sign in to comment.