Is there a minimum browser version/feature policy for MQTT.js? (BigInt support issues) #1881
Replies: 1 comment 2 replies
-
Hi @lorennorman and thanks for your findings. I started maintaining MQTTjs from v5 and apart from completely rewrite it in TS I did lot of effort in order to improve MQTTjs browser support by moving from browserify to esbuild, fixing a tons of issues (TONS) and finally adding browser tests (including service workers) using wtr. I personally use MQTTjs in production in many projects and I never had such compatibility issues and I never worried about supporting old browsers version as I think the most important thing is to support latest. About IE not supported I once heard that: "Breaking IE is a feature not a bug" 😄 Jokes apart, about the 2 recomendations I'm open for both but I don't have time to invest on this so I let you decide if:
I wish we could get rid of cc @mcollina |
Beta Was this translation helpful? Give feedback.
-
Hello!
We're running into issues updating from version 4.2.x to 5+ for our legacy browser builds. Technical details follow, but I think it would be most helpful if this library was clear about which browser versions it supports.
Is there a document anywhere detailing the minimum browser requirements for MQTT.js?
Through much experimentation, we've determined they are at least:
This appears to be due to:
readable-stream
readable-stream
is a browser port of a Node built in libraryBigInt
constructors and literalsreadable-stream
4+, it embeds BigInt literals into its codeI feel this is worth pointing out because the whole thing is so confusing and it's wasting many developers' time. We get JS compilation issues that we aren't used to ("why does everything else transpile but not this? what code is even using this?", etc.) We get brief responses to issues on various libraries that seem like the maintainer may not fully understand the issue (even the build tool maintainers.)
Love to hear any thoughtful comments on all this!
2 possible recommendations:
Beta Was this translation helpful? Give feedback.
All reactions