Skip to content

Releases: adonisjs/http-server

Update dependencies

23 Jan 10:49
Compare
Choose a tag to compare

Full Changelog: v7.0.1...v7.0.2

Use status pages return value and add new cookie options

22 Jan 12:43
Compare
Choose a tag to compare

This release fixes the behavior of statusPages property defined on a exception handler. Earlier, a status page callback function was responsible for writing the HTTP response via the response.send method. However, how you can return a string value from this method and the will be written as the response.

Also, we now support partitioned and priority cookie options. Lear more about them here. https://github.com/jshttp/cookie?tab=readme-ov-file#partitioned

Commits

  • fix: use status page return value as response 11324f0
  • feat: optionally accept partitioned and priority cookie options f1397c8
  • chore: update dependencies ea56755

Full Changelog: v7.0.0...v7.0.1

Stable major release

07 Jan 07:25
3fa852d
Compare
Choose a tag to compare

Please reference the following releases to learn more about the breaking changes and new additions.

Commits

  • chore: drop usage of --expiremental-meta-resolve flag 35b7e35
  • chore: publish under latest tag 246e5d2
  • Merge pull request #79 from adonisjs/next 3fa852d
  • refactor: remove usage of import.meta.resolve API b52c2c8
  • fix: do not re-assign error.message and error.status when already exists 7903e5e
  • refactor: make cookie default options more secure 8e5d4f8
  • test: remove regression test, since it is fixed in starter kit a84d434
  • chore: update dependencies 1388687

What's Changed

  • fix: add missing @types/node package by @RomainLanz in #68
  • refactor: use fs/promises instead of util.promisify by @targos in #70
  • feat(request): allow to use a boolean for trustProxy by @RomainLanz in #76
  • fix: clearing slash prefixes before adding uriSegment within url builder's processPattern by @tomgobich in #77
  • Merge to develop for final release by @thetutlage in #79

New Contributors

Full Changelog: v5.12.0...v7.0.0

Rename request finished event

19 Dec 05:33
Compare
Choose a tag to compare
Pre-release

The http:request_finished event has been renamed to http:request_completed

Commits

  • refactor: make emitter type-safe and rename request finished event 00627cf

Full Changelog: v7.0.0-3...v7.0.0-4

Add debug log for middleware execution

19 Dec 04:45
Compare
Choose a tag to compare
Pre-release
  • refactor: add debug log for middleware execution 508d593
  • chore: update dependencies 86ebdfa

Full Changelog: v7.0.0-2...v7.0.0-3

Bug fixes and add resource.use method

22 Nov 11:24
Compare
Choose a tag to compare
Pre-release
  • The resource.use method is used to register middleware for resources. The docs will cover the API
  • The resource.only, resource.apiOnly and resource.except methods will narrow down the available action names in the returned instance.

Commits

  • refactor: improve perf for looking up routes 350e248
  • refactor: use a performant alternative to build the '/' route c9d3445
  • fix: clearing slash prefixes before adding uriSegment within url builder's processPattern (#77) a0e8f15
  • fix: breaking types because of changes to supertest types 644ad49
  • feat: add resource.use and resource.middleware methods f4a1948
  • feat: improve types of route resource filtering methods 2ce6cba
  • chore: publish source maps and use tsc for generating types c7f9e39
  • chore: update dependencies d81de83

What's Changed

  • fix: clearing slash prefixes before adding uriSegment within url builder's processPattern by @tomgobich in #77

New Contributors

Full Changelog: v7.0.0-1...v7.0.0-2

Disable bundling temporarily

19 Oct 14:49
Compare
Choose a tag to compare
Pre-release

We are running into issues related to module augmentation, since the rollup-plugin-ds used by tsup has number of opened issues related to re-exported types.

Commits

  • refactor: disable bundling temporarily 4705fa3

Full Changelog: v7.0.0-0...v7.0.0-1

Breaking changes and use tsup for bundling

17 Oct 05:01
Compare
Choose a tag to compare

Breaking changes

  • Using latest version of @adonisjs/application, which comes with breaking chanages.
  • Rename response.flushHeaders to response.relayHeaders. The flushHeaders method exists in Node.js already and has different semantics, therefore, we decided to rename ours and avoid confusion.

Commits

  • refactor: rename "flushHeaders" to "relayHeaders" e466d9b
  • chore: restructure benchmarks source files to work with bundled build 0c5da48
  • fix: typing issues 4fcbf6c
  • feat(request): allow to use a boolean for trustProxy (#76) b44e29e
  • chore: use tsup for bundling 8dd52ef
  • chore: update dependencies 32c1034

What's Changed

  • feat(request): allow to use a boolean for trustProxy by @RomainLanz in #76

Full Changelog: v6.8.2-14...v7.0.0-0

Passing CSP nonce to Youch when CSP is configured

06 Sep 12:51
Compare
Choose a tag to compare
  • refactor: add CSP nonce to Youch script and style tags 8b3772b
  • chore: update dependencies f5ffc71

Full Changelog: v6.8.2-13...v6.8.2-14

Update dependencies

23 Aug 07:14
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • chore: update dependencies 01e1d92

Full Changelog: v6.8.2-12...v6.8.2-13