cloudflare / chanfana

OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!
https://chanfana.pages.dev
MIT License
288 stars 38 forks source link

Updates itty-router to v4.x and adds isomorphic-fetch to test suite f… #60

Closed kwhitley closed 1 year ago

kwhitley commented 1 year ago

Changes

That's it!

Should be a seamless change for your users :)

github-actions[bot] commented 1 year ago

🧪 A prerelease is available for testing 🧪

You can install this latest build in your project with:

npm install --save https://prerelease-registry.devprod.cloudflare.dev/itty-router-openapi/runs/5280175720/npm-package-itty-router-openapi-60

Or you can immediately run this with npx:

npx https://prerelease-registry.devprod.cloudflare.dev/itty-router-openapi/runs/5280175720/npm-package-itty-router-openapi-60
G4brym commented 1 year ago

Thanks @kwhitley for doing this work 😄 i will do some manual tests tomorrow and publish a new release early next week with this changes

kwhitley commented 1 year ago

Happy to! I'm still fighting with making sure the exports are CJS/ESM compatible in all the various configs... if pathing/include changes in the near term, I'll be sure to PR again if any changes are needed on this side :)

G4brym commented 1 year ago

Hey @kwhitley i had to update your changes to import from itty-router instead of itty-router/cjs/Router as you have made in this pr, due to some execeptions that were getting raised when running this new version in wrangler Here is the commit image