Skip to content

frog@0.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Mar 22:28
· 205 commits to main since this release
35eba25

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:

    1. 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')
    })
    1. Deprecated fonts property in c.res in favor of fonts on frame route options:
    app.frame('/', c => {
      return c.res({
        imageOptions: {
    -     fonts: // ...
        }
      })
    }, {
    +  fonts: // ...
    })