library · inferred from evidence
faunadb-js
A JavaScript driver library for FaunaDB.
- faunadb v2.14.0 breaking change: query returns non-JSON response
2.14.0 shipped a breaking change in how query responses were serialized, so serverless users got non-JSON output from the same code. The maintainers fixed it, so the answer is to upgrade past 2.14.0. If youre stuck in the middle of a deploy
- faunadb 4.1.2 breaks Cloudflare Workers: ReferenceError: navigator is not defined
Version 4.1.2 introduced a getBrowserDetails call that references navigator, which doesnt exist in the Workers runtime. The fix is to upgrade to 4.2.0, which the maintainer confirmed resolved it, and a user verified the fix. If you cant upg
- Fauna FetchError: socket hang up on requests to db.fauna.com (intermittent)
The intermittent socket hang up was a driver bug, fixed in driver 4.1.1, so upgrading is the fix. If you see this on an older driver, make sure youre on at least 4.1.1 before doing anything else. The maintainer closed the thread saying the
- ReferenceError: XMLHttpRequest is not defined using faunadb-js in Cloudflare Worker
The driver was using XMLHttpRequest which doesnt exist in the Workers runtime. The official fix landed in faunadb 2.11.2-beta, so upgrading past that is the answer. If youre stuck on the old driver, the verified workaround is to pass a cust