Skip to content

0.6.0

Latest
Compare
Choose a tag to compare
@sholladay sholladay released this 24 Sep 09:31
· 1 commit to master since this release

Highlights πŸ”

  • Pogo now has a logo πŸ¦•
  • Updated to React 18
  • Added automatic <!DOCTYPE html> for React pages
  • Added support for Deno Deploy πŸš€
  • Pogo's own request and response objects are now backed by web standard Request and Response objects, which means parsing the request body is much easier with request.raw.json(), request.raw.formData(), etc.
  • Updated server.inject() to take a web request and return a web response
  • Added response.toWeb() to serialize a Pogo response to a web response
  • Added a custom request.toString() method to make requests easier to log
  • Added server.url to simplify using server.inject() with absolute URLs, which are required by web request objects
  • Added the ability to pass an Error or an existing response to h.response()
  • Added the ability to pass a URL object to a few APIs, such as response.redirect()
  • Improved stack traces for errors that are wrapped by the Bang module, by using error.cause to preserve the original error's stack
  • The server now uses Deno's native APIs to improve performance 🐎
  • Handler errors are now logged to stderr (this will be configurable in a future release)
  • Improved styling for directory listings, including human friendly file size formatting πŸ’„
  • Improved documentation and examples (e.g. list cookie options and defaults, show how to listen on a public hostname, and much more)
  • Updated the minimum supported Deno version to v1.20.0
  • Improved the TypeScript types for response.rewritable() and a few other APIs
  • Dependencies that are not on deno.land/x, such as React, are now loaded from the esm.sh CDN, which further improves type safety πŸ‘·β€β™€οΈ

All changes πŸ“š

v0.5.2...v0.6.0

Thanks ❀️

Some awesome people contributed to this release. Thank you to @jaspermolgvits, @KaKi87, and @Tnifey!