Skip to content

v0.3.0

Choose a tag to compare

@atinux atinux released this 07 Mar 17:07
· 631 commits to main since this release

compare changes

🚀 Enhancements

We added the Nitro default cache binding to a KV namespace in order to support Nitro cachedEventHandler and cachedFunction with zero-configuration (e524bfe)

// server/api/cached.ts
export default cachedEventHandler(async () => {
  return {
    now: Date.now()
  }
}, {
  // cache for 10 seconds
  maxAge: 10
})

⚠️ If you self-host, you will need to create a KV namespace and bind it with CACHE, see https://hub.nuxt.com/docs/getting-started/deploy#self-hosted

We also added the possibility to batch delete blobs using an array of pathnames (5c424c8)

await hubBlob().delete(['my-file.jpg', 'second-file.jpg'])

📖 Documentation

  • Correct capitalisation for Cloudflare (#8)
  • Update 3.deploy.md (#6)
  • Update 3.deploy.md (#7)
  • Update 3.deploy.md (#10)
  • GitHub edit link for content in app.config.ts (#11)
  • Update twitter link (13a57f3)
  • Fix code snippet in 3.blob.md (#12)
  • Move font to Inter (fae96d4)
  • Improve content and add cache note (d4c98d3)

🏡 Chore

🤖 CI

  • Remove contents: read permission as repo is now public (68fc0b4)

❤️ New Contributors

Full Changelog: v0.2.1...v0.3.0