Skip to content

frog@1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Aug 09:04
· 1 commit to main since this release
702c4ea

Minor Changes

  • 5225ab5: Added pluggable friction stores, a Postgres.js-backed Store.postgres({ connectionString }) factory, and the Frog.create logging API.

    import { Frog, Store } from 'frog'
    
    const store = Store.postgres({ connectionString: process.env.DATABASE_URL! })
    const frog = Frog.create({ store })
    await frog.log({
      body: 'The workaround used.',
      severity: 'minor',
      title: 'Tool required a workaround',
    })
    const logs = await frog.logs()
    await store.close()