🥳 JavaScript Database (JSDB)¹ version 7.0.0 released
- *Breaking change* JSTable.PERSIST event now uses a parameter object with properties for `type`, `keypath`, `value`, `change`, and `table`. This should make listening for events on your databases much nicer to author. e.g., a snippet from Catalyst² I’m working on:
```js
const settingsTable = db.settings['__table__']
const JSTable = settingsTable.constructor
settingsTable.addListener(JSTable.PERSIST, ({ keypath, value }) => {
switch (keypath) {
case 'servers.serverPoolSize':
console.info('New server pool size requested', value)
this.updateServerPool()
break
// etc.
}
})
```
This new version of JSDB is not in the latest Kitten³ yet as it is a breaking change and I want to make sure I update my sites/apps first if needed. I should have it integrated tomorrow.
To see the simple use case for JSDB in Kitten (the default untyped database that’s easy to get started with and perfect for quick experiments, little sites, etc.), see: kitten.small-web.org/tutorials…
For a more advanced tutorial for creating your own typed databases in Kitten, see the Database App Modules tutorial: kitten.small-web.org/tutorials…
For another example, see: codeberg.org/small-tech/jsdb/#…
Full change log: codeberg.org/small-tech/jsdb/s…
Enjoy!
💕
¹ codeberg.org/small-tech/jsdb#r…
² catalyst.small-web.org
³ kitten.small-web.org
#JavaScriptDatabase #JavaScript #appendOnlyLog #JS #JSDB #JSDBUpdates #SmallTech #SmallWeb #Kitten #Catalyst
jsdb
A zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.Codeberg.org

Aral Balkan
in reply to Aral Balkan • • •🥳 New Kitten release
Just released a new version of Kitten that now includes JSDB 7.0.0 with its improved JSTable.PERSIST event.
kitten.small-web.org
Note that this is a breaking change. If you’re listening for the old 'persist' event, please update your code.
For more information, please see the changelog: codeberg.org/kitten/app/src/br…
Enjoy!
#SmallWeb #SmallTech #Kitten #KittenReleases #web #dev #JavaScriptDatabase #JSDB #NodeJS
app/CHANGELOG.md at main
Codeberg.orgCheshire Lunar Kitten
in reply to Aral Balkan • • •a new version of...me.
Is that why i suddenly have these murder bot attachments?
Aral Balkan
in reply to Cheshire Lunar Kitten • • •Cheshire Lunar Kitten
in reply to Aral Balkan • • •...
Yes...
But thats normal for candle cove
Right?
Aral Balkan
in reply to Cheshire Lunar Kitten • • •@Chesi *shudders* :)
(Had to look it up… maybe not the best thing to read first thing in the morning. Or last thing at night. Or at any point during the day… but, hey, at least I know what a creepypasta is now.) :)
*thinks calming Murderbot thoughts*
Murderkitten?