Changelog
What each release of @velven/sdk and the script tag added. Releases only add: nothing a page already calls changes or goes away. Versions explains which release a page runs.
0.3.0
History reads, retry keys, cancelling a sign-in and a server helper.
top,aroundandminetakebucket(current,previousor a date) andseason, to read past days, weeks and seasons.- Every read carries
info: the board's label, unit, metric, sort, mode, entries, period, bucket and season. top({ after })pages in the bucket and season the row was read from, so a board paged across midnight stays on its day.scores.submittakesrequestId, so a retried run is entered once.signIntakes anAbortSignalassignal, and a cancelled ask answerscancelled.Velven.versionnames the release, andVelven.spacethe space the page runs in.createVelven({ probeTimeoutMs })anddata-probe-timeouton the script tag set how long a frame waits for Velven, 3 to 60 seconds.- A
signed_outanswer to a score call clears the cached token andVelven.user. - Locally, boards roll over by
periodandseason, and 3 new query parameters arrive:?velven_seed=,?velven_strict=1and?velven_slow=. @velven/sdk/serveraddsverifyTokenandpostScore, for Node 20 and later, Deno, Bun and Cloudflare Workers.
0.2.0
Saves, and the player's own row.
Velven.datakeeps a player's progress withgetItem,setItem,removeItemandclear, up to 1 MB per player and space.scores.mine({ board })answers the player's own row, ornullbefore their first score.
0.1.0
The first release, as the script tag and the npm package @velven/sdk.
ready(),Velven.environmentandVelven.user.signIn(), plain or{ silent: true }, andonAuth.scores.submit,scores.topandscores.around.- The local environment, with
?velven_user=,?velven_token=expiredand?velven_local=1.