Skip to main content

Search

Items tagged with: JSDB


🥳 New JavaScript Database (JSDB) release

• Fix: Now properly handling array indices on `JSTable.PERSIST` events in the `keypath` property that’s passed to the event handler.

Just noticed that the pretty keypaths of the JavaScript deltas written to the append-only log were ignoring array indices while playing with a new database introspection call I’m adding to the Kitten Interactive Shell (REPL) and fixed it.

I’ll be updating Kitten shortly to use this version of JSDB and I haven’t forgotten my promise to record a little video of the new Kitten Introspection API.

Enjoy!

💕

codeberg.org/small-tech/jsdb#r…

#JavaScriptDatabase #javascript #database #JSDB #SmallTech #SmallWeb #NodeJS


Just made a little correction to the JavaScript Database (JSDB) Table Events section:

Previously, the example that listens for the JSTable.PERSIST event was erroneously stating that the table was deleted when the `type` property in the event handlers parameter object was JSTable.DELETE. It now correctly states that the value at `keypath` was deleted.

I also documented the JSTable.PERSIST types so they wouldn’t be confused with the JSTable event types (persist and delete; the latter of which does actually signal that the table – i.e., the append-only JavaScript log – was deleted.

codeberg.org/small-tech/jsdb#t…

#SmallWeb #SmallTech #JavaScript #database #JSDB #documentation #events #fix

⇧