Tinyhttp Versions Save

🦄 0-legacy, tiny & fast web framework as a replacement of Express

v0.5.0

3 years ago

During hacktoberfest, lots of folks helped the project by submitting examples, writing tests and creating new middlewares. Thanks to everyone who contributed to the project!

Release details

Express API implementation progress

~96% of API is ready. Only a few methods left.

  • res.append
  • req.path

New middleware

New examples

  • Prisma REST API
  • Prisma GraphQL
  • PostgreSQL
  • Sapper (Svelte SSR)
  • React SSR
  • rate limiting
  • auth (session)
  • search engine

Other minor changes

  • Coverage increase from 60% to 71%

  • @tinyhttp/markdown's recursive prop works properly now

0.4

3 years ago

In 0.4.X a lot of new req / res extensions are added, also some new app settings.

Request / Response extensions

Request

Properties

  • req.subdomains
  • req.app

Methods

  • req.acceptsCharsets
  • req.acceptsEncodings
  • req.acceptsLanguages
  • req.is

Response

Properties

  • res.locals
  • res.app

Methods

  • res.type
  • res.format
  • res.redirect :tada:

App

App now has 2 new settings:

  • subdomainOffset - configuration of req.subdomains domain offset
  • bindAppToReqRes - access req.app and res.app

Packages

Created new package - @tinyhttp/type-is

0.3

3 years ago

This is the first proper github minor release with lots of fixes and changes, all were made during a few months of hard work. Also, during this period, tinyhttp gained quite a good starting audience, people already start using it and I feel excited for what cool things can be built with tinyhttp!

Anyways, here's the release notes (I will probably automate it later):

  • add template engine support
  • add sendFile function (most recent addition) and a lot of other Express methods
  • finish writing the docs
  • add "common tasks" and "advanced topics" sections to docs
  • split @tinyhttp/app by 4 separate framework-agnostic packages
  • setup husky and commitlint
  • add 25 examples
  • add 10 middlewares, including @tinyhttp/session, @tinyhttp/ip-filter and more