Repository navigation
Geode 0.6.0
Faster loads and server hops, Geode on npm for roblox-ts, and what tools need to edit Geode's records safely and find Geode wherever it's installed.
Breaking: mail is now opt in. A game that sends mail with store:mail has to make that store with mailbox = true, or those calls fail. Mail already queued is kept and applies once the store opts in.
Added
- Geode is on npm for roblox-ts as
@rbxts/geode, with the Luau source and the typings. Install it withnpm i @rbxts/geode - The typings name every type through the namespace (
Geode.Profile,Geode.TxResultand the rest) and now cover the service adapters, mock servers and their test controls,Scheduler.statsand the pipeline stage methods - Profile and shared records carry
meta.format, the layout of the stored record. Geode writes1. Records without it were written by 0.4.0 to 0.5.0 and keep loading; their next write adds it.Geode.Raw.recordFormatholds the current value Geode.Raw.externalWrite(stored, data, { now, id })for tools that edit a stored record directly in its DataStore key. It returns the record with the new data,meta.revisionone higher,meta.lastSessionset to anexternal:session and a newmeta.updatedAt, and leaves the rest ofmetaalone. That way a server whose release already landed can't take the profile back and save over the edit, and shared store caches pick it up- Geode's main module carries the
Geodetag and aGeodeVersionattribute, so tools find it wherever it's installed. Both come fromsrc/init.meta.json, so Rojo builds, Wally and npm installs and the model file all have them lune run modelbuilds Geode alone asGeode.rbxm, the model file for releases, and checks the tag and attribute are in it- Docs pages on the stored record format and the rule for external writes, and a comparison with ProfileStore, ProfileService, Lapis and DataStore2, with benchmarks run on live Roblox servers
Changed
- Breaking: mail is opt in. A profile store reads its mailbox on load only when it's made with
mailbox = true, so stores that never get mail save a GetAsync on every load.store:mailon a store without it fails instead of queuing mail nobody reads. Games that send mail need to addmailbox = truewherever the store is made; mail already queued stays in the mailbox and applies once they do - A store that takes mail reads the mailbox while it takes the lease instead of after, so a load waits for one round trip instead of two
- Server hops are faster. When the old server announces its release, the new one reads the record once past the DataStore cache before trying to take the lease. Live hops used to spend about 4 seconds on retries that kept seeing the released lease as held, and now take about 0.6 s
- A profile that loses its session because a tool edited it after its release says so in the reason