Skip to content

Releases: adonisjs/http-server

Adding routeKey to the context. It is a unique reference to the route

15 Apr 11:32

Choose a tag to compare

  • feat: add routeKey to the matched route and the context dafe042
  • chore: update dependencies b20e313

v2.0.2...v2.0.3

Handful of internal improvements

13 Apr 08:27

Choose a tag to compare

  • style: update license docblock 5522f4d
  • refactor: move ExceptionManager inside the Server folder 303626d
  • chore: add missing mime-types dependency cf4ddf7
  • chore: update peer dependencies 03497fd
  • chore: remove typedoc 58680e3
  • chore: update dependencies 37aeb23

v2.0.1...v2.0.2

Removing clone-deep dependency

12 Apr 15:38

Choose a tag to compare

  • chore: remove clone-deep, since it has vulnerability 90ce81c
  • fix: add missing dependency 58c550c

v2.0.0...v2.0.1

Changes around cookies management

12 Apr 14:55

Choose a tag to compare

The eco-system packages like encryption has received a face lift, where it makes encryption even more stronger than before. Check the encryption release for more info.

Because of the encryption facelift, we have improved the security of cookies and changed the way we used to parse them on every HTTP request.

Cookies related changes

  • The cookies cannot be swapped with each other. This is a common vulnerability in many frameworks, where you can swap the values of two cookies on the client and server will have no idea about it. Rails is the only one, that can detect this swap and now AdonisJS does it too.
  • Earlier we were parsing all the cookies, as soon as you read one or more cookies. This can be used as a trick to make your servers process unnecessary cookies set by the client, just for the purpose of keeping the server busy. Now, we lazily unpack cookies, as you ask for them. This means the cookies and plainCookies methods have been removed from the request object and you can use cookiesList to see an object of unpacked cookies.
  • We added support for encrypted cookies, alongside with signed cookies. The signed cookies are great, but they can decoded on the client side to read the values. This itself is not a threat, since no one can modify the original value. However, at times cookies can contain sensitive information and want to avoid the client from decoding it. For that purpose, you can use encryptedCookies

Changes to the types

We unnecessary added the Contract prefix to all the types earlier. Now, we are removing them. Yes, it can be inconvenience, but the earlier we do it, the easier the change will be

Commits

  • style: inline constructor arguments 31de574
  • docs(README): update example block bd3722c
  • style: adding required docblocks 029f80f
  • refactor: cleanup of interface and types names 9e36d1e
  • refactor: drop unncessary dependencies and self implement cookie parser and serializer 8ec1796

v1.8.2...v2.0.0

Remove Route.destroy in favor of Route.delete

02 Mar 09:10

Choose a tag to compare

This commit reverses the breaking change

  • refactor: remove route.destroy in favor of route.delete 4d9f97f

v1.8.1...v1.8.2

Improvements to the store matchDomain lookup method

01 Mar 08:18

Choose a tag to compare

  • refactor: do not cache route lookups, instead make matchDomain method smart adc22ca
  • chore: update dependencies 741308d

v1.8.0...v1.8.1

Adding ctx on request and response

27 Feb 06:28

Choose a tag to compare

The request and response objects are meant to the extended using macros. The extended methods may want to read values from the ctx like profile, params and so on and hence holding a reference to ctx makes that possible

  • feat: add ctx property on request and response 08b8f63

v1.7.4...v1.8.0

Upgrade underlying dependencies

26 Feb 09:16

Choose a tag to compare

  • chore: downgrade np, since v6 has bugs 909f1b7
  • chore: update dependencies e3082a8

v1.7.3...v1.7.4

Fixing response file streaming methods to be more consistent

15 Feb 05:46

Choose a tag to compare

  • refactor(response): stream file error callback can return body and status code 6740bfa
  • chore: update dependencies 0a84014

v1.7.2...v1.7.3

Improving content negotiation types

14 Feb 12:19

Choose a tag to compare

  • refactor: improve types of content negotiation methods 9ff5f2d
  • chore: update dependencies 0eee90a
  • chore: rely on latest version of profiler 320d2b6

v1.7.1...v1.7.2