![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
This library isn't just a wrapper around MQTT.js for angular >= 2. It uses observables and takes care of subscription handling and message routing.
For reasons of convenience, I removed the copied typings from mqtt.js and added it as a dev-dependency while still bundling the browserified latest version of it.
This means although you have the possibility to use mqtt
, mqtts
, tcp
, ssl
, wx
or wxs
as the protocol in the client options, you can't, because this is a browser library where you can't conntect with something other than websockets. You also can't use key
, cert
and ca
for the same reasons.
If you have any issues using this library, please visit it's homepage and look for similar issues in the issue tracker before you file a bug.
For local development all peer dependency automatically installed during install. Also please be aware that exact MQTT version used as dependency, you need to manually bump it if it will update.
To follow semver helper scripts was added npm run release:patch
etc.
Those commands will autoupdate changelog and dependant package.json's
Unfortunately command npm publish
is broken due to nature of ng-packager.
It's substituted with npm run publish
, which will correctly build and publish production build
FAQs
This library isn't just a wrapper around MQTT.js for angular. It uses observables and takes care of subscription handling and message routing.
The npm package ngx-mqtt receives a total of 5,924 weekly downloads. As such, ngx-mqtt popularity was classified as popular.
We found that ngx-mqtt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.