Skip to content

Releases: sholladay/pogo

0.6.0

24 Sep 09:31
Compare
Choose a tag to compare

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!

0.5.2

20 Mar 19:07
Compare
Choose a tag to compare

Bug fixes πŸ›

  • Fixed request path resolution on newer versions of Deno with a spec-compliant URL constructor
  • Fixed export of TypeScript types on newer versions of Deno by using export type

All changes πŸ“š

v0.5.1...v0.5.2

Thanks ❀️

Some awesome people contributed to this release. Thank you to @yereby!

0.5.1

09 Sep 03:11
Compare
Choose a tag to compare

Bug fixes πŸ›

All changes πŸ“š

v0.5.0...v0.5.1

Thanks ❀️

Some awesome people contributed to this release. Thank you to @khrome83 (for PR #50 even though I didn't merge it)!

0.5.0

13 Aug 20:49
f1fc12f
Compare
Choose a tag to compare

Highlights πŸ”

  • Added a sponsors button to the GitHub repository, please consider sponsoring Pogo! πŸŽ‰
  • Added h.directory() and h.file() helpers for serving static assets
  • Added TypeScript docs and support for deno doc
  • Added named exports for all APIs as an alternative to the default export object, so you can now do import { router } instead of import pogo ... pogo.router
  • Added paramNames to routes stored in a router, which can be accessed via request.route.paramNames, for example
  • Added a new React on Server example, demonstrating server-side rendering of static markup with React
  • Updated the minimum supported Deno version to v1.2.0

Bug fixes πŸ›

  • Fixed problems with loading type definitions for React due to upstream changes on the https://deno.land/x registry
  • Fixed support for GitHub's link-to-definition feature in documentation code blocks, so you can click on code in the README, for example, to see where it's defined in the source code

All changes πŸ“š

v0.4.0...v0.5.0

Thanks ❀️

Some awesome people contributed to this release. Thank you to @afaur, @venikman, and @yereby!

0.4.0

09 Jun 02:58
da3b44b
Compare
Choose a tag to compare

Highlights πŸ”

  • The code has been rewritten in TypeScript (#14)
  • Added support for HTTPS
  • Added support for Deno 1.0 and higher
  • Improved documentation on React support
  • Improved Router API with support for nested arrays and other iterables, as well as wildcard paths and virtual hosting
  • Added a catchAll server option for convenience to create custom 404 pages (#17)

Bug fixes πŸ›

  • Fixed support for request.body on newer version of Deno (#21)
  • Fixed curl commands in examples for Ubuntu and other Linux variants (#24)

All changes πŸ“š

v0.3.0...v0.4.0

Thanks ❀️

Some awesome people contributed to this release. Thank you to @davidjamesstone, @ZPiDER666, @danditomaso, @npup, @PKief, @tomanagle, and @patlehmann1!

0.3.0

16 Feb 07:28
Compare
Choose a tag to compare

Highlights πŸ”

Bug fixes πŸ›

  • Fixed handling of Uint8Arrays when returned by route handlers

All changes πŸ“š

v0.2.1...v0.3.0

0.2.1

03 Oct 06:30
Compare
Choose a tag to compare

Highlights πŸ”

Bug fixes πŸ›

  • Fixed a server crash caused by debugging code that was accidentally included in the last release.
  • Fixed the ability to respond with a Reader instance (files and buffers).

All changes πŸ“š

v0.2.0...v0.2.1

0.2.0

28 Sep 09:03
bc4d8ba
Compare
Choose a tag to compare

Highlights πŸ”

  • Added support for dynamic routes with path parameters.
  • Added support for routes with a wildcard method (i.e. method : '*').
  • Added support for routes with an array of methods.
  • The request object passed to route handlers has many new properties, including host, url, params, and more.
  • Moved response helpers from the toolkit to request.response. The toolkit is now focused on creating responses.
  • Upgraded to Deno v0.19, which is now the minimum supported version.

Bug fixes πŸ›

A routing bug has been fixed where routes would not be matched correctly if the request URL included a query string.

All changes πŸ“š

v0.1.2...v0.2.0

0.1.2

12 Jun 02:52
Compare
Choose a tag to compare

Highlights πŸ”

  • Improve performance significantly by handling requests concurrently
  • Fix documentation for supported Deno versions

All changes πŸ“š

v0.1.1...v0.1.2

0.1.1

24 May 09:58
Compare
Choose a tag to compare

Highlights πŸ”

  • Improved documentation for the Response Toolkit
  • Added support for recent versions of Deno (0.3+ should work, but 0.6+ is officially supported)

All changes πŸ“š

v0.1.0...v0.1.1