Skip to content

Releases: cloudflare/chanfana

v1.1.0

21 Mar 13:25
Compare
Choose a tag to compare

What's Changed

  • feat: type inference support for data argument by @iann838 in #130

Now you can get full type hint and type check on the data argument of every endpoint, learn more here!

export class TaskFetch extends OpenAPIRoute {
  static schema = {
    parameters: {
      taskSlug: Path(Str, {
        description: 'Task slug',
      }),
    },
  }

  async handle(request: Request, env: any, context: any, data: DataOf<typeof TaskFetch.schema>) {
    // full type hint for query, path, header, and request body parameters!
    data.params.taskSlug
    
    // ...
  }
}

Full Changelog: v1.0.14...v1.1.0

v1.0.14

14 Mar 12:35
2d9d2bf
Compare
Choose a tag to compare

What's Changed

  • Fix property content type wrongfully appearing in response schema by @G4brym in #137

Full Changelog: v1.0.13...v1.0.14

v1.0.13

13 Mar 15:38
0f02a3b
Compare
Choose a tag to compare

What's Changed

  • Fix unexpected parameter error when running locally with node 18.x by @G4brym in #135

Full Changelog: 1.0.13...v1.0.13

1.0.13

07 Mar 18:08
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.12...1.0.13

v1.0.12

06 Mar 18:10
0748192
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.11...v1.0.12

v1.0.11

02 Mar 11:56
978c412
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.10...v1.0.11

v1.0.10

06 Feb 12:15
89255c1
Compare
Choose a tag to compare

What's Changed

  • Fix all parameters not being detected in non openapi routes

Full Changelog: v1.0.9...v1.0.10

v1.0.9

06 Feb 11:57
c8777e8
Compare
Choose a tag to compare

What's Changed

  • Add option to define custom base router
  • Fix path parameters not working when using nested routers

Full Changelog: v1.0.8...v1.0.9

v1.0.8

29 Jan 16:47
665b38e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.7...v1.0.8

v1.0.7

10 Jan 14:47
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.6...v1.0.7