Releases: adonisjs/http-server
Update dependencies
Full Changelog: v7.0.1...v7.0.2
Use status pages return value and add new cookie options
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
Please reference the following releases to learn more about the breaking changes and new additions.
- Breaking changes - https://github.com/adonisjs/http-server/releases/tag/v6.0.0-0
- New features - https://github.com/adonisjs/http-server/releases/tag/v6.1.0-0
- New features - https://github.com/adonisjs/http-server/releases/tag/v6.2.0-0
- New features - https://github.com/adonisjs/http-server/releases/tag/v6.3.0-0
- Breaking changes - https://github.com/adonisjs/http-server/releases/tag/v6.8.2-7
- New features - https://github.com/adonisjs/http-server/releases/tag/v6.8.2-9
- Breaking changes - https://github.com/adonisjs/http-server/releases/tag/v7.0.0-0
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
- @tomgobich made their first contribution in #77
Full Changelog: v5.12.0...v7.0.0
Rename request finished event
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
Full Changelog: v7.0.0-2...v7.0.0-3
Bug fixes and add resource.use method
- The
resource.use
method is used to register middleware for resources. The docs will cover the API - The
resource.only
,resource.apiOnly
andresource.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
- @tomgobich made their first contribution in #77
Full Changelog: v7.0.0-1...v7.0.0-2
Disable bundling temporarily
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
Breaking changes
- Using latest version of
@adonisjs/application
, which comes with breaking chanages. - Rename
response.flushHeaders
toresponse.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
Full Changelog: v6.8.2-13...v6.8.2-14
Update dependencies
- chore: update dependencies 01e1d92
Full Changelog: v6.8.2-12...v6.8.2-13