Open brianmhunt opened 4 weeks ago
Related:
This appears to be working in bun 1.21.
Also noting a change to the repro to use FieldValue.serverTimestamp
(instead of importing from firebase/firestore
.
I spoke too soon. The fail is no longer consistent, but it still does occur sporadically on the same data with the same command. So it might be a race condition of sorts. In any case I'll reopen - though noting that I only reproduced it with code more complex than the reproduction. The reproduction above might still illustrate the problem but I wanted to note that I have not tested it with many repetitions. The stack remains the same:
What version of Bun is running?
1.1.18
What platform is your computer?
Linux 5.15.0-1054-gcp x86_64 x86_64
What steps can reproduce the bug?
Basically following the instructions to setup Firestore [1] -- noting that some auth / a Firebase project will be needed.
[1] https://firebase.google.com/docs/firestore/quickstart#node.js
What is the expected behavior?
Write or read the given document via the Firebase / Firestore API i.e. node compatibility.
What do you see instead?
On Write (the example above):
On Read:
Additional information
For Auth see:
Firebase admin console: