Use @influxdata/influxdb-client-browser for Browser and Deno environments
masterUse the @influxdata/influxdb-client-browser package when developing for browser-based environments or Deno. This package provides the reference InfluxDB 2.x JavaScript client specifically optimized for these runtimes.
Important Compatibility Notes:
- Target Version: This library is designed for InfluxDB 2.x or InfluxDB 1.8+.
- Environment Restriction: Browser distributions use APIs that are incompatible with Node.js. If you are working in a Node.js environment, you must use
@influxdata/influxdb-clientinstead. - Legacy InfluxDB: For connecting to InfluxDB 1.x instances, use the
node-influxlibrary.