mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

There are times I think JavaScript (and Node.js) do deserve their reputation…

(Ok, ok, I don’t, but what is this, really?)

“Date.prototype.toISOString called on incompatible receiver [object Date]”

*smh*

Aral Balkan

Right, implemented workaround for JavaScript’s Proxy / Date object incompatibility in JavaScript Database (JSDB)¹ and released in version 3.0.2².

Calling methods on persisted Date objects read back into memory now works as it should.

Workaround (diff): codeberg.org/small-tech/jsdb/c
3.0.2 update (diff): codeberg.org/small-tech/jsdb/c

Kudos to Pravin Divraniya for stackoverflow.com/a/57958494

¹ codeberg.org/small-tech/jsdb
² npmjs.com/package/@small-tech/

Summary card of repository small-tech/jsdb
Codeberg.orgjsdbA zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.
#JSDB#JavaScript#JS