Heads up anyone playing with Kitten at the moment (yes, both of you):
I’m in the process of upgrading Kitten’s version of JSDB from 4 to 5.
*This is a breaking change.*
This will affect you if you’re persisting custom objects (instances of your custom model classes) in your databases.
Please see the details in this JSDB announcement post and the linked-to details page to prepare:
https://mastodon.ar.al/@aral/112361559531645603
(I should have the update out this afternoon.)
#Kitten #JSDB #BreakingChange #SmallWeb
JSDB 5.0.0 published 🎉• Custom classes must have a `constructor` that accepts a parameter object as its only argument. Constructors are run during deserialisation.
• Custom classes can now safely extend other classes (e.g., `EventEmitter`).
• Properties that begin with an underscore (`_`) are treated as private and ignored.
• Objects with null prototypes are supported. i.e., objects created with `Object.create(null, …)`.
Full details: https://codeberg.org/small-tech/jsdb#migrating-from-earlier-versions-of-jsdf
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