Skip to content

Releases: cloudflare/chanfana

v2.7.2

18 Mar 11:21
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.7.1...v2.7.2

v2.7.1

17 Mar 22:41
b15d8c9
Compare
Choose a tag to compare

What's Changed

  • Fix auto-endpoints failing to validate path parameters on nested routers by @G4brym in #250

Full Changelog: v2.7.0...v2.7.1

v2.7.0

14 Mar 18:20
935692e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.6.3...v2.7.0

v2.6.3

17 Jan 15:32
0764cb6
Compare
Choose a tag to compare

What's Changed

  • Fix url parameters not propagating correctly from outer routers into inner routers by @G4brym in #233

Full Changelog: v2.6.2...v2.6.3

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