Releases: wevm/frog
Releases · wevm/frog
[email protected]
Minor Changes
-
#109
e5296d8
Thanks @jxom! - This version of Frog removes the concept of "Render Cycles". All frames now facilitate a single cycle.There are a couple of small deprecations:
- Deprecated
cycle
from context – you can now omit the conditionals completely.
app.frame('/', c => { - if (c.cycle === 'main') console.log('hello world') + console.log('hello world') })
- Deprecated
fonts
property inc.res
in favor offonts
on frame route options:
app.frame('/', c => { return c.res({ imageOptions: { - fonts: // ... } }) }, { + fonts: // ... })
- Deprecated
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Minor Changes
- #87
b7031ff
Thanks @jxom! - Added built-in middleware for Neynar. Read more.
Patch Changes
-
#80
c377528
Thanks @jxom! - Type Change: Thestate
generic in theFrog
constructor type is now named.type State = { count: number } - const frog = new Frog<State>({ + const frog = new Frog<{ State: State }>({ initialState: { count: 0 } })
-
#80
c377528
Thanks @jxom! - Added avar
property to context to extract variables that were previously set viaset
in Middleware. Read more.