|
|
|
|
|
by haberman
3934 days ago
|
|
Yes I see that. But if IndexedDB were supported on Node I also would not have this problem. So the question is, why can't node just support IndexedDB (which is formally specified in a standards document) instead of inventing an extremely similar but incompatible api? |
|
Node is just a JS environment. Implementing IndexedDB is as much out of scope as implementing XHR[2] or the File API[3]. In fact it provides the building blocks developers to implement any of these on top of Node should they need to (like node-fetch[4] implementing the Fetch API[5] for isomorphic apps).
[0]: http://www.w3.org/TR/IndexedDB/
[1]: http://leveldb.org/
[2]: https://xhr.spec.whatwg.org/
[3]: http://www.w3.org/TR/FileAPI/
[4]: https://www.npmjs.com/package/node-fetch
[5]: https://fetch.spec.whatwg.org/