Skip to content

Releases: sejori/peko

v2.2.0

22 Aug 11:54
181e82b
Compare
Choose a tag to compare

V2.2.0!

No major changes to the library in this release. The only significant API change is Peko.staticFiles has become Peko.file.

Most updates in this version are in the examples and the documentation 📝

What's Changed

Full Changelog: 2.1.0...2.2.0

v.1.3.2

24 Dec 22:34
181e82b
Compare
Choose a tag to compare

What's Changed

  • feat: optional init cache items by @sebringrose in #104

Full Changelog: v1.3.1...v.1.3.2

v1.3.1

07 Dec 11:09
181e82b
Compare
Choose a tag to compare

What's Changed

  • fix: server port log by @sebringrose in #103

Full Changelog: v1.3.0...v1.3.1

v1.3.0

07 Dec 11:03
181e82b
Compare
Choose a tag to compare

What's Changed

  • test: compact router middleware by @sebringrose in #90
  • feat: logging rework by @sebringrose in #91
  • Update README.md by @sebringrose in #89
  • fix: no throw in cascade by @sebringrose in #92
  • Update README.md by @sebringrose in #93
  • Update README.md by @sebringrose in #94
  • Error handling by @sebringrose in #95
  • Update README.md by @sebringrose in #96
  • Update README.md by @sebringrose in #97
  • Update README.md by @sebringrose in #98
  • Update README.md by @sebringrose in #99
  • Update README.md by @sebringrose in #100
  • fix: logger in examples by @sebringrose in #101
  • Update README.md by @sebringrose in #102

This release is pretty huge 💪

Cascade utility has had a complete recursive rework in order to allow middleware to return responses after awaiting next() 🔁

Logger middleware now accepts a logging function so is more inline with the other middleware and replaces the unintuitive server.logging configuration ☎️

Tests were expanded to cover middleware error handling which allows for much cleaner error handling without server config 🍄

Docs code samples added to README and main preact example updated ✨

Full Changelog: v1.2.5...v1.3.0

v1.2.5

01 Dec 08:54
181e82b
Compare
Choose a tag to compare

What's Changed

  • Update README.md by @sebringrose in #86
  • Update README.md by @sebringrose in #87
  • Compact router 2 by @sebringrose in #88

Can now add routes with the shorthand syntax: server.addRoute("/hello", helloHandler) 💯

Full Changelog: v1.2.4...v1.2.5

v1.2.4

29 Nov 17:35
181e82b
Compare
Choose a tag to compare

What's Changed

  • Hotfixes by @sebringrose in #84
  • doc: minor change by @sebringrose in #85

🧇

Full Changelog: v1.2.3...v1.2.4

v1.2.3

29 Nov 12:26
181e82b
Compare
Choose a tag to compare

What's Changed

  • fix: include search params in cacher key by @sebringrose in #82
  • Cache route by @sebringrose in #83

There have been a couple of fixes and tidying ups in the RequestContext object as well as the cacher's key now including params as well as path.

Boop 🐝

Full Changelog: v1.2.2...v1.2.3

v1.2.2

29 Nov 12:18
181e82b
Compare
Choose a tag to compare

What's Changed

  • fix: async static transform by @sebringrose in #80
  • Cache route by @sebringrose in #81

You can now transform static content by receiving the Uint8 array of the content in an optional "transform" function supplied to the staticHandler.

Also the ResponseCache has been totally abstracted and the memoize handler logic has been moved into the cacher middleware. The cacher middleware has a slightly different implementation that uses only the request path in the cache item key, not the full url string.

Along with these changes there have been a couple of fixes and tidying ups in the RequestContext object as well as the cacher's key now including params as well as path.

Woop 🦆

Full Changelog: v1.2.1...v1.2.2

v1.2.1

22 Nov 09:44
181e82b
Compare
Choose a tag to compare

What's Changed

  • fix: async static transform by @sebringrose in #79

Full Changelog: v1.2.0...v1.2.1

v1.2.0

22 Nov 09:31
181e82b
Compare
Choose a tag to compare

What's Changed

  • doc: example site update by @sebringrose in #77
  • feat: optional body transform in static handler by @sebringrose in #78

Full Changelog: v1.1.0...v1.2.0