Just deployed a new version of Kitten.
It uses the latest version of JSDB (5.1.3) which fixes an issue where instances of `EventEmitter` subclasses persisted to the database were erroneously persisting their (by convention private) `_events` arrays containing `AsyncFunction` instances and thereby causing a crash on the database open attempt when the `AsyncFunction` class could not be found as it wasnāt provided to the `JSDB.open()` method.
https://codeberg.org/kitten/app
š
Aral Balkan
in reply to Aral Balkan • • •ā¦ JSDB, by the way, is short for JavaScript Database, which is, umm, a JavaScript database.
Itās an in-process, in-memory database for Node.js for Small Web use that persists to an append-only JavaScript ā not JSON, JavaScript ā transaction log.
JSDBās very easy to work with because you just use native JavaScript objects and they just automatically get persisted for you.
e.g., Hereās a quick 6-line Kitten app that persists a counter:
https://codeberg.org/kitten/app#using-javascript-database-jsdb-a-not-so-scary-database
#JSDB #Kitten #SmallWeb #web #dev
app
Codeberg.org