Skip to content

Releases: cloudflare/chanfana

v2.6.2

16 Jan 16:31
6f4fb5c
Compare
Choose a tag to compare

What's Changed

  • Fix itty router nested routers appending the wrong prefix to routes by @G4brym in #231

Full Changelog: v2.6.1...v2.6.2

v2.6.1

16 Jan 14:58
523259b
Compare
Choose a tag to compare

What's Changed

  • Fix fromHono() type error for apps with overwritten generics by @G4brym in #230

Full Changelog: v2.6.0...v2.6.1

v2.6.0

16 Jan 14:42
066ca70
Compare
Choose a tag to compare

What's Changed

  • Add support for .route() and .all() for Hono and improve Hono types by @G4brym in #229

You can now use .route() to have nested routers, and .all() to have a class handle all HTTP methods

const authors = fromHono(new Hono())
  .get('/', ListAuthors)
  .post('/', CreateAuthor)
  .get('/:id', GetAuthor)

const books = fromHono(new Hono())
  .get('/', ListBooks)
  .post('/', CreateBook)
  .get('/:id', GetBook)

const app = fromHono(new Hono())
app.route('/authors', authors)
app.route('/books', books)

app.all('/events', EventsCatchAll) // .all() will not register any method in the openapi schema

export default app;

Full Changelog: v2.5.4...v2.6.0

v2.5.4

08 Jan 14:11
5986b0d
Compare
Choose a tag to compare

What's Changed

  • Fix list generic endpoint default order by by @G4brym in #226

Full Changelog: v2.5.3...v2.5.4

v2.5.3

08 Jan 12:12
cd1ba5e
Compare
Choose a tag to compare

What's Changed

  • Add custom order by fields to list generic endpoint by @G4brym in #224

Full Changelog: v2.5.2...v2.5.3

v2.5.2

17 Dec 11:04
2d353f4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.1...v2.5.2

v2.5.1

13 Dec 10:34
8a50429
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.0...v2.5.1

v2.5.0

12 Dec 14:52
5ba6d95
Compare
Choose a tag to compare

What's Changed

  • Fix headers validation for requests that receive empty headers by @G4brym in #211
  • Update generic cruds to use generic d1 binding methods directly instead of orm's by @G4brym in #212

Full Changelog: v2.4.2...v2.5.0

v2.4.2

05 Dec 23:03
9d9325e
Compare
Choose a tag to compare

What's Changed

  • Add support for hono.on(method, path, class) by @G4brym in #208

Full Changelog: v2.4.1...v2.4.2

v2.4.1

05 Dec 17:44
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.0...v2.4.1