amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

lib/ison: Use setTimeout instead of setImmediate. #1226

Closed georgyo closed 2 years ago

georgyo commented 2 years ago

Allows the use of IndexDB in browsers

amark commented 2 years ago

@georgyo I apologize I haven't processed this sooner, we were kinda bouncing between ison and yson. yson seems stable now (... anyone tell me if there is yet another edge case I missed? https://github.com/amark/gun/blob/e3eaf5e2680b41915f4ba1bf8e380c35e842e208/test/common.js#L73-L123 ). Gonna pull this anyways tho, since <3 useful contributions that improve better cross-environment support. Thank you!!!