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
Aral Balkan reshared this.
Aral Balkan
in reply to Aral Balkan • • •Philosophically, JSDB – which writes out to native JavaScript logs – is very much the JavaScript version of SWX, the native data format for Flash that I released around 2007 (where data was written out in native SWF format). I have to say that I’m glad I didn’t have to reverse engineer SWF bytecode this time around :)
Here’s a video of a younger me doing an impromptu demo of SWX at some conference or other from 16 years ago.
https://m.youtube.com/watch?v=OM9qOADsO3w
#JSDB #SWX #JavaScript #Flash #flashback
MAX 2007 Chicago: Aral Balkan on SWX
YouTubeAral Balkan
in reply to Aral Balkan • • •JSDB 5.0.1 published 🎉
• Fixes #14: Crash if DataProxy getHandler() called on object with null prototype. (https://codeberg.org/small-tech/jsdb/issues/14)
To install update:
npm install @small-tech/jsdb@5.0.1
Learn more about JSDB:
https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
#JavaScriptDatabase #JavaScript #database JSDB #JSDB5 #NodeJS #SmallTech #SmallWeb #web #dev
jsdb
Codeberg.orgAral Balkan
in reply to Aral Balkan • • •JSDB 5.1.0 published¹ 🎉
• Forgetting to pass a custom class that’s persisted in your database in your `JSDB.open()` call now throws instead of corrupting your database by falling back to using an untyped object.
• Added JSDF ver. 2 to 3 database migration script (i.e., JSDB version 2-4 to 5)²
To install update:
npm install @small-tech/jsdb@5.1.0
¹ https://codeberg.org/small-tech/jsdb/releases
² https://codeberg.org/small-tech/jsdb#version-2-to-3
#JavaScriptDatabase #JavaScript #database JSDB #JSDB5 #NodeJS #SmallTech #SmallWeb #web #dev
jsdb
Codeberg.org