Commit graph

10 commits

Author SHA1 Message Date
Michael Lynch
486a075b8e Add a browser-only export for Web clients
This package has a single export that includes both NodeJS and browser modules. When a web project imports this library, the build generates a bunch of warnings, like this in vite:

[plugin vite:resolve] Module net has been externalized for browser compatibility...
[plugin vite:resolve] Module stream has been externalized for browser compatibility...
...

We can clean this up by creating a special browser-only export. Bundlers like Vite and Webpack know to choose the 'browser' export in projects that are web-only (not NodeJS).

This change adds a 'browser' export and updates the documentation to use browser-only examples.
2025-12-29 16:41:42 -05:00
liamcottle
e6ffafc195 update lang 2025-04-08 14:54:36 +12:00
liamcottle
a781834bc7 update readme example 2025-04-08 14:54:10 +12:00
liamcottle
06f8f9d4ea refactor ble connection to web ble connection 2025-04-08 13:54:25 +12:00
liamcottle
6a3d96b6c6 update readme 2025-04-08 13:51:10 +12:00
liamcottle
b6f5618882 add supported connection methods to readme 2025-04-08 13:49:42 +12:00
liamcottle
c7d604eea9 update readme 2025-04-08 13:27:25 +12:00
liamcottle
540baec4b9 add example to readme 2025-03-04 17:42:20 +13:00
liamcottle
7b2e58b116 update readme 2025-03-04 16:50:47 +13:00
liamcottle
99427ecf3f add readme 2025-02-12 23:08:24 +13:00